Virtuozzo and OpenVZ

Navigation:  Installation >

Virtuozzo and OpenVZ

Previous pageReturn to chapter overviewNext page

[beta]

 

* Kernel 2.6.32-042stab088.4 or later required

 

CloudLinux provides limited support for OpenVZ and Virtuozzo. At this stage only the following functionality works:

CageFS

PHP Selector

max entry processes

 

No other limits work so far.

 

Installation

 

VZ Node (needs to be done once for the server):

 

Note. Make sure all containers are stopped prior to doing this operation. Or reboot the server after the install.

 

Please make sure you have vzkernel-headers and vzkernel-devel packages installed. If no - install them with yum:

 

yum install vzkernel-headers vzkernel-devel

 

$ wget -P /etc/yum.repos.d/ http://repo.cloudlinux.com/vzlve/vzlve.repo
$ yum install lve-kernel-module

 

This will setup LVE module for VZ kernel, as well as DKMS to update that module each time VZ kernel is updated.

 

After this is done, you can add LVE support for any container on a node, at any time.

 

To make CloudLinux work inside VZ container, VZ node has to be enabled. This should be done for any container where LVE support needs to be added:

 

$ vzctl set CT_ID --devnodes lve:rw --save

 

To disable LVE support for Container:

 

$ vzctl set CT_ID --devnodes lve:none --save

 

Inside container, follow standard CL installation procedures: http://docs.cloudlinux.com/index.html?converting_existing_servers.html

 

CloudLinux license is required for each VZ container.

 

Note. Some servers require increasing fs.ve-mount-nr on host node, otherwise CageFS will throw errors. On a host node:

1. add "fs.ve-mount-nr = 15000" to /etc/sysctl.conf;

2. apply it with 'sysctl -p' command.

In very rare cases the value should be increased higher, up to 50000.