Setting up Network for Hyper-V VM
Background
I worked on building a SharePoint 2010 Hyper-V image this weekend. In order to get the image installed, I had to ensure that my wireless network connection on the Hyper-V host could be shared with the Virtual Machines I created. The procedure I followed can be found here.
Process
This procedure was used while creating an image with Windows Server 2008 R2 with the Hyper-V role added. The host OS uses a DLink wireless connection to my home internet. This wireless connection was shared.
- Make sure your VM has no existing network device associated
- Create a new “Internal” virtual network adapter. Give it an obvious name.
- Open up the Network and Sharing Center and click on the link to the adapters.
- Ctrl+Click your Internet adapter for the host OS and the new Internal adapater (identified by its obvious name)
- Now with both connections highlighted, right click and choose to Bridge connections
- Once bridging is complete, go back to Hyper-V and add the internal connection to a VM.
- When the VM is booted, it will see and share the internet connection
Note: This process may only work for a single VM. I saw comments indicating it may not share across multiple virtual network adapters. In that case you may need to use the ICS (Internet Connection Sharing) solution. (http://bryantlikes.com/SettingUpHyperVVirtualNetworking.aspx)
Lessons Learned
- Do not bridge a connection that is already assigned to a VM. I tried this and it failed to pick up the internet connection. (Create the internal virtual network first and do not associate it with a VM!)
- If you remove the bridge, delete the remaining bridge adapter. I did not immediately delete the bridge remnant from the adapters list and until I did, my local host could not access the internet.
- ICS may be a better solution, but bridging works quick if you only need on VM
-
Recent
- Sharepoint 2010 Anonymous Access
- 2011 Goals
- SharePoint 2010 User Profile Sync Error Fixed
- SQL Server Reporting Services 2005 and Windows Server 2008
- SharePoint 2010 and PerformancePoint Services
- 5 Tips for MSDN Forum Etiquette
- Setting up Network for Hyper-V VM
- Installing SharePoint 2010 RC on Win7
- SharePoint Saturday Houston
- SharePoint 2010 RC Installation Changes
- I’m Back – Goals for 2010 and more
- Windows 7 Virtual PC Experience
-
Links
-
Archives
- January 2011 (2)
- November 2010 (1)
- September 2010 (2)
- August 2010 (1)
- May 2010 (1)
- April 2010 (2)
- March 2010 (2)
- November 2009 (2)
- October 2009 (6)
- September 2009 (5)
- August 2009 (1)
- July 2009 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS