Hi, i have installed OpenVZ on Fedora core 7 and all is working other than network access to VPS that are created. Here is what i have done so far :-
# vzctl create 101 --ipadd 72.55.180.209 --ostemplate fedora-core-7-i386-default
Creating VE private area (fedora-core-7-i386-default)
Performing postcreate actions
VE private area was created
# vzctl start 101
Starting VE ...
VE is mounted
Adding IP address(es): 72.55.180.209
Setting CPU units: 1000
Configure meminfo: 49152
VE start in progress...
# vzctl enter 101
entered into VE 101
# ping google.com
ping: unknown host google.com
also, when i try and ping the ip of the host machine, it just says
# ping 72.55.179.7
PING 72.55.179.7(72.55.179.7) 56(84) bytes of data.
and does nothing.
finally, when i try to reload the network
# vzctl exec 101 /etc/init.d/network restart
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
SIOCGIFFLAGS: No such device
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: SIOCADDRT: Network is unreachable
[ OK ]
Here is a ifconfig of VPS
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:840 (840.0 b)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:72.55.180.209 P-t-P:72.55.180.209 Bcast:72.55.180.209 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.0 * 255.255.255.0 U 0 0 0 venet0
169.254.0.0 * 255.255.0.0 U 0 0 0 venet0
default 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
and the same for the host machine
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.179.7 Bcast:72.55.179.31 Mask:255.255.255.224
inet6 addr: fe80::21b:fcff:fe2f:9572/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:456310 errors:0 dropped:0 overruns:0 frame:0
TX packets:307979 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:510055357 (486.4 MiB) TX bytes:42855331 (40.8 MiB)
Interrupt:201
eth0:0 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.180.209 Bcast:72.55.180.215 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201
eth0:1 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.180.210 Bcast:72.55.180.215 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201
eth0:2 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.180.211 Bcast:72.55.180.215 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201
eth0:3 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.180.212 Bcast:72.55.180.215 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201
eth0:4 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.180.213 Bcast:72.55.180.215 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201
eth0:5 Link encap:Ethernet HWaddr 00:1B:FC:2F:95:72
inet addr:72.55.180.214 Bcast:72.55.180.215 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:201
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:477 errors:0 dropped:0 overruns:0 frame:0
TX packets:477 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:102566 (100.1 KiB) TX bytes:102566 (100.1 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:840 (840.0 b) TX bytes:0 (0.0 b)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ip-72-55-180-20 * 255.255.255.255 UH 0 0 0 venet0
72.55.180.208 * 255.255.255.248 U 0 0 0 eth0
72.55.179.0 * 255.255.255.224 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default ip-72-55-179-1. 0.0.0.0 UG 0 0 0 eth0
Can some offer any help on why the networks not availible.