Mastering Windows Server 2016 Hyper-V

(Romina) #1
uncheck this    box,    you will    receive a   warning when    the switch  is  being   created that
you will lose access to the host unless you have another network adapter used for
management communication. The warning is shown to protect you from disabling
any way to communicate with the host.
6 . If you plan to use SR/IOV, select the Enable Single-Root I/O Virtualization (SR-
IOV) check box. This cannot be changed after the switch is created. (SR-IOV is
covered later in this chapter. It’s a technology found in newer, advanced
networking equipment and servers that allows virtual machines to communicate
directly with the networking equipment for high-performance scenarios.)
7 . If you selected the option to allow the management operating system to use the
network adapter, you can set the VLAN ID used by that network adapter on the
host operating system through the VLAN ID option by selecting the Enable Virtual
LAN Identification For Management Operating System check box and then
entering the VLAN ID. Note that this does not set the VLAN ID for the switch but
rather for the virtual network adapter created on the management partition.
8 . After selecting the options, click the OK button to create the switch. (If you
unchecked the option to allow the management operating system to use the
adapter, the warning displays at this point.)

Creating switches is also possible using PowerShell. The following commands create
an external (without sharing with the management operating system), an internal,
and a private switch and then list switches that are of type External:


#Create new external (implicit external as adapter passed)
New-VMSwitch -Name "External Switch" -Notes "External Connectivity" `
-NetAdapterName "VM NIC" -AllowManagementOS $false
#Create new internal (visible on host) and private (vm only)
New-VMSwitch -Name "Internal Switch" -SwitchType Internal
New-VMSwitch -Name "Private Switch" -SwitchType Private


After creating a switch, you can view it through the Virtual Switch Manager and
modify the properties. A virtual switch’s type can be changed at any time unless it is
an external virtual switch with SR-IOV enabled. In that case, its type cannot be
changed without deleting and re-creating it. Virtual network adapters can be
connected to the switch through the properties of the virtual network adapter.

Free download pdf