In this example I have Windows Server 2008 running on my laptop and I have installed Hyper-V. I have 3 Virtual machines installed in Hyper-V. I will be connecting my new Virtual Machine (also running Windows 2008), named sp2010, to the wireless internet on my laptop. For the rest of  this article, I will refer to my laptop as “the Host” and refer to my Virtual Machine (sp2010) as “VM“. Lets begin…

IMPORTANT: You will probably not be able to connect to the internet if you switch to a wired ethernet cable connection in the future. If this happens, go to Start -> Control Panel -> View network status and tasks -> Change adapter settings  -> then delete the “Network Bridge” connection.

  1. Log onto the Host machine using an administrator profile.
  2. Confirm that the Host is connected to the internet. I’m assuming that if you are reading this blog then you are connected to the internet and able to browse websites. 
  3. Start -> All Programs -> Accessories -> Command Prompt
  4. Type “ipconfig /all” and press the Enter key.
  5. Scroll through the results back up to the top and find your Wireless LAN adapter Wireless Network Connection (this may be named differently on your computer). Below that, find the following values and write them down on paper: IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers. If many results are listed and you are not able to scroll back up to where you entered “ipconfig /all” then repeat step 4, but use the “Pause” key on your keyboard to pause the results near the top of the results and find the values you need.
  6. Start -> Administrative Tools -> Server Manager

  7.  Expand the following nodes: Roles -> Hyper-V -> Hyper-V Manager -> MyServerName -> sp2010
  8. Select your VM Name (sp2010) and click “Virtual Network Manager…”
  9. Select “External” and click “Add”

  10.  Select your network adapter in the drop down list. Your network adapter may have a different name than “Broadcom NeXtreme 57xx Gigabit Controller” and that’s alright. Set the rest of the configurations as shown above in red. Click “OK”.
  11. Click “Yes” if you get a warning message from Apply Networking Changes/Pending changes…
  12. Close the Server Manager window and close any Control Panel windows and other network configuration windows that may be open.
  13. Start -> Control Panel -> View network status and tasks -> Change adapter settings

  14.  Select the connection labeled “Virtual External (VM Internet). Press the F2 key and change the name to “Virtual External”.

  15.  Hold down the Ctrl key, select both the “Virtual External” connection and Wireless Network Connection, right click “Virtual External” connection, and select “Bridge Connections”.
  16. Confirm that Bridged Connection does not have a red “X” on the icon (it is enabled). Confirm that Wireless Network Connection and “Virtual External” connection say “Enabled, Bridged” and that they do not have a red “X” on the icon. Confirm that you still have internet access on the Host machine.
  17. Repeat step 6 and step 7.
  18. Right click your VM and select “Settings…”. 
  19. In the “Hardware” section, click “Network Adapter”
  20. In the “Network Adapter” section, select “Virtual External (VM Internet)” from the “Network” drop down list. Click “OK”.
  21. Connect to/start/log onto your VM using an administrator profile.
  22. Start -> Control Panel -> View network status and tasks -> Change adapter settings
  23. Right click on Local Area Connection and select “Properties”
  24. Select “Internet Protocol Version 4 (TCP/IPv4)” and click “Properties”.
  25. Select the “Use the following IP address:” and “Use the following DNS server address:” radio buttons.
  26. Enter the values you wrote down in step 5 into the following fields: Default gateway, Preferred DNS server.
  27. Enter an IP address that is not currently in use on your network. If you are at work, you may have to contact your company network administrator. If you are at home, the first three numbers of the IP address should be the same as the Host IP address (you wrote it down in step 5) and the last number of the IP address should NOT be the same as any of the IP address you wrote down in step 5. The last number must be between 1 and 255.
  28. Enter the “Subnet mask” you wrote down in step 5. Click “OK”.
  29. Close the “Local Area Connection Properties” window.
  30. If Windows alerts you about an IP address conflict, then you keep repeating step 27 and step 28 to pick a different IP address, one which is not currently in use on your network.
  31. Confirm that you have successfully configures internet access on your VM now by browsing the internet. Finished!