How-To

Share Your Network Connection with Hyper-V in Windows 10

Previously, we showed you how to use Hyper-V, available in Windows 10 Pro only; here’s a look at how to setup a virtual machine with another copy of Windows.

Previously, we showed you how to use Hyper-V, available in Windows 10 Pro only; to setup a virtual machine with another copy of Windows. I recently needed to perform some testing, but realized I would need the Internet for this to work. Unfortunately, Hyper-V’s out of box networking support is not really intuitive. It can be done, but is a bit involved. In order to share your computer’s Internet connection with a Hyper-V virtual machine, you will need to setup a virtual switch through your Internet connection. In this article, we show you how to do it.

Share Your Network Connection with a Hyper-V Virtual Machine

If you don’t have already have virtual machine setup, check out our previous article for instructions. If you already do, proceed to launch the Hyper-V manager. Select your virtual machine then click Virtual Switch Manager under the Actions pane.

Step 1

Select New virtual network switch, select Internal then click Create virtual switch.

Step 2

Enter a name for your switch then select Internal. Click Apply then OK.

Step 3

Select your virtual machine then click Settings under the Actions pane.

Step 4

Select the Add Hardware tab, select Legacy Network Adapter then click Add.

Step 5

Click in the Virtual switch list box then select the connection created earlier, mine is Groovy Connect. Click Apply then OK.

Step 6

Right-click the network icon in the connection icon in the Notification area then click Network and Sharing Center. There you will see your newly created connection.

Step 7

In the same window, click Change Adapter Settings, select your network connection through which your computer connects to the Internet. Right-click the connection, click Properties, select the Sharing tab then check the box All other network users to connect through this computers Internet connection.

Step 8

You should now have the Internet set up in your virtual machine. This works whether you are using a wired or wireless connection.

Step 9

If you are running another edition such as Windows 10 Home, you can use a third-party virtual machine utilities such as Oracle VirtualBox. VirtualBox handles the networking part of configuring and sharing Internet connections much easier.


14 Comments

14 Comments

  1. Laurence Frishman  

    What’s a virtual machine and what’s it for?

    • A virtual machine is a non-physical guest running within another computer using specialized software that allocates some of the hardware resources of your physical machine. You can use it to run applications that might not be compatible with the OS running on the physical machine.

      For example, if I have older app that works only on Windows 7, I can install Windows 7 in a virtual machine and run it on top of Windows 10 at the same time.

  2. L  

    Legacy doesn’t show up in the Virtual Switch options…

    • L  

      Also I have to select another switch after checking “allow other network users…”

    • Tony  

      I have the same problem. This will not work,

      • Tim M  

        I got it to work. Tried everything and as soon as I picked a NIC it lost connection. I uninstalled Hyper-V, re-installed it and tried again and it worked. You might try that.

  3. Tim M  

    followed this to the letter, still no connection on the virtual switch.

  4. William  

    Thanks Andre, it worked for me !

  5. Martine  

    This worked beautifully thank you!

  6. Urga B  

    Thanks a lot. It was a perfect solution. Now I can browse from the guest os.

  7. I can’t tell you how incredibly helpful this article was! On my laptop hyper-v is probably 10x faster than Virtualbox but without wifi it was basically useless. Thanks a lot for providing so much detail, it works perfectly for me, this has been the missing link on hyper-v for me it will save me hours of waiting time.

  8. FYI you need to run a Gen 1 VM, Gen 2 does not have legacy network adapter

  9. Tyler  

    Thank you very much for posting this!

    I was still having trouble even after following these steps though.
    I kept poking around and found out that I didn’t have the setting to make my VM Discover-able by my network, duh!

  10. Dustin  

    Why are you using an internal switch rather than an external switch if you want to get out to the internet? Why did you use the legacy adapter option rather than adding a standard network adapter already on your system?

Leave a Reply

Your email address will not be published. Required fields are marked *

 

To Top