same problem here.
I fired up a brand new CentOS 5.2 OpenVZ VM using venet and IP 192.168.1.10 but i even can't ping my gateway though i didn't change any network config:
Code:
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: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:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.1.10 P-t-P:192.168.1.10 Bcast:192.168.1.10 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
[root@containertest /]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 venet0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 venet0
0.0.0.0 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
[root@containertest /]# ping google.de
^C
[root@containertest /]# ping 74.125.43.103 # one of the IPs i got with "nslookup google.de" from proxmox server
PING 74.125.43.103 (74.125.43.103) 56(84) bytes of data.
[root@containertest /]# ping 192.0.2.1
connect: Invalid argument
[root@containertest /]#
this is what i get when running tcpdump on my proxmox server while running "ping 74.125.43.103" on the VM:
Code:
proxmox:~# tcpdump host 192.168.1.10
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
22:30:09.882151 IP 192.168.1.10 > bw-in-f103.1e100.net: ICMP echo request, id 34158, seq 150, length 64
22:30:10.882125 IP 192.168.1.10 > bw-in-f103.1e100.net: ICMP echo request, id 34158, seq 151, length 64
22:30:11.882119 IP 192.168.1.10 > bw-in-f103.1e100.net: ICMP echo request, id 34158, seq 152, length 64
this is what the VM says:
Code:
[root@containertest /]# tcpdump -i any
tcpdump: WARNING: Promiscuous mode not supported on the "any" device
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
01:04:28.145076 IP containertest.heiwu.de.35437 > 195.71.90.106.domain: 24283+ PTR? 103.43.125.74.in-addr.arpa. (44)
01:04:28.145089 IP 195.71.90.106 > containertest.heiwu.de: ICMP 195.71.90.106 udp port domain unreachable, length 80
Do i really have to config at the proxmox server to be able to get ping reply?
And if so, why can't i reach my (autoconfigured) default GW?
I even tried changing the VM's IP to 192.0.2.10 -> exactly the same problems.
KVM VMs are working like a charm.
Any Ideas?