Re: another kvm-70 compile bug with rhel/centos 5.2

Erik Bussink
2008-07-01T01:22:11Z

Thanks Avi for the rhel-5.2.patch. I was able to successfully apply it
to kvm-70. In addition I found myself having to make one more small
modification for RHEL 5.2

I found myself also having to modify the kernel/external-module-compat.h
at line 670 (as per emails from Andrea Arcangeli on June 18th)

and change
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) &&
defined(CONFIG_KALLSYMS)

to

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) &&
defined(CONFIG_KALLSYMS)

So now I can successfully build KVM-70 on RHEL 5.2 for the AMD-V, and
load the modules in the kernel (2.6.18-92.1.6.el5

[root@eowyn ~]# lsmod | grep kvm
[root@eowyn ~]# modprobe kvm
[root@eowyn ~]# modprobe kvm_amd
[root@eowyn ~]# lsmod | grep kvm
kvm_amd 62888 0
kvm 178416 1 kvm_amd
[root@eowyn ~]#

The only thing that I seem to be halting my progression right now is
that I cannot find the qemu-kvm helper program. It doesn't seem like it
was compiled and installed. Yet I find now qemu-system-x86_64 instead.

[root@eowyn ~]# which qemu-kvm
/usr/bin/which: no qemu-kvm in
(/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

[root@eowyn ~]# which qemu-nbd
/usr/local/bin/qemu-nbd

[root@eowyn ~]# ll /usr/local/bin/qem*
-rwxr-xr-x 1 root root 128616 Jul 1 02:54 /usr/local/bin/qemu-img
-rwxr-xr-x 1 root root 130808 Jul 1 02:54 /usr/local/bin/qemu-nbd
-rwxr-xr-x 1 root root 6740783 Jul 1
02:54 /usr/local/bin/qemu-system-x86_64

I'm able to start a virtual machine with qemu-system-x86_64. Should I
stop looking for a qemu-kvm ?

Thanks for any pointers.
Erik Bussink