This article demonstrates the installation steps of Hyper-V role on Windows Server 2016 and how to create a virtual switch and virtual machines in Hyper-V. To create and run virtual machines, first, you need to install the Hyper-V role on Windows Server 2016 by using either Server Manager or the Install-WindowsFeature cmdlet in Windows PowerShell.
Installing Hyper-V Role by using Server Manager
- In , on the menu, click .
Installing Hyper-V Role by using the Install-WindowsFeature cmdlet
A virtual switch allows virtual machines created on Hyper-V hosts to communicate with other computers. You can create a virtual switch when you first install the Hyper-V role on Windows Server 2016. To create additional virtual switches, use Hyper-V Manager or Windows PowerShell.
Create a virtual switch by using Hyper-V Manager
1. Open Hyper-V Manager, select the Hyper-V host computer name.
2. Select Action > Virtual Switch Manager.
|Allow management operating system to share this network adapter||Select this option if you want to allow the Hyper-V host to share the use of the virtual switch and NIC or NIC team with the virtual machine. With this enabled, the host can use any of the settings that you configure for the virtual switch like Quality of Service (QoS) settings, security settings, or other features of the Hyper-V virtual switch.|
|Enable single-root I/O virtualization (SR-IOV)||Select this option only if you want to allow virtual machine traffic to bypass the virtual machine switch and go directly to the physical NIC.|
7. If you want to isolates network traffic from the management Hyper-V host operating system or other virtual machines that share the same virtual switch, select Enable virtual LAN identification for management operating system. You can change the VLAN ID to any number or leave the default. This is the virtual LAN identification number that the management operating system will use for all network communication through this virtual switch.
8. Click OK
9. Click Yes