November 21, 2013

Hyper-V - Management

# List of network interfaces on hyper-v host (need name for next command):
Get-NetAdapter

# Create new virtual switch:
New-VMSwitch -AllowManagementOS $False -Name "VirtualSwitchName" -NetAdapterName "Name of network interface"

# Creating network interface that will be acting as management:
Add-VMNetworkAdapter -ManagementOS -Name "InterfaceName" -SwitchName "VirtualSwitchName"

# Setting management vlan on newly created interface:
Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "InterfaceName" -Access -VlanId <VLAN NUMBER>

No comments:

Post a Comment