2016-04-21 64 views
0

我的VMWare訪客機器中的網絡出現問題,工作非常隨機(通常不工作),我不確定問題可能出在哪。VMWare:訪客機器互聯網隨機工作

有時互聯網的作品(這也包括ssh到主機的可能性),但大部分時間沒有。

重新啓動networking沒有幫助,也沒有任何ifdown/ifup的。它可能開始工作的唯一情況是重新啓動整個虛擬機。即使如此,它也許開始工作在10或許一次。

我注意到迄今爲止唯一的潛在問題是,當它不起作用時,虛擬機網絡適配器的MAC地址交換 - 而如果它的工作,它們是如配置。

詳情:

  • 主持人:OS X埃爾卡皮坦10.11.4運行VMware Fusion的8.0.1
  • 客人:Linux下的Debian 3.2.0-4-AMD64#1 SMP Debian的3.2.65-1 + deb7u2 x86_64的GNU/Linux的

VMWare虛擬機的網絡設置:

  • 網絡適配器1 - NAT - 靜態MAC地址00:50:56:38:CC:21
  • 網絡適配器2 - 主機只有 - 靜態MAC地址00:50:56:38:CC:22

在我的虛擬機.vmx配置文件,我有這個(與接口):

ethernet0.present = "TRUE" 
ethernet0.connectionType = "nat" 
ethernet0.wakeOnPcktRcv = "FALSE" 
ethernet0.addressType = "static" 
ethernet0.linkStatePropagation.enable = "FALSE" 
ethernet0.pciSlotNumber = "33" 
ethernet0.address = "00:50:56:38:CC:21" 
ethernet0.startConnected = "TRUE" 
ethernet0.vnet = "vmnet2" 
ethernet0.bsdName = "en0" 
ethernet0.displayName = "Wi-Fi" 
... 
ethernet1.present = "TRUE" 
ethernet1.connectionType = "hostonly" 
ethernet1.virtualDev = "e1000" 
ethernet1.wakeOnPcktRcv = "FALSE" 
ethernet1.addressType = "static" 
ethernet1.linkStatePropagation.enable = "FALSE" 
ethernet1.pciSlotNumber = "37" 
ethernet1.address = "00:50:56:38:CC:22" 
ethernet1.startConnected = "TRUE" 

主機ifconfig

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 
    options=3<RXCSUM,TXCSUM> 
    inet6 ::1 prefixlen 128 
    inet 127.0.0.1 netmask 0xff000000 
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
    nd6 options=1<PERFORMNUD> 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 
stf0: flags=0<> mtu 1280 
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 
    ether a0:99:9b:0b:bf:c5 
    inet6 fe80::a299:9bff:fe0b:bfc5%en0 prefixlen 64 scopeid 0x4 
    inet 10.230.82.42 netmask 0xffffc000 broadcast 10.230.127.255 
    nd6 options=1<PERFORMNUD> 
    media: autoselect 
    status: active 
en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500 
    options=60<TSO4,TSO6> 
    ether 6a:00:01:ba:d6:30 
    media: autoselect <full-duplex> 
    status: inactive 
en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500 
    options=60<TSO4,TSO6> 
    ether 6a:00:01:ba:d6:31 
    media: autoselect <full-duplex> 
    status: inactive 
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 
    options=63<RXCSUM,TXCSUM,TSO4,TSO6> 
    ether a2:99:9b:b0:3e:00 
    Configuration: 
     id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0 
     maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200 
     root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0 
     ipfilter disabled flags 0x2 
    member: en1 flags=3<LEARNING,DISCOVER> 
      ifmaxaddr 0 port 5 priority 0 path cost 0 
    member: en2 flags=3<LEARNING,DISCOVER> 
      ifmaxaddr 0 port 6 priority 0 path cost 0 
    nd6 options=1<PERFORMNUD> 
    media: <unknown type> 
    status: inactive 
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304 
    ether 02:99:9b:0b:bf:c5 
    media: autoselect 
    status: inactive 
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484 
    ether 7a:81:75:a1:0f:87 
    inet6 fe80::7881:75ff:fea1:f87%awdl0 prefixlen 64 scopeid 0x9 
    nd6 options=1<PERFORMNUD> 
    media: autoselect 
    status: active 
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 
    ether 00:50:56:c0:00:01 
    inet 192.168.247.1 netmask 0xffffff00 broadcast 192.168.247.255 
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 
    ether 00:50:56:c0:00:08 
    inet 192.168.195.1 netmask 0xffffff00 broadcast 192.168.195.255 

