我的家用计算机上装有Windows 8 Pro。我想在Hyper-V下运行Windows 7 Professional VM,并且希望VM具有完全的Internet访问权限。我的物理机具有用于连接路由器的无线网络适配器。
到目前为止,这是我所做的:
在Hyper-V管理器中,我创建了一个新的外部虚拟交换机,该交换机已连接到我的无线网络适配器。如果查看Windows 8的“网络连接”页面,可以看到它已创建了一个虚拟以太网适配器和一个网桥,并且现在我的无线适配器已桥接。
我已经创建了Windows 7 VM,并在Hyper-V设置中将其设置为使用虚拟交换机。
登录虚拟机时,我有一个网络,但是它是“ unidentified”并且无法访问互联网。我想念什么?与“ VLAN标识”设置有关吗?我不太确定这些是关于什么的。
为了使VM连接到Internet,您必须将其绑定到以太网/无线NIC卡。为此,您必须创建一个“虚拟交换机”。
选择Action
->Virtual Switch Manager
选择External
然后Create Virtual Switch
Give the Switch a Name and then select the External Controller you use to connect to the internet (Ethernet, or Wireless NIC, etc,.)
Note: You must select the way that you are actually connecting to the internet. IE, if your computer is set up to use Wifi or Ethernet, but is currently using Ethernet, you must use Ethernet - the Wifi connection will not work because the host machine isn't currently using it.
Select Apply
and then OK
Right click on the Virtual Machine you want to connect and select Settings
Under the Network Adapter
Setting select the newly created Virtual Switch
This should enable the connection you use to connect to the internet to be accessible to the VM
注意:您可能必须在远程计算机上执行ipconfig /release
和ipconfig /renew
(Windows)或sudo dhclient -v -r
和sudo dhclient -v
(Linux)才能更新其DHCP设置并检索IP地址。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句