Users that are trying to use Hyper-V VM on Windows 10 reported that it is not connecting to the Internet.
This can be an extremely annoying issue, especially if you need the VM for working remotely or to run a program with specific requirements that needs an Internet connection.
Here is what one user had to say about this issue on the Stackoverflow forums:
I have a Windows Server 2008 R2 with 2 NICs but only one IP address, which I have installed Hyper-V. Inside of Hyper-V, I created 2 virtual machines. I set up an external virtual network and chose the NIC that is bound to the IP address. I also checked the box that lets it share that port for internet access. The physical server works great, has internet access, etc. However, neither of the 2 virtual machines can access the internet. Is there any other setting that I am missing?
Here are the best methods to try in order to fix your Hyper-V not connecting to the Internet issue. Read on to find out the details.
Follow these steps to fix the Hyper-V not connecting to the Internet issue
1. Make a new Virtual Network Switch
- Turn off your Windows 10 virtual machine.
- Open the Hyper-V Manager -> click on the Virtual Switch Manager option found in the panel to your right.
- In the newly opened window -> click New virtual network switch found in the left-side panel.
- From the right-side panel -> choose External -> Create virtual switch.
- Inside the Virtual Switch Properties window -> change the name of your virtual machine.
- Under the Connection type section -> choose External network -> Realtek PCIe GBE Familly Controller.
- Check the box next to Allow management operating system to share this network adapter -> press Ok.
Note: In case an error appears saying Error applying Virtual Switch Properties changes -> open the host machine network -> right-click -> select Properties -> uncheck the option Hyper-V Extensible Virtual Switch -> press Ok.
2. Set the configuration parameters for the network adapter
- Inside your Virtual Machine Manager -> scroll down in the right-side panel -> click Settings in the Windows 10 section.
- Choose Network Adapter from the left-side panel -> toggle the drop-down Virtual Switch menu -> choose the switch created in Method 1 -> press Ok to save the settings.
3. Set up your Network Connection to share it with Hyper-V
- On your host Windows 10 machine -> right-click the Network icon found next to your Windows clock -> click Open Network & Internet Settings.
- In the Status tab -> click on Change adapter options.
- Inside the Network Connections window -> right-click your VM -> click Properties.
- In the Sharing tab -> enable the Allow other network users to connect through this computer’s Internet connection option -> choose the network switch created earlier -> press Ok -> turn on Windows 10 in Hyper-V to finish the fix method.
We hope this guide helped you understand how to solve the Hyper-V not connecting to the Internet issue.
Please let us know if you solved the problem by commenting below this article.