text
1 Preliminary Note
I'm using an x86_64 (amd64) system here. If you are on an i386 system, a few commands will be slightly different – I have added annotations to that parts.
2 Installing OpenVZ
An OpenVZ kernel and the vzctl, vzquota, and vzdump packages are available in the Debian Squeeze repositories, so we can install them as follows:
apt-get install linux-image-openvz-amd64 vzctl vzquota vzdump
(If you are on a i386 system, the kernel package is named linux-image-openvz-686.)
Create a symlink from /var/lib/vz to /vz to provide backward compatibility:
ln -s /var/lib/vz /vz
Open /etc/sysctl.conf and make sure that you have the following settings in it: