Admin-Ahead Community

Linux => Virtualization => Topic started by: mohitht on January 31, 2014, 06:04:35 pm

Title: How to install and configure OpenVZ On CentOS 6.4 version
Post by: mohitht on January 31, 2014, 06:04:35 pm
Hi All,

OpenVZ is an operating system-level virtualization technology based on the Linux kernel and operating system. OpenVZ allows a physical server to run multiple isolated operating system instances, known as containers, Virtual Private Servers, or Virtual Environments. .

First add OpenVz repository so go to the yum.repos.d

# cd /etc/yum.repos.d

wget http://download.openvz.org/openvz.repo

rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ


edit the openvz.repo and change the rhel5 repo value to "enabled=0"
and set Rhel6 "enabled=1"

Then install

# yum install vzkernel

Then install the OpenVZ tools as follows

# yum install vzctl vzquota

Set the values in # vi /etc/sysctl.conf as below