How to Connect Virtual Machine to Internet in Hyper-V? – It is easy and simple to configure virtual machines created on Hyper-V to access your physical network and to access the Internet.
How to Connect Virtual Machine to Internet in Hyper-V?

How to Connect Virtual Machine to Internet in Hyper-V?

After installing the virtual machine on Hyper-V, the first thing to do is to create a Network Adapter using Virtual Switch Manager and add this network card to the virtual machine.

According to network topology you created, Virtual Switch Manager can use in different scenarios. However, you can apply 2 different methods for virtual machine Internet connection. You can use the following 2 methods to connect to virtual machine to Internet in Hyper-V.

In this article, we will use the second method to connect the virtual machine to the Internet in Hyper-V.

How to Configure Virtual Machine to Connect to Internet?

Follow the steps below for the virtual machine Internet settings in Hyper-V.

   Step 1

Run the Hyper-V Manager virtualization program.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 2

In the Actions panel, click Virtual Switch Manager.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 3

First, add an Internal Virtual Switch for the virtual machine.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 4

Give the Internal Virtual Switch a name and then click the OK button.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 5

For example, to add a network adapter for a Windows 7 virtual machine, click the Right button / Settings on the virtual machine and select the Internal Virtual Switch created by clicking on the Network Adapter on the left panel of the window opened and click the OK button.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 6

Connect to the Windows 7 virtual machine and run it.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 7

When the virtual machine is powered on, configure the TCP/IP configuration of the vEthernet network card created by Hyper-V on your physical computer as follows.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 8

Configure the TCP/IP settings of Windows 7 virtual machine as shown in the following image.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 9

Pinging from the virtual machine to the gateway (192.168.10.1) will succeed as follows.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 10

From Step 1 to Step 9, we actually implemented an Internal Virtual Switch configuration. The reason for explaining this is to show an internal virtual machine on the Internet.

In this step we will add the External Virtual Switch to the Internet by adding it to the Internal virtual machine. Open the Virtual Switch Manager in the same way and click the Create Virtual Switch button by selecting External as follows.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 11

Type a name for the External Virtual Switch and fill in the description. When adding an external network, you need to select the network card that is connected to the Internet of your physical machine.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 12

Reopen the Windows 7 virtual machine network settings and add a new Network Adapter at this time by clicking Add Hardware as shown below.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 13

Add the External Virtual Switch that you created on the virtual machine

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 14

Check the virtual machine network settings. You need to get an IP address from our local network as in the image below. If it does not get an automatic IP address, you may need to check your DHCP settings.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 15

Run the CMD command prompt on the Windows 7 virtual machine and test the Internet connection by pinging the Modem IP address and Google DNS server.

How to Connect Virtual Machine to Internet in Hyper-V?

   Step 16

Finally, you can check the virtual machine Internet connection by opening an Internet browser on the virtual machine and viewing any site.

How to Connect Virtual Machine to Internet in Hyper-V?

Our Recommendation

You can purchase “Hyper-V Book” from Amazon.

How to Connect Virtual Machine to Internet in Hyper-V? ⇒ Video

You can watch the video below to set up the Internet settings of a virtual machine in Hyper-V and also subscribe to our YouTube channel to support us!

  Final Word

How to Connect Virtual Machine to Internet in Hyper-V? – In this article, we have step-by-step examined how to configure a virtual machine Internet connection using the Hyper-V virtualization program on the Windows 10 operating system. Thanks for following us!

If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!

Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!

Articles Related to How to Connect Virtual Machine to Internet in Hyper-V

Products Related to How to Connect Virtual Machine to Internet in Hyper-V
Related Products


Leave a Reply

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

1 + fourteen =