Hyper-V virtual machine in Windows 8 through the host network Internet graphics tutorial

  

In the HYPER-V environment, the virtual machine and the host in the case of different IP network segments to achieve Internet access!

There has recently been the use of Hyper-V technology directly on Windows 8 to build virtual environments for development and testing, eliminating the need to install additional software. In actual use, especially when configuring network sharing, there are some problems, which are different from other virtual machine software. Here is a typical configuration scenario (virtual machine access to the Internet through the host network, similar to NAT)

Configuration steps

Step 1: Add a virtual switch (Virtual Switch)

[Remarks] In fact, I think it may not be appropriate to translate this as a virtual switch, but the menu in the Chinese version is really called, so I don't translate it separately to avoid ambiguity.

In the next dialog box, select “New virtual network switch” and select “Extenal” this type

, then click “Create Virtual Switch&rdquo ;

In the next dialog, set Extenal network to connect to a host NIC

[Note] Please select the NIC you are currently using for Internet access. Name (may be a wired network card, or a wireless network card)

After clicking "Apply", there will be a process and your current host's network will be temporarily disconnected. In fact, Hyper-V will create a virtual network card and let it bridge with your existing network card.

Step 2: Use the virtual NIC in the virtual machine

In the properties of the virtual machine, select Add Hardware

Next in the interface Choose to add to your virtual network card before you can

This is usually the case. But maybe you run the virtual machine and find that the network still does not work. The specific symptom is that you may receive an IP address conflict error. At this time, you can manually set the IP address to solve.

Before setting up, you can first check the address of the virtual network card through the ipconfig /all command (because you want to set a different address), Subset mask and Default Gateway, DNS. Servers should be set to the same.

I hope to help you a little!

Methods/Steps

1. Add a new hardware device in [Device Manager]

2. Manually select from the list

3. Add A network adapter

4.Select Microsoft Loopback Adapter

5. Hardware Addition Complete

6. In [Network Connection], modify the newly added network adapter to modify the attribute. , select only IPV4, set an IP address, leave the gateway and DNS blank

7. Add a virtual network in HYPER-V, select the newly created [Microsoft Loopback Adapter]

8. Assigning a Network Card to a Virtual Machine

9.Installing [Routing and Remote Access Service]

10Configuring and Enabling Routing and Remote Access 11. Select Custom, check [NAT] and [LAN Route] 】

12. Add a host to the internet NIC in the NAT under ipv4 node, check [Enable NAT on this interface]

13. Statically assign IP and virtual machine DNS can be used to access the Internet (this IP address needs to be in the same network segment as the IP address of the newly created network card)

Copyright © Windows knowledge All Rights Reserved