Create My First VE under OpenVZ

After successfully install OpenVZ under CentOS4.6_x86_64, then I created a simplest VE.


#cd /vz/template/cache
#wget http://download.openvz.org/template/precreated/centos-5-x86_64.tar.gz
#vzctl create 101 --ostemplate centos-5-x86_64 --config vps.basic
#vzctl set 101 --onboot yes --save
#vzctl set 101 --hostname ve01.rubypdf.com --save
#vzctl set 101 --ipadd 192.168.0.101 --save
#vzctl set 101 --numothersock 120 --save
#vzctl set 101 --nameserver 213.133.98.98 --nameserver 213.133.99.99 --save
#vzctl start 101
#vzctl exec 101 passwd
#vzctl enter 101
#exit

Leave a Reply