Howto install Qemu in Ubuntu Hardy
Author : Vicente
From TechnologicalWiki
This howto explains how to install qemu virtualizer in a Ubuntu Hardy system.
First of all we install qemu itself.
$sudo apt-get install qemu
Right now qemu would work only as an emulator. Installing kqemu will make it to work as a virtualizer:
We install kqemu sources to compile a kernel module.
$sudo apt-get install kqemu-source kqemu-common
NOTE: If our user does not pertain to src group we have to add it to access /usr/src directory.
$sudo adduser `whoami` src
Before compiling kqemu sources we need some previous packages:
$sudo apt-get install gcc libc6-dev
$sudo apt-get install "linux-headers-$(uname -r)"
$cd /usr/src
$sudo ln -s linux-headers-$(uname -r) linux
Now we uncompress and compile kqemu sources:
$tar xvfj kqemu.tar.bz2
$cd modules/kqemu
$./configure
$make
$sudo make install
RUNNING QEMU
We load kqemu kernel module
$sudo modprobe kqemu
and then we can execute qemu as a virtualizer. E.g:
$sudo qemu -m 128 -hda /dev/sda -cdrom debian-40r5-i386-businesscard.iso -boot d


