Openvz quick install and creating container

Openvz quick install and creating container. Openvz it’s a virtualization program based on containers where each container can perform as a stand-alone server.

cd /tmp
chmod +x

Download template centos 6 – 64 bit

cd /vz/template/cache&&wget

(If u need template for centos 6 – 32 bit

Now I will create a container with centos 6 64 bits, base configuration, Ip address and hostname  –

vzctl create 101 --ostemplate centos-6-x86_64 --config basic --ipadd --hostname

Nameserver settings and container password

vzctl set 101 --nameserver --userpasswd root:parola --save

Space settings in format:   $softlimit$G:$hardlimit$G

vzctl set 101 --name namecontainer --diskspace 20G:20G --save

Memory setting

vzctl set 101 --ram 512M --swap 1G --save
vzctl start 101

Check if container is on

vzlist -a

Leave a Reply

Your email address will not be published. Required fields are marked *