VirtualBox compatibility [message #32893] |
Sun, 07 September 2008 17:52 |
eager
Messages: 9 Registered: August 2008 Location: Palo Alto, CA
|
Junior Member |
|
|
I was interested in running VirtualBox on a system running an OpenVZ kernel. I installed CentOS 5 and updated it with OpenVZ RHEL-5.
When I attempt to install the VirtualBox for RHEL-5, building the kernel module fails. VBox uses the kernel function register_cpu_notification which is defined with CONFIG_HOTPLUG_CPU=Y (which is set in CentOS 5) but there is a wiki page http://wiki.openvz.org/Kernel_configuration which says that this config option is incompatible with SCHED_VCPU.
I tried rebuilding the OVZ kernel to have the kernel export a dummy version of register_cpu_notification even if CONFIG_HOTPLUG_CPU=N. This produced a kernel which booted OK, but when I try to build the VBox driver the system hangs for unknown reasons.
1) Has anyone been able to run VBox and OpenVZ side-by-side?
2) Is there a version of OpenVZ which supports CONFIG_HOTPLUG_CPU?
Any suggestions?
|
|
|
|
|
Re: VirtualBox compatibility [message #32905 is a reply to message #32893] |
Mon, 08 September 2008 17:06 |
kenjy
Messages: 50 Registered: July 2008 Location: Mexico
|
Member |
|
|
VirtualBox needs to build a module in the kernel vboxdrv I think but I don't remember exactly. That module should be compiled in the hardware node because all the VE's share the same kernel so if you wanna have the module working in a VE you need to build it in the Hardware node. I have never tried with VirtualBox but I worked with apps who need kernel modules in the container, like firehol.So the modules should be in the Hardware node.
Try to build the module there and tell us.
http://kenjy.net |Live net !!!
|
|
|
|
|
|
Re: VirtualBox compatibility [message #32916 is a reply to message #32909] |
Tue, 09 September 2008 02:36 |
cachemonet
Messages: 2 Registered: September 2008
|
Junior Member |
|
|
I am running virtual box on a fedora 9 host system. Virtual box is in turn running centos 5.2 with with all of the latest updates on kernel 2.6.18-92.1.1.el5.028stab057.2 and the virtualized of centos is running openvz without an issue.
In addition to that configuration, I am running RedHat (a real licensed version) on my Dell D810 lattitude. It is successfully running virtualbox and openvz with the 2.6.18-92.1.1.el5.028stab057.2 kernel.
To answer your question, Virtual Box will run openvz
[Updated on: Tue, 09 September 2008 02:46] Report message to a moderator
|
|
|
|
|
|
|
Re: VirtualBox compatibility [message #34441 is a reply to message #32893] |
Fri, 02 January 2009 20:40 |
poige
Messages: 2 Registered: January 2009
|
Junior Member |
|
|
eager wrote on Mon, 08 September 2008 01:52 | I was interested in running VirtualBox on a system running an OpenVZ kernel. I installed CentOS 5 and updated it with OpenVZ RHEL-5.
When I attempt to install the VirtualBox for RHEL-5, building the kernel module fails. VBox uses the kernel function register_cpu_notification which is defined with CONFIG_HOTPLUG_CPU=Y (which is set in CentOS 5) but there is a wiki page http://wiki.openvz.org/Kernel_configuration which says that this config option is incompatible with SCHED_VCPU.
|
Also, it says "On a non-SMP machine, you may disable SMP, this will resolve the conflict.
If you have an SMP machine, you can only disable FAIRSCHED and SCHED_VCPU. It will reduce some isolation between VEs (CPU scheduling will be performed per-task, not per-VE, and cpuunits and cpulimit settings will not take effect), but it is an acceptable solution if your VEs are trusted (and it's hard to imagine untrusted VEs on a notebook.) " — Yeah, it says. But it won't compile at least at the moment of writing, alas.
[Updated on: Sun, 04 January 2009 08:22] Report message to a moderator
|
|
|
Re: VirtualBox compatibility [message #34609 is a reply to message #32893] |
Tue, 20 January 2009 18:37 |
irontowngeek
Messages: 20 Registered: January 2009
|
Junior Member |
|
|
Running Virtualbox on a CENTOS 5 LINUX Hardware Node,requires no more effort to install,as you would any LINUX machine.
Why go through all this compiling of code,unless you are using the Open Source version of Virtualbox.
The short story is;
1. Download and install on the HN,the OVZ kernel source code,AND,the OVZ development headers,for the CENTOS 5 kernel
(2.18.53.1)
These files are (or was),available from the OpenVZ website.
2. Download and install the *.rpm of Virtualbox for RHEL5,or use the generic installer.
It works like a charm.
I run a Windows 2003 Server as DNS,along side my HN,in VRDP
server mode. ( Windows DNS is easier than BIND)
Has virtual Ethernet working via bridging on the HN.
Running the Virtualbox VM,has very little impact on the HN resources.
Good luck
|
|
|