Virtualization

To enable Hyper-V virtual machines to access the internet on Windows Server 2012 or higher, from within Hyper-V select Virtual Switch Manager. Add a new virtual network switch and select External. From the drop down select the network adapter you want to use to connect to the internet, and select Allow management operating system to share this network adapter.

This will create a bridged network on the host computer. Edit the TCP/IP v4 settings for the external virtual switch on the host computer as follows: