TECHNIG
Gateway for IT Experts and Tech Geeks

How to Connect Hyper-V Machines to Internet?

In Hyper-v you can connect Hyper-v machines to Internet with two methods that I’m going to explain all step by step. This article is for those, who know the basic of Server Virtualization with Hyper-v. If you don’t know about Hyper-v Virtualization software, I recommend you to read the previews articles of Hyper-V installation and configuration posts.

Hyper-v Virtual Switches

The virtual switch is a logical switch which connects virtual machines. Currently, Hyper-v has three different types of virtual switch which I told the preview article also.

  • External: Switch is used to connect the virtual machines to external network and Internet. The virtual machines (Guest) and Host will be on the same network.
  • Internal: Switch is used to create network connection between guest machines and the host.
  • Private: The private switch is used to create network connection between virtual machines only.

Connect Hyper-v Machines to Internet Using External vSwitch

1. Create an external virtual switch in Hyper-v and then link it to the physical host network card. To create a virtual switch, open Hyper-v Manager then clicks Action and click Virtual Switches Manager.

Create Hyper-v External Virtual Switch - Technig
Create Hyper-v External Virtual Switch – Technig

2. From Virtual Switch Manager, select External virtual switch and click Create Virtual Switch.

How to Connect Hyper-v Machines to Internet in Windows 10  - External NIC
How to Connect Hyper-v Machines to Internet in Windows 10  – External NIC

3. Type a name for this virtual switch and select the exact physical network card which currently connects your host to the internet then click OK to apply the changes.

4. Now, to connect a virtual machine to the internet just select this external virtual switch as network adapter of the virtual machine.  Let’s test it on a Windows 10 Pro.

Connect Hyper-v Machines to Internet in Windows 10
Connect Hyper-v Machines to Internet in Windows 10

5. Run a virtual machine then click File and click Settings then select Network Adapter from Virtual Machine Settings. From right side select the external virtual switch as the virtual switch to connect hyper-v machines to internet.

Connect Windows 10 Virtual Machines to Internet - Technig
Connect Windows 10 Virtual Machines to Internet – Technig

The virtual machine is successfully connected to the internet through the external virtual switch.

Connect Hyper-v Machines to Internet Using ICS

The second method is using Internet Connection Sharing (ICS). ICS is another best practice to connect Hyper-v Machines to the internet. But in this method, you must share the original internet connection for virtual machines. So with ICS, you can connect your all private network machines to the internet. Let’s do it.

Configure Hyper-v Internal Virtual Switch in Windows 10 - Technig
Configure Hyper-v Internal Virtual Switch in Windows 10 – Technig

The process is the same as creating an external virtual switch. Open the Virtual Switch Manager and create a new one. Only select Internal instead of external the click OK to create the Internal virtual switch.

Enable ICS to Host Machine

1. Type “ncpa.cpl” to Windows Run and press enter to go to network connections of your host machine. Then right-click the Ethernet connection which is connected to the internet then click Properties.

Configure Hyper-v Internet Connection Sharing - Technig
Configure Hyper-v Internet Connection Sharing – Technig

2. On the Ethernet Properties page click Sharing tab then tick the checkbox of Allow other network users to connect through this computer’s internet connection then click OK to apply the changes.

3. Now for your virtual machines, you should choose Internal vSwitch as a virtual switch to connect them to the internet.

How to Configure Internet Connection Sharing on Windows 10 - Technig
How to Configure Internet Connection Sharing on Windows 10 – Technig

Yes, it works fine.

In the environment where your internet connection is a Wi-Fi connection, you can use the second method ICS to connect Hyper-v machines to the internet.

Connect Hyper-V Virtual Machine to Internet – Video

OK, that’s all. Hope you enjoy this Virtualization related article to Hyper-v beginner guide.  If you have any questions, please ask us in the comment box. We will help you fix the problems fast and easy.

4 Comments
  1. sky bird says

    Forget regarding the concept that you’re somehow creating a relationship with individuals on your subscriber list.
    You can gather various data points to understand buying pattern, effectiveness of your respective campaign and much more
    to help you your business do the right things always.
    Join an affiliate marketer program that offers good tools, and lots of
    training.

  2. José-Tomas Salvador says

    Good article. I managed to set everything up with an Ubuntu VM on Hyper-V but now I don’t know what should I do to let my Ubuntu VM sharing folders with the host machine (Windows 10 Pro)

    1. César Luis says

      Is my problem, but with android, virtualization Android, i can´t connect to net, wifi or cable, i try with tethering from my Phone and USB.

      I want resolved using tethering, is possible?

      Thanks.

  3. Dennis Foreman says

    Great instructions, My host and virtual machine can both get to the internet now, however, using this technique, I cannot reach the webserver running on my Host machine. I suspect I need to create an External adapter, but I’ve tried that and it locks out my Host from the internet. To re-enable my host, I must shut down the virtual machine and re-boot my router. Everything is running Windows 11 Pro with latest build as of 3/23/22

Leave A Reply

Your email address will not be published.