Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Getting a virtual machine connected to the outside world in Hyper-V is a non-intuitive process. I had to bumble around with it a bit before finding the secret combination that worked well. Before I show you how it’s done (or at least one way of doing it), here are a couple of things to keep in mind:
Let’s say you want to configure your virtual machine to automatically use the physical network adapter whenever it’s plugged into a live connection, and also use a wireless connection when the physical network adapter is not plugged in. Here’s how you do it:
This procedure assumes that you are running Windows Server 2008 on a computer that supports hardware virtualization, and that you are logged into an account that is a member of the Administrators group.
Create an Internal virtual network
Create an External virtual network
This step is the secret ingredient that allows a Hyper-V virtual machine to access a network connection through the physical computer's wireless adapter.
The procedure can only be performed on a virtual machine that is turned off. Do this for each virtual machine you want to connect to the external world.
Your virtual machine should now have total Internet connectivity!