By Crystal / Last Updated February 1, 2023

Case: Help, the Hyper-V VM No Internet

 

I created a new Hyper-V virtual machine of Windows 10 system and tried to set up an external virtual network using a wireless adapter in the Virtual Switch Administrator. However, when I perform this setting, the Windows 10 virtual machine is still unable to connect to the Internet. I have been trying for hours with the same result, no Internet on Hyper-V VMs. Can anyone help me with this problem?

Microsoft Hyper-V allows users to create virtual machines and execute and manage multiple operating systems on a single physical server. But in some cases, newly created virtual machines may have no Internet access, as described in the case above.

So, what causes Hyper-V Internet no and how to fix it? In this article, I will introduce how to fix the issue of Hyper-V VM no Internet and offers solutions on how to connect Hyper-V to Internet correctly. You can click the following anchor text to jump to the part you need.

The reasons why Hyper-V VM No Internet

The problem of Hyper-V VM no Internet may be caused by the following reasons.

  • DHCP server may be temporarily shut down for maintenance or misconfigured, which causes Windows-based computers cannot assign themselves an IP address from DHCP automatically.
  • If the virtual network adapter does not match the Windows system of the VM, it will result in a failure to network connection. For example, if the virtual machine is installed with Windows Vista system, it can only use the legacy network adapter instead of standard network adapter. However, if your Hyper-V VM cannot access to Internet on Windows latest OS such as Windows 11/10 or Windows Server 2019, the mismatched network adapter should not be the cause of the problem.

hyper-v vm no internet

Easily fix Hyper-V no Internet issue for Windows 11/10 in 3 steps

If your Windows 11 Hyper-V no Internet access (or other late versions like Windows 10 or Windows Server 2019), you can try sharing your host network connection with Hyper-V. It is necessary to note that you need to create a new virtual network switch and specify a network adapter first before sharing the network connection in Hyper-V.

Tips: If your VMware Internet doesn't work, you can check Firewall, virtual IP address, Ethernet controller driver, etc.

Step 1. Add a new Virtual Network Switch in Windows 11

1. Access to Hyper-V Manager and shut down the Windows 11 virtual machine. Then right-click the VM and select Virtual Switch Manager.

2. In the opened wizard, click New virtual network switch >> External >> Create Virtual Switch.

create virtual switch

3. Type a name for the new virtual network switch, and select External network >> Realtek PCIe GBE Family Controller >> Allow management operating system to share this network adapter.

connect to external network

Tips: If you meet the error showing “Error applying Virtual Switch Properties changes” during this procedure, you can locate this network adapter and right-click it, select Properties >> Uncheck Hyper-V Extensible Virtual Switch.

Step 2. Specify the configuration of Network Adapter

1. Back to Hyper-V Manager, select the virtual machine and Settings.

2. Click Network Adapter, and select the virtual switch you created. Click OK.

Step 3. Share the Network Connection in Hyper-V

1. From the desktop, click the Network icon and open the settings.

2. Click Status >> Change adapter options to find the virtual machine network.

3. Right-click it and select Properties >> Sharing >> Allow other network users to connect through this computer’s Internet connect. Then from the below box, select the created network switch. Click OK.

share network with hyper-v vm

4. Power on the Windows 10 virtual machine to check the network status.

How to resolve the virtual network adapter doesn't match guest OS

As I mentioned before, sometimes Hyper-V Internet not working may also because the virtual network adapter does not match the guest system of the VM. In this case, the guest operating systems, for example, Windows 7 Starter 32-bit may require a legacy network adapter installed.

Here are the steps to resolve it:

1. Access to Hyper-V Manager and shut down the target virtual machine.

2. Click Add Hardware, and then select Legacy Network Adapter, click Add.

Add Legacy Network Adapter

3.Select a virtual switch for your legacy network adapter, and click OK to save.

Select a Virtual Switch

Updated: Fix Physical Machine Network Issue

