root@openvz-server ~:/usr/sbin/vzctl create 101 --ostemplate ubuntu-turnkey-lamp-11.3-lucid-x86-openvz --config basic Creating container private area (ubuntu-turnkey-lamp-11.3-lucid-x86-openvz) Performing postcreate actions CT configuration saved to /etc/vz/conf/101.conf Container private area was created root@openvz-server ~:/usr/sbin/vzctl set 101 --onboot yes --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --hostname turnkey-twiki --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --ipadd 192.168.2.101 --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --numothersock 360 --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --nameserver 4.2.2.2 --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --vmguarpages $((256 * 512)) --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --privvmpages $((256 * 1024)) --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --diskspace 3G:4G --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl set 101 --capability sys_time:on --save CT configuration saved to /etc/vz/conf/101.conf root@openvz-server ~:/usr/sbin/vzctl start 101 Starting container ... Container is mounted Adding IP address(es): 192.168.2.101 Setting CPU units: 1000 Container start in progress... root@openvz-server ~:vzctl enter 101 entered into CT 101 root@turnkey-twiki /# ping 4.2.2.2 PING 4.2.2.2 (4.2.2.2) 56(84) bytes of data. 64 bytes from 4.2.2.2: icmp_seq=1 ttl=43 time=55.6 ms 64 bytes from 4.2.2.2: icmp_seq=2 ttl=43 time=43.1 ms ^C --- 4.2.2.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 43.133/49.388/55.643/6.255 ms root@turnkey-twiki /# cat /etc/network/interfaces # This configuration file is auto-generated. # # WARNING: Do not edit this file, your changes will be lost. # Please create/edit /etc/network/interfaces.head and # /etc/network/interfaces.tail instead, their contents will be # inserted at the beginning and at the end of this file, respectively. # # NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail # will be at the very end of this file. # # Auto generated lo interface auto lo iface lo inet loopback # Auto generated venet0 interface auto venet0 iface venet0 inet manual up ifconfig venet0 up up ifconfig venet0 127.0.0.2 up route add default dev venet0 down route del default dev venet0 down ifconfig venet0 down auto venet0:0 iface venet0:0 inet static address 192.168.2.101 netmask 255.255.255.255 root@turnkey-twiki /#