OpenVZ is an operating-system-level virtualization technology for Linux. It allows a physical server to run multiple isolated operating system instances, called containers, virtual private servers, or virtual environments

(i) Hardware specification

  • Intel Core i7, Xeon E7, and AMD Opteron
  • A minimum of 128 MB of RAM; 2 GB or more is recommended
  • A hard drive with at least 80 GB of space
  • A 10/100/1000 network card

(ii) Network specifications

  • A valid IP address for the server
  • A valid IP address for each container


Step 1: Update and upgrade the dependencies 

$ yum update && yum upgrade

Step 2: Get OpenVZ releases 

$ yum -y localinstall
$ yum -y localinstall
$ yum -y install epel-release

Step 3: Install the Openvz releases

$ yum install python3
$ rpm -Uvh
$ rpm -Uvh
$ rpm -Uvh

Step 4: Clean up the CentOS repository

$ mv /etc/yum.repos.d/CentOS-* /root/
$ rpm -e –nodeps –justdb json-c
$ yum -y erase jansson$ yum -y localinstall
$ yum -y localinstall
$ rpm -e –nodeps –justdb nspr nss nss-pem nss-softokn nss-softokn-freebl nss-sysinit nss-tools nss-util
$ yum -y localinstall

Step 5: Install OpenVZ kernel

$ yum -y install nss-softokn-freebl.i686 nss-tools
$ yum -y install prlctl prl-disp-service vzkernel *ploop*$ yum -y update

(i) If we have an architecture error as per the snapshot while installing the vzkernel, downgrade the glib and glibcc version then install the 32 bit dependencies 

$ yum -y downgrade glibc glibc-common
$ yum -y install glibc.i686 ncurses-libs.i686

(ii) To resolve the xz-libs architecture issue

$ wget
$ yum install yum-utils
$ yumdownloader xz-libs-5.2.2

Step 6: Check grub and steup Virtuozzo 7

# awk -F\’ ‘$1==”menuentry ” {print i++ ” : ” $2}’ /etc/grub2.cfg
0 : Virtuozzo 7 (3.10.0-1160.42.2.vz7.184.10)
1 : CentOS Linux (3.10.0-1160.53.1.el7.x86_64) 7 (Core)
2 : CentOS Linux (0-rescue-6a03f95fe90f43b786afa291f08bbbf6) 7 (Core)
# grub2-editenv list
saved_entry=Virtuozzo 7 (3.10.0-1160.42.2.vz7.184.10)

Step 7: Reboot the server 

$ reboot

Step 8: Setup the initial settings

$ modprobe ploop pfmt_ploop1 pfmt_raw pio_direct

Step 9: Install quota tools

$ yum -y install vzctl vzquota ploop


(i) If we vzquota package is not available, download and configure it manually

$ wget
$ mv vzquot to /usr/libecx/vz

Step 10: Install all available Linux Distro templates

$ yum -y install *ez.noarch

Step 11: Reboot the server 

$ reboot

Leave a Reply