Thursday, December 08, 2005

QEMU -- Likes and Dislikes

Here are some things I'm starting to notice about QEMU:

COOLNESS:
- Loading and saving state -- CTRL-ALT-2 and use loadvm and savevm
- Snapshots -- Use snapshot mode for when you are ready to do some major testing or upgrading. If all goes well, go to the console and commit changes.

NEEDS-SOME-WORK:
- Clipboard integration b/w host and guest. Doesn't seem to be any at all.
- Mouse captured by the guest. Only way to get out is to hit CTRL-ALT. Minor, but I really liked the way VPC and VMWare integrated after you installed the add-ons.

NOTES:
1) $ qemu -localtime -user-net -m 384 -hda -smb /home/dbreese -loadvm tempsave winxppro.img
Could not open '/dev/kqemu' - QEMU acceleration layer not activated

To fix (http://www.hants.lug.org.uk/cgi-bin/wiki.pl?LinuxHints/QemuCompilation)
# /sbin/modprobe kqemu
# mknod /dev/kqemu c 250 0 # Create the KQEMU device
# chmod 666 /dev/kqemu # Make it accessible to all users

If modprobe gives error, then you may be able to:
# mkdir -p /lib/modules/$(uname -r)/misc && cp ~/qemu-0.7.2/kqemu/kqemu.ko /lib/modules/$(uname -r)/misc && depmod -a

CDROMs and QEMU
Sometimes, you will need to insert another cd into the drive. The behaviour is not good for me because my host OS (Ubuntu running Gnome) grabs and mounts the drive. No matter what I tried (manually unmounting and remounting the drive, etc) I could not get QEMU to see the new disk which I had just inserted. To fix this, hit CTRL-ALT-2 in the guest and type:
qemu> change cdrom /dev/cdrom

And it will unmount and remount the cdrom within the guest.

No comments: