kvm桥梁问题 – 没有networking来宾

我目前有一个运行多个OpenVZ Containers的Proxmox(debian)KVM主机用于一般用途,我正在研究创build一个KVM虚拟机,但是我无法联网到CentOS KVM Guest。

请从主机findnetworkingconfiguration:

# ifconfig eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet6 addr: fe80::22cf:30ff:fe19:7b67/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41861518 errors:0 dropped:0 overruns:0 frame:0 TX packets:23326041 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16692957938 (xx.x GiB) TX bytes:16624094064 (xx.x GiB) Interrupt:47 Memory:fbfe0000-fc000000 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:1805386 errors:0 dropped:0 overruns:0 frame:0 TX packets:1805386 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:532155476 (507.5 MiB) TX bytes:532155476 (507.5 MiB) vmbr0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:88.xxx.xxx.229 Bcast:88.xxx.xxx.xxx Mask:255.255.252.0 inet6 addr: fe80::22cf:30ff:fe19:7b67/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38116128 errors:0 dropped:0 overruns:0 frame:0 TX packets:21500108 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:15771625496 (xx.x GiB) TX bytes:16504698806 (xx.x GiB) 

和主机路线:

 # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 88.xxx.xxx.109 0.0.0.0 255.xxx.xxx.xxx UH 0 0 0 venet0 88.xxx.xxx.0 0.0.0.0 255.xxx.xxx.xxx U 0 0 0 vmbr0 0.0.0.0 88.xxx.xxx.1 0.0.0.0 UG 0 0 0 vmbr0 

来宾CentOS KVM VM:

 #ifconfig eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:88.xxx.xxx.252 Bcast:88.xxx.xxx.255 Mask:255.255.252.0 inet6 addr: fe80::22cf:30ff:fe19:7b67/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38116128 errors:0 dropped:0 overruns:0 frame:0 TX packets:21500108 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:15771625496 (xx.x GiB) TX bytes:16504698806 (xx.x GiB) 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:1805386 errors:0 dropped:0 overruns:0 frame:0 TX packets:1805386 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:532155476 (507.5 MiB) TX bytes:532155476 (507.5 MiB) 

游客路线:

 #route -n Kernel IP routing table Destination Gateway Genmask Flags Matric Ref Use Iface 88.xxx.xxx.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 88.xxx.xxx.1 0.0.0.0 UG 0 0 0 eth0 

从主机到客人的ping回来了:

 # ping 88.xxx.xxx.252 PING 88.xxx.xxx.xxx (88.xxx.xxx.252) 56(84) bytes of data. From 88.xxx.xxx.229 icmp_seq=1 Destination Host Unreachable From 88.xxx.xxx.229 icmp_seq=2 Destination Host Unreachable From 88.xxx.xxx.229 icmp_seq=3 Destination Host Unreachable --- 88.208.236.252 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3016ms 

任何帮助将grealy表示赞赏!

编辑抱歉忘了包括brctl输出

 # brctl show bridge name bridge id STP enabled interfaces vmbr0 8000.20cf30197b67 no eth0 

我对KVM并不熟悉,但是基于我所知道的对于Xen而言,你似乎错过了桥梁上的一个接口 – 你只有你的物理主机接口,但是它也应该列出任何networking您的客人正在主机上使用的设备。 我看到主机的路由表上提到的venet0接口,你可以用ifconfig -areplaceifconfig吗?

如果venet0原来是客户的接口,你可能应该使用brctl addif vmbr0 venet0将它添加到网桥。 请记住,路由表显示主机认为链路的另一端的IP为.109,因此,如果事实certificate是正确的接口,那么您可能会遇到configuration问题。 如果属于桥梁,通过venet0删除路由应该足够了。