2012-06-14 85 views
0

首先,我有一個穩定的VM工作正常,然後升級到最新的virtualbox版本,事情變得糟糕。首先我的.vdi崩潰了,無法重新導入,所以我降級到4.1.4,工作正常。我已經從deb amd64名片iso複製了以前的版本。virtualbox win7主機debx64訪客網絡問題

該構建與訪客從Web中獲取所有必需的依賴關係找到沒有問題。然而,重啓後,我遇到了網絡問題。

最初我可以ssh到192.168.56.112,但是一個apt-get返回的網絡不可達。我不能ssh到其他知識產權。 所以我做了一點挖掘並刪除了70-persistent-net.rules,重新啓動,現在又有了一個不同的排列組合。

我現在可以通過適配器3(192.168.20.104)上的dhcp地址ssh,DNS似乎在apt-get fetching中正常工作。 只要有ssh請求,我就可以在適配器4上啓動一個會話登錄它會終止連接並且不會重新啓動。 本地IP的192.168.56.x也拒絕連接。

後3天,多次重新安裝我還是不能讓這件事情做一個基本的配置,因爲我有它之前的工作,任何幫助表示讚賞, THX 藝術

我設立如下,

adapter 1 => host-only (intel pro/1000 T server (82543GC) 
Adapter 2 => NAT     (intel pro/1000 T server (82543GC) 
Adapter 3 => bridged   (intel pro/1000 T server (82543GC) //bridged to : [Ethernet adapter Local Area Connection:] 
Adapter 4 => bridged   (intel pro/1000 T server (82543GC) // bridged to : [Ethernet adapter Local Area Connection:] 

70持久-net.rules

# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:a7:b9:b2", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" 

# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:ae:b0:9b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" 

# PCI device 0x1af4:0x1000 (virtio_net) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:1b:16:b4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" 

# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:38:85:3a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"[/code] 

接口 #迴環ñ etwork接口 汽車LO IFACE LO INET迴環

# The primary network interface 
allow-hotplug eth0 
iface eth0 inet static 
address 192.168.56.112 
netmask 255.255.255.0 
broadcast 192.168.56.255 

allow-hotplug eth1 
iface eth1 inet dhcp 

allow-hotplug eth2 
iface eth2 inet dhcp 

allow-hotplug eth3 
iface eth3 inet static 
address 192.168.20.112 
netmask 255.255.255.0 
broadcast 192.168.20.255 

使用ifconfig -a

eth0  Link encap:Ethernet HWaddr 08:00:27:ae:b0:9b 
     inet addr:192.168.56.112 Bcast:192.168.56.255 Mask:255.255.255.0 
     inet6 addr: fe80::a00:27ff:feae:b09b/64 Scope:Link 
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
     RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
     TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 
     collisions:0 txqueuelen:1000 
     RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) 
     Interrupt:9 Base address:0xd240 

eth1  Link encap:Ethernet HWaddr 08:00:27:1b:16:b4 
     inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0 
     inet6 addr: fe80::a00:27ff:fe1b:16b4/64 Scope:Link 
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
     RX packets:6 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:1699 (1.6 KiB) TX bytes:1152 (1.1 KiB) 

eth2  Link encap:Ethernet HWaddr 08:00:27:a7:b9:b2 
     inet addr:192.168.20.104 Bcast:192.168.20.255 Mask:255.255.255.0 
     inet6 addr: fe80::a00:27ff:fea7:b9b2/64 Scope:Link 
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
     RX packets:23 errors:0 dropped:0 overruns:0 frame:0 
     TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 
     collisions:0 txqueuelen:1000 
     RX bytes:3284 (3.2 KiB) TX bytes:1138 (1.1 KiB) 

eth3  Link encap:Ethernet HWaddr 08:00:27:38:85:3a 
     inet addr:192.168.20.112 Bcast:192.168.20.255 Mask:255.255.255.0 
     inet6 addr: fe80::a00:27ff:fe38:853a/64 Scope:Link 
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
     RX packets:87 errors:0 dropped:0 overruns:0 frame:0 
     TX packets:67 errors:0 dropped:0 overruns:0 carrier:0 
     collisions:0 txqueuelen:1000 
     RX bytes:10846 (10.5 KiB) TX bytes:11466 (11.1 KiB) 

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:8 errors:0 dropped:0 overruns:0 frame:0 
     TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 
     collisions:0 txqueuelen:0 
     RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) 

主機IPCONFIG 的Windows IP配置

Host Name . . . . . . . . . . . . : tosx500 
Primary Dns Suffix . . . . . . . : 
Node Type . . . . . . . . . . . . : Mixed 
IP Routing Enabled. . . . . . . . : No 
WINS Proxy Enabled. . . . . . . . : No 

Ethernet adapter Local Area Connection 10: 

Media State . . . . . . . . . . . : Media disconnected 
Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : TAP-Win32 Adapter V9 
Physical Address. . . . . . . . . : 00-FF-6A-96-C7-8E 
DHCP Enabled. . . . . . . . . . . : Yes 
Autoconfiguration Enabled . . . . : Yes 

Ethernet adapter Local Area Connection 6: 

Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : Microsoft Loopback Adapter 
Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50 
DHCP Enabled. . . . . . . . . . . : Yes 
Autoconfiguration Enabled . . . . : Yes 
Link-local IPv6 Address . . . . . : fe80::f139:e3f3:81f4:cb87%20(Preferred) 
Autoconfiguration IPv4 Address. . : 169.254.203.135(Preferred) 
Subnet Mask . . . . . . . . . . . : 255.255.0.0 
Default Gateway . . . . . . . . . : 
DHCPv6 IAID . . . . . . . . . . . : 654442572 
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-B2-35-4A-C8-0A-A9-0D-C5-90 
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 
            fec0:0:0:ffff::2%1 
            fec0:0:0:ffff::3%1 
NetBIOS over Tcpip. . . . . . . . : Enabled 

Wireless LAN adapter Wireless Network Connection 2: 

Media State . . . . . . . . . . . : Media disconnected 
Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter 
Physical Address. . . . . . . . . : 70-F1-A1-04-70-B5 
DHCP Enabled. . . . . . . . . . . : Yes 
Autoconfiguration Enabled . . . . : Yes 

Wireless LAN adapter Wireless Network Connection: 

Media State . . . . . . . . . . . : Media disconnected 
Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : Realtek RTL8191SE Wireless LAN 802.11n PCI-E NIC 
Physical Address. . . . . . . . . : 70-F1-A1-04-70-B5 
DHCP Enabled. . . . . . . . . . . : No 
Autoconfiguration Enabled . . . . : Yes 

Ethernet adapter Local Area Connection: 

Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : Atheros AR8131 PCI-E Gigabit Ethernet Controller 
Physical Address. . . . . . . . . : C8-0A-A9-0D-C5-90 
DHCP Enabled. . . . . . . . . . . : No 
Autoconfiguration Enabled . . . . : Yes 
Link-local IPv6 Address . . . . . : fe80::3593:4f1f:e8a5:9468%11(Preferred) 
IPv4 Address. . . . . . . . . . . : 192.168.20.103(Preferred) 
Subnet Mask . . . . . . . . . . . : 255.255.255.0 
Default Gateway . . . . . . . . . : fe80::204:edff:fea9:39c%11 
            192.168.20.1 
DNS Servers . . . . . . . . . . . : 192.168.20.1 
NetBIOS over Tcpip. . . . . . . . : Enabled 



Ethernet adapter VirtualBox Host-Only Network: 

Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter 
Physical Address. . . . . . . . . : 08-00-27-00-4C-76 
DHCP Enabled. . . . . . . . . . . : No 
Autoconfiguration Enabled . . . . : Yes 
IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred) 
Subnet Mask . . . . . . . . . . . : 255.255.255.0 
Default Gateway . . . . . . . . . : 
DNS Servers . . . . . . . . . . . : 192.168.20.1 
NetBIOS over Tcpip. . . . . . . . : Enabled 

Tunnel adapter Teredo Tunneling Pseudo-Interface: 

Media State . . . . . . . . . . . : Media disconnected 
Connection-specific DNS Suffix . : 
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface 
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 
DHCP Enabled. . . . . . . . . . . : No 
Autoconfiguration Enabled . . . . : Yes 

回答

0

您可能需要上創建網橋Windows 7,以便將虛擬網卡與物理網卡橋接。使用VirtualBox設置橋接網絡有點棘手(VMware會自動實現這一點)。想想我只是將兩個適配器都添加到網橋併爲其啓用DHCP(如果我沒有記錯的話)。以防萬一:使用WireShark來查看真正發生的事情。

相關問題