Compiling and installing kqemu on Ubuntu and Fedora Core 5 ========================================================== Install the dependencies Ubuntu Breezy 5.10, Debian Sid and Fedora come with gcc 4 by default, but Qemu will not compile with gcc 4 so we need to install GCC 3.x Fedora (installed with Software Development option): sudo yum -y install compat-gcc-32 texi2html kernel kernel-devel Now if the kernel was upgraded you might have to reboot. Ubuntu: sudo apt-get install gcc-3.4 g++-3.4 libsdl1.2debian libsdl1.2debian-all build-essential libsdl1.2-dev zlib1g-dev checkinstall texi2html cvs linux-headers-`uname -r` Fetch the cvs sources: cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu co qemu cd qemu Configure for Fedora: sh ./configure --prefix=/usr --cc=gcc32 --host-cc=gcc32 Configure for Ubuntu: sh ./configure --prefix=/usr --cc=gcc-3.4 --host-cc=gcc-3.4 Start building make Remove qemu package if it is installed. sudo yum remove qemu or: sudo apt-get remove qemu For fedora, just install it with make install sudo make install For ubuntu, here is a checkinstall commandline which can create a .deb package on the fly and install that, so that you can deinstall it later with apt-get. sudo checkinstall -y --pkgname=qemu --pkgversion=$(cat VERSION) --pkgrelease=1 \ --pkglicense=Restricted --pkggroup "Miscellaneous - Text Based" \ --pkgsource=http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre5.tar.gz || exit 18 Now compile the kqemu tarball: cd .. wget -c "http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre5.tar.gz" tar xzf kqemu-1.3.0pre5.tar.gz cd kqemu-1.3.0pre5 && \ ./configure && make && sudo make install Verify everything went by checking whether the module has been installed and is loaded: ls -l /lib/modules/`uname -r`/misc/kqemu.ko /dev/kqemu sudo modprobe -v kqemu lsmod | grep kqemu Now after each reboot you'll have to perform a few actions before you can use the kqemu module, such as: sudo modprobe -v kqemu device="/dev/kqemu" rm -f $device mknod $device c 250 0 chmod 666 $device Place them in a boot script such as /etc/rc.local , modify to suit your taste and congratulations!