15 Jan

How to create new OpenVZ container

cd /vz/template/cache ; wget https://download.openvz.org/template/precreated/centos-6-x86_64.tar.gz
vzctl create 100 --ostemplate centos-6-x86_64 --layout simfs

You can omit

--layout simfs

if you’d like to use ploop.

vzctl set 100 --hostname example.com --save
vzctl set 100 --ipadd --save
vzctl set 100 --nameserver --save
vzctl set 100 --nameserver --save

And we are ready to go.

vzctl start 100
vzctl enter 100