"Real men don't use backups, they post their stuff on a public ftp server and let the rest of the world make copies." - Linus Torvalds

Getting Started With QEMU

Getting Started With QEMU - Comments

Saturday 30th June 2007

Categories: Guides, GNU/Linux, FLOSS

All comments not written by free-bees.co.uk are owned by the author, and free-bees.co.uk is in no way responsible for their content.

1. Submitted by Anonymous, Tuesday 3rd July 2007

kqemu is now GPL. I believe there is a binary package for kqemu in Debian Sid, if not in testing

2. Submitted by Kevin Dean, Tuesday 3rd July 2007

"Now, every time you want to use the kqemu module, you first need to become root,"

This is not true. You can add "kqemu" as a newline in /etc/modules (on a Debian System) to have this module loaded automatically at boot time.

"If QEMU complains that it still cannot use kqemu, then you might not have the necessary permissions - try typing the following as root:"

Decent package managers will create a group, called kqemu or qemu. a simple "adduser john kqemu" will enable the user "John" to access the kqemu acellerator without giving him root access at all. This will not take effect until the start of the next session.

And finally, this article, almost line for line, works just fine with KVM, which relies on specialized processor features to acellerate virtual machines faster than kqemu does.

In the case of vanilla kernels, any older than 2.6.20 will already have the kvm-amd or kvm-intel modules installed. On older systems, like Debian, "m-a a-i kvm" (rather than kqemu) works just as well. You'd also want to apt-get install kvm.

kvm can then be invoked similar to qemu, like: "kvm --hda /home/user/image.img --cdrom /dev/cdrom -m 1024"

Another useful tip for qemu/kvm/kqeum is sound. :) Sound can almost always be enabled by adding the -soundhw es1370 option to qemu. There are other sound option, but in my experience the es1370 is the best.