Bryant Likes's Blog

It's all about WebData

Recent Posts

Tags

News


  • Windows Live Alerts
    View Bryant Likes's profile on LinkedIn

    Me

    Get Microsoft Silverlight
    by clicking "Install Microsoft Silverlight" you accept the
    Silverlight license agreement


    The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are the personal opinions of the individual authors and do not represent the views of Avanade in any way.

Community

Email Notifications

Archives

Setting Up Hyper-V Virtual Networking

In my last post about setting up Windows Server 2008 I mentioned that one issue I had was that you couldn't bind Hyper-V machines to the 802.11 wireless network connection. Today I spent a little time working on this and figured out a nice solution that seems to work well for me.

The solution is to setup an internal virtual network (much like you might do with Virtual Server). Setting this up is actually pretty easy.

  1. In the Hyper-V Manager, under Actions (right panel), click the Virtual Network Manager.
  2. In the Virtual Network Manager in the Create virtual network panel, select Internal and click the Add button.
  3. In the Virtual Network Properties change the Name to something useful (I've named mine Local Network as shown below).

image

At this point you should now have a new network adapter on your host machine. Note: I recommend you rename this new network adapter to something more meaningful than Local Network Adapter X. I've renamed mine to Virtual Local Network.

Now you can add this network to each of your virtual machines, but at this point, unless you assign an IP address in each connection, you won't be able to do much. This is where ICS comes in. To enable ICS follow these steps:

  1. Click on the network icon in the tray of your host machine and select Network and Sharing Center.
  2. From there click Manage network connections.
  3. Select the network adapter that you use to access the Internet. In my case this is my wireless network adapter. Right click it and select Properties.
  4. In the properties dialog select the Sharing tab.
  5. On this tab check the box that says "Allow other network users..." and then set the Home networking connection to be the network adapter that was created above (now you see why I said to rename it to something useful).

image

Windows will prompt you that it will set the IP address to 192.168.0.1 which should be fine. Now your virtual machines that have this network connection will automatically get an IP address and will be able to connect to the Internet (provided your wireless connection is working).

Because each adapter also gets an automatic you can now share files and folders between your host and your virtual machines which is important since you can't just drag-and-drop files like you can with Virtual PC.

So there you have it. You now have your virtual network setup and can access the Internet via your wireless connection with Hyper-V virtualization.

 Update: Ben (the Virtual PC Guy) just posted a great explanation of Networking in Hyper-V which gives you more of what is actually going on.

Update[2]: Ok so Ben just posted again but explains how to use your wireless connection with Hyper-V. He probably does a better job of explaining it so if my post leaves you confused go read his. :)

Technorati Tags: ,

Comments

blogue à part - mon journal d'architecture said:

Après le lancement, j'ai décidé que je configurerais mon ordinateur portable afin d'en faire une vraie

# March 11, 2008 6:38 PM

Noticias externas said:

Après le lancement, j'ai décidé que je configurerais mon ordinateur portable afin d'en faire

# March 11, 2008 7:11 PM

Kevin K said:

Thanks for the instructions Bryant. It was fairly easy to set up the VMs to use ICS. However, I had to install integration services before the VM would recognize the adapter. Do you think this is required or did I just need to reboot the magic number of times?

K

# July 22, 2008 2:17 PM

Paul C said:

Thanks Bryant, this is just exactly the info I was looking for!

# November 9, 2008 3:45 PM

John Paul Cook said:

In addition to ICS, RRAS offers the ultimate in configurability and a network bridge offers the ultimate in simplicity. See my blog post: sqlblog.com/.../using-wireless-with-hyper-v.aspx

# December 22, 2008 8:39 PM

cheapest levitra prices said:

virtuous info. strict dlog

# May 24, 2009 1:33 AM

Joseasa said:

Hei, why not admit that Microsoft is way back on virtual world? 30 minutes to set up a VMware box that works, 3 days to struggle to put the virtual network working (no result) plus blue screens due to bad Microsoft drivers .. I give up , may be in a one or 2 years time...

# June 6, 2009 3:34 PM

Pharmg193 said:

Very nice site! <a href="opeaixy.com/.../1.html">cheap viagra</a>

# June 18, 2009 8:27 PM

Pharmd271 said:

Very nice site!  [url=opeaixy.com/.../2.html]cheap cialis[/url]

# June 18, 2009 8:27 PM

Pharmk42 said:

Very nice site! cheap cialis opeaixy.com/.../4.html

# June 18, 2009 8:28 PM

Pharmd874 said:

Very nice site!

# June 18, 2009 8:28 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)