Scroll To Top

How to Connect Hyper-v Machines to Internet?

Posted in MCSA, Servers, Virtualization2 years ago • Written by Shais1 Comment

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 knows the basic of 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.

The virtual switch is a logical switch which connect virtual machines together. 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 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.

1. Connect Hyper-v Machines to Internet Using External vSwitch

Create and external virtual switch in Hyper-v and then link it to the physical host network card. In order to create virtual switches, open Hyper-v Manager then click Action and click Virtual Switches Manager.

Hyper-v External Virtual Switch

Hyper-v External Virtual Switch

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

Essential Hyper-v Configuration - External NIC

Connect Hyper-v Machines to Internet – External NIC

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

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

Connect Hyper-v Machines to Internet

Connect Hyper-v Machines to Internet

Open a virtual machine then click File and click Settings then select network adapter. From right side select the external virtual switch as virtual switch to connect hyper-v machines to internet.

Windows 10 Pro

Windows 10 Pro

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

2. Connect Hyper-v Machines to Internet Using ICS

Internet Connection Sharing (ICS) is another best practice to connect Hyper-v Machines to 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 internet. Let’s do it.

Hyper-v Internal Virtual Switch

Hyper-v Internal Virtual Switch

The process is the same as creating 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 on Host Machine

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

Hyper-v Internet Connection Sharing

Hyper-v Internet Connection Sharing

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

Now for your virtual machines you should choose Internal vSwitch as virtual switch in order to connect them to internet.

Internet Connection Sharing on Windows 10 Pro

Internet Connection Sharing on Windows 10 Pro

Yes 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 internet.

OK, that’s all. Hope you enjoy this Virtualization related article to Hyper-v Beginner.  If you have any question, please ask through comment.

TAGS: , , ,
About this Author

I'm a network and Information Security instructor. Here is my online pictorial notebook. I would like to write and share my experience through this website for computer enthusiasts and technology geeks.

Like us on Facebook
on Facebook

Follow me on Twitter
Follow @technigs on Twitter
Add me on Google+
on Google+

1 Comment so far. Feel free to join this conversation.

  1. sky birdSeptember 9, 2017 at 9:24 am - Reply

    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

Leave A Response