In addition to Hyper-V Internet not working, you may encounter other problems when creating new virtual machines on Hyper-V.

After creating a virtual machine in Hyper-V, some users find that the network traffic on all computers can only be sent out through the virtual network adapter due to the incorrect priority of the network adapter, which eventually causes the Internet of the virtual machine to be normal while the local machine has no Internet. So, how to solve this problem? Please refer to the following steps.

1. Open Windows PowerShell.

2. In the window, type Get-NetAdapter, remember the IfIndex value OF virtual network adapter. Press Enter.

3. Type Get-NetIPInterface to monitor the IfIndex value, press Enter.

view interfacemetric values

Tips: On Windows, a smaller Interface Metric value means a higher priority, so to solve no Internet on the local machine after running Hyper-V virtual machine, please lower the priority of the virtual network adapter.

4. Press Windows+I to open Internet Settings. In Status page, select Change adapter options. Then select the Virtual Network Adapter >> Properties.

5. Select Internet Communications Protocol version 4 (TCP/IPv4) >> Properties >> Advanced >> Uncheck the Automatic metric and type a value in the Interface metric box. Click OK.

change network adapter

6. Back to Networking page, select Internet Protocol version 6 (TCP/IPv6) and refer to step 5 to modify the values of Interface metric.

fix local machine no network

After solving the network problem, you can run your Hyper-V virtual machine for workloads, and do not forget to back up Hyper-V VM to protect virtual machine security.

Important: Completely Protect Your Hyper-V Virtual Machine

Network error could dramatically affect your normal work and plans. Some virus could also damage your data through internet. It would be better to safeguard Hyper-V VM comprehensively. In addition, many unexpected errors may also occur during routine virtual machine works. That’s why all of us put so much emphasis on data security.

For professional data protection, it’s necessary to use a powerful backup solution. AOMEI Cyber Backup is a free Hyper-V backup software devoted to automating the backup process of VMs, monitoring the status and sending email notifications if there's an error. It offers you the following benefits:

Automated backup: Schedule automated backups based on daily/weekly/monthly to run backup task automatically without human intervention.
Backup multiple VMs at once: Back up VMs in a central console without installing Agents on each VM.
Resilient change tracking: Create full backups, or perform incremental backup to capture only changed data.
Hot Backup: Backup entire Hyper-V virtual machines while running including OS, configuration, application, personal data and system state.
Fully compatible with Hyper-V & VMware: Backup the entire Hyper-V or VMware virtual machine including OS, configuration, application, personal data and system state.

Download and enjoy the perpetual Free Edition:

Download FreewareVMware ESXi & Hyper-V
Secure Download

*You can choose to install this VM backup software on either Windows or Linux system.

3 steps to offer comprehensive protection for Hyper-V VM

1. Download AOMEI Cyber Backup and add your devices.

2. Create Backup Task: In backup task page, set up your backup plan.

Task Name >> Device >> Target >> Schedule >> Backup Cleanup

Hyper-V backup

3. Click Restore to achieve fast disaster recovery that restores the virtual machine to its original location.

Restore to original location

✤ Advanced features you may need (available in Premium Edition):

  • Backup cleanup:  Set up a retention policy to delete your older full backups/incremental backups automatically and save storage space .
  • Restore to new location: Create a new identical VM from a backup to the same or another datastore/host, saves the hassle of re-configuring the new VM.

Restore to new location

Summary

When your Windows 11 Hyper-V no Internet access and you are actively looking for an effective solution of Hyper-V VM no Internet, or if your local machine cannot connect to Internet in the process of running Hyper-V VM, you can try the methods provided in this article which ensures that the correct network connection for Hyper-V VM and local machine.

In addition, backup Hyper-V VMs regularly is necessary for protecting your Hyper-V VM data from such accidental loss. You can try AOMEI Cyber Backup, an effective VM backup software that supports Hyper-V in Windows 8/8.1/10/11.