OpenVZ Forum


Home » General » Support » How to make OpenVZ kernel and KVM module coexist_
How to make OpenVZ kernel and KVM module coexist_ [message #35447] Thu, 26 March 2009 10:41 Go to next message
schjeall is currently offline  schjeall
Messages: 27
Registered: February 2009
Location: Denmark
Junior Member
Hello

I was wondering if OpenVZ and KVM can coexist?

I have seen Proxmox VE and this product can run OpenVZ kernel + KVM module. Proxmox is Debian based and I don't want that - I want a CentOS based distro!

Is it simple to install KVM module under CentOS+OpenVZ kernel. Can KVM just be installed as KMOD-KVM from the repository? Or, do I need some advanced patching+kernel compilation.

If not possible, without advanced patching + kernel compilation, then I would suggest a new distro ;O)

Any idea, anybody?

[Updated on: Thu, 26 March 2009 10:42]

Report message to a moderator

Re: How to make OpenVZ kernel and KVM module coexist_ [message #35780 is a reply to message #35447] Wed, 22 April 2009 07:41 Go to previous messageGo to next message
nicolas_o is currently offline  nicolas_o
Messages: 1
Registered: April 2009
Junior Member
I am also trying to create OpenVZ guests and KVM guests coexist on a CentOS machine with RHEL5 kernel. This is really what fits my needs best.

So, on a fresh CentOS 5.3, x86-64 installation, I install the latest KVM (v85) like described in http://www.centos.org/modules/newbb/viewtopic.php?topic_id=1 9034&forum=38#threadtop

It works :

[root@hn1 ~]# uname -r
2.6.18-128.1.6.el5
[root@hn1 ~]# /etc/init.d/kvm start
Starting KVM: RTNETLINK answers: Network is unreachable

[root@hn1 ~]# lsmod | grep kvm
kvm_intel              86376  0 
kvm                   209576  1 kvm_intel


Now with the OpenVZ kernel the module is just not found :

[root@hn1 ~]# uname -r
2.6.18-92.1.18.el5.028stab060.8
[root@hn1 ~]# /etc/init.d/kvm start
Starting KVM: RTNETLINK answers: Network is unreachable
FATAL: Module kvm_intel not found.


So, I cannot start OpenVZ guests and KVM guests at the same time.

Is it normal or should I file a bug ? Or perhaps should I just recompile the RHEL5 kernel with extra options enabled ?
Re: How to make OpenVZ kernel and KVM module coexist_ [message #35973 is a reply to message #35780] Thu, 07 May 2009 18:26 Go to previous messageGo to next message
schjeall is currently offline  schjeall
Messages: 27
Registered: February 2009
Location: Denmark
Junior Member
Hello

Have you tried to install KVM while OpenVZ Kernel is booted? I think it makes sense the KVM module is not found when you are installing the module under another kernel version.

Well I was just wondering.
Re: How to make OpenVZ kernel and KVM module coexist_ [message #35974 is a reply to message #35447] Fri, 08 May 2009 03:54 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
I was able to rebuild the lfarkas.org kmod-kvm-85 SRPM package on CentOS 5.3 under the ovzkernel-2.6.18-92.1.18.el5.028stab060.8.x86_64.

KVM kernel module seems to coexist with openvz just fine. Haven't tried without rebuilding, though.

2.6.18-92.1.18.el5.028stab060.8.x86_64
kmod-kvm 85
kvm 85
libvirt 0.6.3
virt-manager 0.7.0
qemu 0.9.1

I'm doing further tests now...

Anyone has a similar setup and can comment on stability and other possible issues?
Re: How to make OpenVZ kernel and KVM module coexist_ [message #36060 is a reply to message #35974] Mon, 18 May 2009 08:26 Go to previous messageGo to next message
schjeall is currently offline  schjeall
Messages: 27
Registered: February 2009
Location: Denmark
Junior Member
Hello

This is really great news and you have just made my day superduper, thanks!

Looking forward to get some free time to reproduce your steps. (Virtualization at its best!)
Re: How to make OpenVZ kernel and KVM module coexist_ [message #36065 is a reply to message #35974] Mon, 18 May 2009 20:07 Go to previous messageGo to next message
photograph is currently offline  photograph
Messages: 1
Registered: May 2009
Junior Member
I was able to compile the lfarkas SRPM for kmod-kvm as well. The only issue was some missing dependencies.

I've been using it for a few days and it's been problem free so far.
Re: How to make OpenVZ kernel and KVM module coexist_ [message #38937 is a reply to message #35447] Sat, 20 February 2010 23:00 Go to previous message
mainframe is currently offline  mainframe
Messages: 5
Registered: October 2007
Junior Member
opennode.sourceforge.net - CentOS based bare-metal ISO installer with openvz and KVM support.
Previous Topic: Install kvm with openvz like Proxmox
Next Topic: kvm + openvz
Goto Forum:
  


Current Time: Tue Apr 23 07:57:33 GMT 2024

Total time taken to generate the page: 0.01273 seconds