Share via


How to connect hyper-v clients to the internet via the hyper-v server

Question

Sunday, October 11, 2009 2:45 PM | 2 votes

I'm a very beginner. I hope the experts will not ignore me...

I have an internet connection on the main computer which is a hyper-v server.

How do I connect the hyper-v clients to the internet via the server?
should I connect them to an Internal or External virtual network?

And what then?

  1. should I use a Bridge Connection between the cards or should I configure the ICS (Internet Connection Sharing)?
  2. should I configure any static IP address?

If I have to configure the ICS;
Where should i configure it? On the external net card which is connected to the internet or I need to configure it on the Virtual Network card?

Thank You!

All replies (8)

Sunday, October 11, 2009 8:57 PM âś…Answered | 7 votes

To create an external virtual network (linked to your physical NIC), you have to follow theses steps :

  1. Open the Hyper-v Manager

  2. On the right side, click on Virtual Network Manager

  3. A window is opened where you can create 3 types of virtual network (External, Internal and Private)

  4. Choose External and click on the button **Add
    **

  5. You can specify the name of your virtual network AND the connection type : choose your physical NIC

  6. Click on OK to apply your configuration

  7. If you check your Network Connections, you will see that you have your external virtual network created

To link your virtual network to a VM :

  1. Open the settings of a VM

  2. In the network configuration, choose to link your VM to the external virtual network created

  3. Click OK to apply

  4. When you will open a session on your VM, you will have access to Internet

ATTENTION !

To have Internet in your VMs, you have to have Internet on your Hyper-v server with your physical NIC !

David


Sunday, October 11, 2009 7:15 PM

Hi Roni,

If you want to have an Internet connection on your Hyper-v VMs, you have to create
an external network linked to your physical N.I.C.

You don't have to configure a static IP if you're company network uses a DHCP or if you're at home.

The only " problem " is that you will have to plug a wire on your Hyper-v server like that your VMs
will hva eaccess to Internet.

Now, if you want to have a wireless connection in your VMs, which is easier for you, you have to create
a bridge between your wireless connection on your Hyper-v server and an internal network that you
will create via the Virtual Network Manager.

If you want, I give you the link of my blog where a post is described on how to connect a VM to a wireless
network :
http://blogcastrepository.com/blogs/david_lachari/ 

The text is in French but the pictures are in english.

If you need some help, don't hesitate.

Good luck.

David


Sunday, October 11, 2009 7:42 PM

Hi Roni,

If you want to have an Internet connection on your Hyper-v VMs, you have to create
an external network linked to your physical N.I.C.

You don't have to configure a static IP if you're company network uses a DHCP or if you're at home.

The only " problem " is that you will have to plug a wire on your Hyper-v server like that your VMs
will hva eaccess to Internet.

Now, if you want to have a wireless connection in your VMs, which is easier for you, you have to create
a bridge between your wireless connection on your Hyper-v server and an internal network that you
will create via the Virtual Network Manager.

If you want, I give you the link of my blog where a post is described on how to connect a VM to a wireless
network :
http://blogcastrepository.com/blogs/david_lachari/  

The text is in French but the pictures are in english.

If you need some help, don't hesitate.

Good luck.

David

When u talked about a Wireless Network Card, did u mean a physical Wireless Network Card or a virtually Wireless Network Card?

I dont have a physical Wireless Network Card. How do I connect the VMs via a regular NIC? or how do I create a Virtual Wireless Netork Card if it helps?

I tried to make a bridge between my physical NIC and the external virtually network card and I didnt get an Internet Connection on my VMs.

Thanks again!


Sunday, October 11, 2009 11:06 PM

To create an external virtual network (linked to your physical NIC), you have to follow theses steps :

  1. Open the Hyper-v Manager

  2. On the right side, click on Virtual Network Manager

  3. A window is opened where you can create 3 types of virtual network (External, Internal and Private)

  4. Choose External and click on the button **Add
    **

  5. You can specify the name of your virtual network AND the connection type : choose your physical NIC

  6. Click on OK to apply your configuration

  7. If you check your Network Connections, you will see that you have your external virtual network created

To link your virtual network to a VM :

  1. Open the settings of a VM

  2. In the network configuration, choose to link your VM to the external virtual network created

  3. Click OK to apply

  4. When you will open a session on your VM, you will have access to Internet

ATTENTION !

To have Internet in your VMs, you have to have Internet on your Hyper-v server with your physical NIC !

David

I did what u said to, but the VM still doesnt get an Internet Connection and his Virtuall External Network Card get a 169.254.*.* address. Only The virtuall External Network Card on the Hyper-v server does get the ISP IP address. what should I do?

By the way, the VM is connected to the Hyper-V through a Domain via a virtual internal network card.


Monday, October 12, 2009 8:41 AM | 1 vote

It's for that that your VMs don't have Internet cause they use a virtual internal network !

  1. Open the Hyper-v Manager

  2. Make a right click on a VM and choose Settings

  3. Click on Network Adapter : you can choose the configuration of your network adapter. So you have to choose in Network the new external virtual network created

After that, you will have Internet on your VMs.

David


Monday, October 12, 2009 2:53 PM

It's for that that your VMs don't have Internet cause they use a virtual internal network !

  1. Open the Hyper-v Manager

  2. Make a right click on a VM and choose Settings

  3. Click on Network Adapter : you can choose the configuration of your network adapter. So you have to choose in Network the new external virtual network created

After that, you will have Internet on your VMs.

David

Thank You! But there is still a problem. when I connect the vm to the internet via the external virtual network, the Hyper-v server get disconnected from the Internet. How do I force an Internet Connection on both in the same time?

Own Answer: I configured the ICS of my physical NIC to be Shared, and now I get Internet Connection on the Hyper-v machine and the VMs either. Thx David!


Saturday, November 12, 2011 12:06 PM

 

Good info Roni and will few more points .

 

To create an external virtual network (linked to your physical NIC), you have to follow theses steps :

  1. Open the Hyper-v Manager

  2. Click on Virtual Network Manager

  3. Choose External and click on the button Add with name like eg (PAGE) click ok.

  4. This name for the virtual network will appear as the device name when you look back in the Host 2008 Box

EG- on Hyper-V Host 2008

5. On the Hyper-v host 2008 box if you check your Network Connections, you will see 2 connections
   one with physical adapter name and other with the new virtual network name you just gave (PAGE )

Note : The guest vm that you have created should have the network adapter installed .

* Either Network Adapter / Legacy network adapter

  1. Now go back to the vm right click setting > select Legacy network adapter on left> on right select the new virtaul network adapter (PAGE) > ok.

Make sure the Internet Connection Sharing is ticked .

 

Rajesh Parasa


Saturday, November 12, 2011 1:30 PM

Dear Roni

Yes you need to create external Virtual network. to do so, please use the folowing steps..

To create an external virtual network (linked to your physical NIC), you have to follow theses steps :

  1. Open the Hyper-v Manager

  2. On the right side, click on Virtual Network Manager

  3. A window is opened where you can create 3 types of virtual network (External, Internal and Private)

  4. Choose External and click on the button **Add
    **

  5. You can specify the name of your virtual network AND the connection type : choose your physical NIC

  6. Click on OK to apply your configuration

  7. If you check your Network Connections, you will see that you have your external virtual network created

To link your virtual network to a VM :

  1. Open the settings of a VM

  2. In the network configuration, choose to link your VM to the external virtual network created

  3. Click OK to apply

  4. When you will open a session on your VM, you will have access to Internet

ATTENTION !

To have Internet in your VMs, you have to have Internet on your Hyper-v server with your physical NIC

 

Kamal Sharma