Comment 0 for bug 494500

Revision history for this message
rowa (robertwa) wrote : QEMU 0.12.0-rc1 does not support KVM

I tryed to compile QEMU 0.12.0-rc1 with KVM support without success.

Here my configuration:

uname -a
Linux bla 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux

dpkg -l | grep kvm
ii kvm 1:84+dfsg-0ubuntu11

This KVM modul works fine.

I've installed this packets:

sudo apt-get install make wget zlib1g-dev libsdl-gfx1.2-dev
sudo apt-get install gcc libsdl1.2-dev zlib1g-dev libasound2-dev linux-kernel-headers-`uname-r` pkg-config libgnutls-dev libpci-dev

The compiling of QEMU 0.12.0-rc1 wihout KVM support was OK.

./configure --enable-kvm
#error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS
      NOTE: To enable KVM support, update your kernel to 2.6.29+ or install recent kvm-kmod from http://sourceforge.net/projects/kvm.
ERROR
ERROR: User requested feature kvm
ERROR: configure was not able to find it
ERROR

I can't change the kernel because Ubuntu 9.10 are too buggy.
So I tryed to install the latest kvm modul.

wget \
http://sourceforge.net/projects/kvm/files/kvm-kmod/2.6.32/kvm-kmod-2.6.32.tar.bz2/download
tar xjvf kvm-kmod-2.6.32.tar.bz2
cd kvm-kmod-2.6.32
./configure && make
sudo make install
sudo rmmod kvm_intel kvm_adm kvm
sudo make install
sudo rmmod kvm_intel kvm
sudo modprobe kvm_intel

dmesg | grep kvm
[81811.678377] loaded kvm module (kvm-kmod-2.6.32)

I tryed to compile QEMU with kvm support but I got the same error.

./configure --enable-kvm
#error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS
      NOTE: To enable KVM support, update your kernel to 2.6.29+ or install recent kvm-kmod from http://sourceforge.net/projects/kvm.
ERROR
ERROR: User requested feature kvm
ERROR: configure was not able to find it
ERROR

What is wrong?

See also http://qemu-buch.de/de/index.php/QEMU-KVM-Buch/_Installation