Hyper-V: No Internet access in a virtual machine

I was trying to install a small development environment on my Surface Book and of course I wanted to use Hyper-V for that. I got Windows Server 2012 and a SQL Server 2014 setup in no time and was actually surprised how well the virtual machine was running... Until I wanted to install the SharePoint PreReqs and realized I had no Internet access. I hope someday, virtualization software will come with one simple button: "Share Internet from Host? Yes/No". But until then, we will always have to work around some restrictions. Those restrictions make sense in a business / company sense, but not for small development environments on notebooks.

So here's how you will get Internet access!

1. Open your

Hyper-V Manager

2. Go to the

Actions

pane and select

Virtual Switch Manager

3. Select an existing switch or create a new virtual switch

4. I you created a new switch, choose a name. In any case you will have to select

External network

under

Connection type

. Save your changes!

5. Go back to your

Hyper-V Manager

and select your VM. Change the Network Adapter to your newly created switch and your done!

Windows Server 2016 Containers: Dockerd can't create a network

SharePoint 2013: Change the People Picker to allow multiple domains