Virtualization

XenServer 6.2 來賓網路配置

  • June 10, 2014

我嘗試安裝的所有虛擬機都無法訪問網際網路。我在具有單個 NIC 的伺服器上安裝了 Xensever 6.2,可以通過 2 個公共 IP 訪問該伺服器。XenServer 可以 ping google.com 並且似乎配置正確。

這是 ifconfig 輸出

eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1 RX packets:1031298 errors:0 dropped:0 overruns:0 frame:0 TX packets:1204189 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:446121200 (425.4 MiB) TX bytes:799451138 (762.4 MiB)

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:462703 errors:0 dropped:0 overruns:0 frame:0 TX packets:462703 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1266255929 (1.1 GiB) TX bytes:1266255929 (1.1 GiB)

vif41.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP PROMISC MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:76 (76.0 B) TX bytes:0 (0.0 B)

vif41.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP PROMISC MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 B) TX bytes:134 (134.0 B)

xapi2 Link encap:Ethernet HWaddr FE:F8:68:1E:C6:44 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1 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:90 (90.0 B) TX bytes:0 (0.0 B)

xenbr0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:xxx.xxx.xx.xx Bcast:xxx.xxx.xx.xx Mask:255.255.255.224 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1023828 errors:0 dropped:0 overruns:0 frame:0 TX packets:821767 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:449123469 (428.3 MiB) TX bytes:775128231 (739.2 MiB)

xenbr0:0 Link encap:Ethernet HWaddr yy:yy:yy:yy:yy:yy inet addr:yy.yy.yy.yyy Bcast:yy.yy.yy.yy Mask:yy.yyy.yyy.yyy UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1`

brctl show output

bridge name bridge id STP enabled interfaces xenbr0 0000.002590d9a98e no vif43.0 eth0 xe pif-list uuid ( RO) : e790d4ba-c838-fc22-721f-7a98854029f7 device ( RO): eth0 currently-attached ( RO): true VLAN ( RO): -1 network-uuid ( RO): a4105d8f-e7ba-c5e2-1007-db34fe5cf6f7

我安裝了帶有網路的vm,它無法訪問網際網路。我是否需要以特殊方式配置來賓 vm,如果需要,如何配置。

問題是 Hetzner 丟棄了來自我隨機分配的 mac 地址的任何數據包。因此,除非我將真正的 mac 分配給我的 VM,否則它不起作用。

引用自:https://serverfault.com/questions/598644