Documentation

OpenVZ

Install

HUBzero makes extensive use of OpenVZ containers so it is recommended to use the OpenVZ enabled kernel on all HUBzero servers. To install a 64 bit kernel run the command:

# apt-get install linux-image-2.6-openvz-amd64

For 32 bit kernels, run the command:

# apt-get install linux-image-2.6-openvz-686

Configure

You will need to reboot the server to activate the new kernel.
# reboot

Verify the new kernel is running (see "openvz" in the output of the command below)

For 64 bit kernels

# uname -a
Linux example.com 2.6.32-5-openvz-amd64 #1 SMP Sat May 5 02:13:13 UTC 2012 x86_64 GNU/Linux

or for 32 bit kernels

# uname -a
Linux example.com 2.6.32-5-openvz-686 #1 SMP Sat May 5 02:13:13 UTC 2012 x86_64 GNU/Linux

If the new kernel is running you may remove the old (non-openvz) kernel

For 64 bit kernels (the exact version number may differ on your installation)

# apt-get purge linux-image-2.6.32-5-amd64

or for 32 bit kernels (the exact version number may differ on your installation)

# apt-get purge linux-image-2.6.32-5-i686

Test

# vzlist
Container(s) not found

Or it will list the containers currently running if you check this on a running hub. The salient point being that the command doesn't issue any kind of error message.

Last modified: