[CentOS] qemu-kvm for Centos 5 x86

Fri Mar 16 05:58:11 UTC 2012
Bob Puff <bob at nleaudio.com>

Hey gang,

I have been trying my hardest to get KVM running on a 32-bit CentOS 5.  I know
"upstream doesn't support it", but from what I gather, it *is* possible.

I've tried downloading the KVM source, but get nailed on compile with:

  LINK  i386-softmmu/qemu
make -C /lib/modules/2.6.18-308.1.1.el5PAE/build M=`pwd` \
                LINUXINCLUDE="-I`pwd`/include -Iinclude \
                 -Iarch/x86/include -I`pwd`/include-compat \
                -include include/linux/autoconf.h \
                -include `pwd`/x86/external-module-compat.h " \
  LD      /usr/local/kvm-88/kvm/kernel/x86/built-in.o
  CC [M]  /usr/local/kvm-88/kvm/kernel/x86/svm.o
In file included from
                 from <command line>:1:
/usr/local/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:551: error:
static declaration of âcancel_work_syncâ follows non-static declaration
include/linux/workqueue.h:117: error: previous declaration of cancel_work_sync
was here
In file included from
                 from <command line>:1:
/usr/local/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:607: error:
expected identifier or ( before { token
In file included from
                 from <command line>:1:
/usr/local/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:717: error:
conflicting types for smp_call_function_many
include/asm/smp.h:46: error: previous declaration of smp_call_function_many
was here
make[4]: *** [/usr/local/kvm-88/kvm/kernel/x86/svm.o] Error 1
make[3]: *** [/usr/local/kvm-88/kvm/kernel/x86] Error 2
make[2]: *** [_module_/usr/local/kvm-88/kvm/kernel] Error 2
make[1]: *** [all] Error 2
make: *** [kvm-kmod] Error 2

Has anyone built RPM packages for this?  Ideas on how to compile?  I'm running
the kernel: 2.6.18-308.1.1.el5PAE