This is an old revision of the document!
root@gateN:~# sudo apt-get install linux-openvz vzctl root@gateN:~# shutdown -r now root@gateN:~# uname -a root@gateN:~# cat /etc/sysctl.conf ... net.ipv4.conf.default.forwarding=1 net.ipv4.conf.default.proxy_arp=1 net.ipv4.conf.eth0.proxy_arp = 1 net.ipv4.ip_forward=1 net.ipv4.conf.all.rp_filter = 1 kernel.sysrq = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 root@gateN:~# sysctl -p root@gateN:~# ln -s /var/lib/vz /vz
gate1:~# cd /var/lib/vz/template/cache/ gate1:~# wget http://download.openvz.org/template/precreated/contrib/ubuntu-8.04.2-i386-minimal.tar.gz gate1:~# cd gate1:~# vzctl create 101 --ostemplate ubuntu-8.04.2-i386-minimal gate1:~# vzctl set 101 --ipadd 192.168.X.30 --save gate1:~# vzctl set 101 --hostname server.corpX.un --save gate1:~# vzctl set 101 --nameserver 192.168.X.254 --save root@gate1:~# cat /etc/vz/conf/101.conf ... IP_ADDRESS="192.168.X.30" HOSTNAME="server.corpX.un" NAMESERVER="192.168.X.254" gate1:~# vzctl start 101 gate1:~# vzctl enter 101
!!! Не забыть скопировать /etc/vz/conf/101.conf на второй узел !!!