[Users] Re: kvm module for centos ovzkernel?

Aleksandar Ivanisevic aleksandar at ivanisevic.de
Thu Apr 1 10:03:30 EDT 2010


Scott Dowdle <dowdle at montanalinux.org> writes:

> Greetings,
>
> ----- "Aleksandar Ivanisevic"
> <aleksandar at ivanisevic.de> wrote:
>> Is kvm module available somewhere for the current centos ovzkernel?
>> I've googled a bit and saw some source rpms mantoned at lfarkas.org,
>> but that site appears to be down.
>
> No, the OpenVZ Project does NOT provide KVM module packages.  For
> that, see a fairly new project named OpenNode.  It's available as both
> an addon repo for CentOS and a bare-metal iso installer.

Thanks, I knew about opennode but thought its only bare metal so it
wasn't so interesting. I'll check it out for sure.

> http://opennode.activesys.org/
>
> I've been using / testing their latest release for a couple of weeks
> now and it works well.  They are working on a nice web-based
> management system and clustering software that has not been released

Do you have more info on this clustering? I'm now preparing to move
our xen+drbd based cluster to openvz+kvm, so if they are planning on
implementing a drbd based cluster it might be worth waiting for it.

> yet, but in the meantime you can use vzctl for managing OpenVZ
> containers and all of the standard libvirt tools (virsh, virt-manager,
> virt-install, etc) for managing KVM machines.
>
> If you want to give OpenNode a try I recommend you check out the docs
> section of their website as well as their mailing list as there are a
> number of valuable tips there.

Thanks. In the meantime I've managed to recompile kvm module from
centos source with really minimal adjustments and so far so good.

Here are the patches, for posterity ;)

# diff -u kvm.spec.orig kvm.spec
--- kvm.spec.orig       2010-04-01 12:34:58.000000000 +0200
+++ kvm.spec    2010-04-01 12:36:21.000000000 +0200
@@ -17,7 +17,7 @@
 %{!?kversion: %define kversion 2.6.18-164.11.1.el5}
 
 %define kmod_name kvm
-%define kverrel %(%{kmodtool} verrel %{?kversion} 2>/dev/null)
+%define kverrel %(%{kmodtool} verrel 2>/dev/null)
 
 # only the default kernel (no suffix)
 %define flavors_to_build ""
@@ -919,6 +919,7 @@
 Patch601: kvm-kernel-KVM-Disable-move-to-segment-registers-and-jump-far-i.patch
 # For bz#563516 - KVM: Check cpl before emulating debug register access [rhel-5.4.z]
 Patch602: kvm-kernel-KVM-VMX-Check-cpl-before-emulating-debug-register-ac.patch
+Patch603: kvm-openvz-page_lock_anon_vma.patch
 
 # end of kvm.git (kernel) patches
 ###################################3
@@ -1492,6 +1493,7 @@
 %patch601 -p1
 %patch602 -p1
 cd ../
+%patch603 -p0
 
# cat /usr/src/redhat/SOURCES/kvm-openvz-page_lock_anon_vma.patch

--- kernel/ksm/external-module-compat.h.orig    2010-04-01 10:17:58.000000000 +0200
+++ kernel/ksm/external-module-compat.h 2010-04-01 10:19:00.000000000 +0200
@@ -35,7 +35,7 @@
 #define list_first_entry(ptr, type, member) \
         list_entry((ptr)->next, type, member)
 
-static struct anon_vma *page_lock_anon_vma(struct page *page)
+static struct anon_vma *page_lock_anon_vma2(struct page *page)
 {
        struct anon_vma *anon_vma;
        unsigned long anon_mapping;
@@ -241,7 +241,7 @@
        struct anon_vma *anon_vma;
        int ret = 0;
 
-       anon_vma = page_lock_anon_vma(page);
+       anon_vma = page_lock_anon_vma2(page);
        if (!anon_vma)
                return ret;





More information about the Users mailing list