Windows 7 virtualbox win7主机debx64来宾网络问题

Windows 7 virtualbox win7主机debx64来宾网络问题,windows-7,virtualbox,Windows 7,Virtualbox,首先,我有一个稳定的虚拟机运行良好,然后升级到最新的virtualbox版本,事情就糟了。首先,我的.vdi崩溃了,无法重新导入,所以我将其降级到4.1.4,运行正常。我从deb amd64名片iso复制了以前的版本 构建过程中,来宾从web获取所有必需的依赖项没有问题。然而,在重启时,我的网络出现了问题 起初我可以ssh到192.168.56.112,但是apt返回的网络无法访问。我无法ssh到其他IP。 所以我做了一些挖掘,删除了70-persistent-net.rules,重新启动,现在

首先,我有一个稳定的虚拟机运行良好,然后升级到最新的virtualbox版本,事情就糟了。首先,我的.vdi崩溃了,无法重新导入,所以我将其降级到4.1.4,运行正常。我从deb amd64名片iso复制了以前的版本

构建过程中,来宾从web获取所有必需的依赖项没有问题。然而,在重启时,我的网络出现了问题

起初我可以ssh到192.168.56.112,但是apt返回的网络无法访问。我无法ssh到其他IP。 所以我做了一些挖掘,删除了70-persistent-net.rules,重新启动,现在是一个不同的排列

我现在可以通过适配器3 192.168.20.104上的dhcp地址进行ssh,DNS似乎可以很好地使用apt获取。 只要ssh请求登录,我就可以在适配器4上启动会话,它会终止连接并且不会重新启动。 本地IP的192.168.56.x也拒绝连接

经过3天和多次重新安装,我仍然无法让这件事做一个基本的配置,因为我有它的工作之前,任何帮助是感激的, 谢谢 艺术

我的设置如下所示

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-persistent-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]
接口 环回网络接口 自动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

您可能需要在Windows 7上创建网桥,以便将虚拟NIC与物理NIC连接起来。使用VirtualBox设置桥接网络有点棘手VMware会神奇地自动完成这项工作。如果我没记错的话,我想我只是把两个适配器都添加到了一个网桥并为它启用了DHCP。以防万一:用WireShark看看到底发生了什么。

这在Windows主机上对我很有效

将网络适配器配置为

1允许网络适配器唤醒计算机

2让魔法包唤醒电脑

3允许IPV6

现在,我可以睡觉和叫醒我的机器,而且来宾和主机都可以联网,而不仅仅是主机