訪客/etc/network/interfaces

# The loopback network interface 
auto lo 
iface lo inet loopback 

# The primary network interface 
auto eth0 
iface eth0 inet static 
    address 192.168.195.200 
    netmask 255.255.255.0 
    gateway 192.168.195.2 

auto eth1 
iface eth1 inet static 
    address 192.168.247.200 
    netmask 255.255.255.0 

遊客ifconfig(當互聯網工程):

eth0  Link encap:Ethernet HWaddr 00:50:56:38:cc:21 
      inet addr:192.168.195.200 Bcast:192.168.195.255 Mask:255.255.255.0 
      inet6 addr: fe80::250:56ff:fe38:cc21/64 Scope:Link 
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
      RX packets:470 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:461 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:1000 
      RX bytes:74106 (72.3 KiB) TX bytes:53650 (52.3 KiB) 
      Interrupt:19 Base address:0x2000 

eth1  Link encap:Ethernet HWaddr 00:50:56:38:cc:22 
      inet addr:172.16.121.132 Bcast:172.16.121.255 Mask:255.255.255.0 
      inet6 addr: fe80::250:56ff:fe38:cc22/64 Scope:Link 
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
      RX packets:8 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:1000 
      RX bytes:1648 (1.6 KiB) TX bytes:578 (578.0 B) 

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:61 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:61 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:0 
      RX bytes:24465 (23.8 KiB) TX bytes:24465 (23.8 KiB) 

遊客ifconfig(當網絡不工作):

eth0  Link encap:Ethernet HWaddr 00:50:56:38:cc:22 
      inet addr:192.168.195.200 Bcast:192.168.195.255 Mask:255.255.255.0 
      inet6 addr: fe80::250:56ff:fe38:cc22/64 Scope:Link 
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
      RX packets:12 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:217 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:1000 
      RX bytes:2472 (2.4 KiB) TX bytes:9398 (9.1 KiB) 

eth1  Link encap:Ethernet HWaddr 00:50:56:38:cc:21 
      inet addr:192.168.247.200 Bcast:192.168.247.255 Mask:255.255.255.0 
      inet6 addr: fe80::250:56ff:fe38:cc21/64 Scope:Link 
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
      RX packets:26 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:1000 
      RX bytes:3498 (3.4 KiB) TX bytes:620 (620.0 B) 
      Interrupt:19 Base address:0x2000 

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:219 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:219 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:0 
      RX bytes:42755 (41.7 KiB) TX bytes:42755 (41.7 KiB) 

在這裏我能看到的唯一區別 - MAC與他們的配置方式相比,地址是相反的。

當網絡的工作原理:

  • 從客戶,查驗所有192.168.195 *工作正常(0.200,1.2和0.1)
  • 從主機,我可以ping自己(。 1)和客人(.200),ping。2給了我 '請求超時' 的錯誤

當它不工作:

  • 從來賓我可以ping自己(192.168.195.200),但執行ping任何其他192.168.195 *( .2或.1)給我'Destinaton Host Unreachable'錯誤。當從主機ping網際網路時(例如8.8.4.4)
  • 我可以ping自己(192.168.195.1),但ping任何其他192.168.195。*(.2或.200)給我'請求超時'錯誤。

任何想法爲什麼這可能會發生,還有什麼我可以嘗試?

謝謝!

回答

0

現在問題已解決。

我嘗試了https://communities.vmware.com/message/2350978#2350978中描述的解決方法 - 通常使用現有的VMDK虛擬磁盤(重新創建所有外部虛擬機設置)創建新的虛擬機 - 它的工作完美無缺,即使有點矯枉過正。

以防萬一,我一直保持原來的問題VM的副本,然後,讓help from the VMWare employee之後 - 這表明從VM的.vmx配置文件中刪除NAT適配器設置(所有ethernet0.項),然後刪除網絡適配器本身,然後重新添加它 - 一切都開始完美。

猜測我剛剛在.vmx文件中,從以前版本的VMWare或舊的VM配置中進行了一些舊設置...