PDA

View Full Version : How-to: Qemu + Kqemu on Edgy AMD64


factor
November 3rd, 2006, 05:40 AM
Here is how i got it working on Edgy for AMD64

sudo apt-get install qemu build-essential linux-headers-$(uname -r)
wget http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre9.tar.gz
tar xzf kqemu-1.3.0pre9.tar.gz
cd kqemu-1.3.0pre9
./configure --prefix=/usr --disable-gcc-check --kernel-path=/lib/modules/$(uname -r)/build/
make
sudo ./install.sh
sudo depmod
sudo modprobe kqemu
sudo dpkg-reconfigure linux-image-`uname -r`


And then, i made a script i run everytime i want to run qemu +kqemu, you have to make an icon for it in your start menu as it is thought to be run in gnome. If you want to run it in terminal replace "gksu" for "sudo":


gksu mknod /dev/kqemu c 250 0
gksu chmod 666 /dev/kqemu
qemu-system-x86_64 -boot c -hda /path/to/your/image.qcow -m 512 -localtime -kernel-kqemu


-m 512 is the amount of ram, here is 512 mb, if you want 256 it would be -m 256, and so on.

Hope it helps.

Regards.

slid3r
November 11th, 2006, 09:11 PM
Nice.

Azrael Nightwalker
November 17th, 2006, 03:41 PM
This howto works also for 32-bit version

sureinlux
November 26th, 2006, 01:21 AM
Hi, This works like a charm. Thanks a lot...

The Doc
December 14th, 2006, 10:27 AM
woha, that did work, currently installing win98 :)

This totally rocks, no dual booting for testing some code on windows - thanks!

prashmohan
December 24th, 2006, 11:36 PM
I get this error when I modprobe kqemu

$ sudo modprobe kqemu [...u-1.3.0pre9]
FATAL: Error inserting kqemu (/lib/modules/2.6.15-25-686/misc/kqemu.ko):
Invalid module format


Does anyone know how to solve this or why it occurs?

P.S I am on a 32 bit platform

redmoskito
January 17th, 2007, 02:36 PM
I get this error when I modprobe kqemu

$ sudo modprobe kqemu [...u-1.3.0pre9]
FATAL: Error inserting kqemu (/lib/modules/2.6.15-25-686/misc/kqemu.ko):
Invalid module format


Does anyone know how to solve this or why it occurs?

P.S I am on a 32 bit platform


I received the same error.

Also, when I compiled, I received the warning:

WARNING: could not find /home/ksimek/download/kqemu-1.3.0pre9/.kqemu-mod.o.cmd for /home/ksimek/download/kqemu-1.3.0pre9/kqemu-mod.o

I'm not sure if this is related

enopepsoo
January 17th, 2007, 10:17 PM
nice one!

I should give this a go sometime and think about ditching vmware. (Those Bastards). On the other hand, I really have no incentive to do so... ](*,)

test
February 13th, 2007, 11:45 AM
did someone really test qemu + kqemu on amd64? everytime I boot up a guest it crashes and dmesg shows up the module received a General Protection exception 0x0d

daigidan
March 25th, 2007, 06:50 PM
For those interested in using checkinstall to create a .deb, I was able to get it working on amd64 by replacing the "./install.sh" with the following:

checkinstall --exclude=/lib/modules/$(uname -r)/modules.usbmap,/lib/modules/$(uname -r)/modules.alias,/lib/modules/$(uname -r)/modules.ccwmap,/lib/modules/$(uname -r)/modules.dep,/lib/modules/$(uname -r)/modules.ieee1394map,/lib/modules/$(uname -r)/modules.inputmap,/lib/modules/$(uname -r)/modules.isapnpmap,/lib/modules/$(uname -r)/modules.ofmap,/lib/modules/$(uname -r)/modules.pcimap,/lib/modules/$(uname -r)/modules.seriomap,/lib/modules/$(uname -r)/modules.symbols,/lib/modules/$(uname -r)/modules.usbmap

This works around errors when the package is installed stating that these files belong to the kernel image package and are trying to be overwritten (I hate force installs). I have no idea if this will vary from system to system. ;]

Konstantin Lvov
May 4th, 2007, 02:05 PM
did someone really test qemu + kqemu on amd64? everytime I boot up a guest it crashes and dmesg shows up the module received a General Protection exception 0x0d
Yes, I'm running qemu+kqemu on Athlon x86_64 for several months (on Dapper), and it works fine. But it seems that some conditions must be met:
1) It must be 64-bit Ubuntu version, not 32-bit version installed on 64-bit platform.
2) I built qemu with recommended gcc version (3.4), without --disable-gcc-check option. Pre-built package available from repository doesn't include kqemu accelerator support.
3) In order kqemu accelerator to work, qemu-system-x86_64 binary must be used (not just qemu binary)

explainer
June 1st, 2007, 10:07 PM
This is a cool solution. Can someone update it for use in a KVM-enabled environment?