Wednesday, March 6, 2013

Using Your Windows 8 Wireless Connection Inside Hyper-V

The Hyper-V Virtual Switch is a software-based layer-2 network switch built into Windows 8’s Hyper-V Manager. The switch allows you to connect virtual machines to virtual or physical networks. In this case, we will be setting up an internal virtual network adapter to support communication between the laptop running Windows 8 and the VM running Windows Server 2012.

  • Launch Hyper-V Manager from your App Menu
  • In the Actions area in right-hand navigation, click “Virtual Switch Manager”

  • When the Virtual Switch Manager window opens, select “New virtual network switch” on the left, select “Internal” on the right, and then click the “Create Virtual Switch” button

  • Give the new switch a name like “Virtual WLAN” and click “OK”

  •  In Windows 8 sys tray, right-click on the wireless icon and click on “Open Network and Sharing Center.” You will see the new Unidentified Network connected to the vEthernet (Virtual WLAN) adapter.

  • Back in Hyper-V Manager, select your VM (make sure it is turned off) and on the lower left side, click “Settings”
  • The Settings window will default to Add New Hardware, select “Legacy Network Adapter” and click “Add

  • In the Legacy Adapter details, select the “Virtual WLAN” adapter we configured earlier and click “OK
  • Go back to Windows 8’s Network and Sharing Center and click on the “Wi-Fi” link (or the name of your laptop’s wireless adapter) listed in the Connections
  • In the adapter status window, click “Properties”

  • In the Properties window, click the Sharing tab, check the “Allow other network users…” box, select “vEthernet (Virtual WLAN)” (or the name of your wireless adapter), and click “OK” to close the window
  • Click Close to exit the Wi-Fi status window
  • To confirm you have it setup correctly, click on the “Change adapter settings” link. You should see the word Shared beside your wireless connection.