Hyper-V: add a virtual card to the host


In this tutorial, I will explain how to add a virtual adapter to the Hyper-V host that will be connected to the virtual switch.

This is equivalent to adding the same type of network adapter when configuring an external virtual switch with the Allow operating system option to share this network adapter checked.

For example, this solution enables a Hyper-V cluster to create a network card for Live Migration.

Add a physical card to the host

Open a PowerShell prompt and enter the following command

Add-VMNetworkAdapter -ManagementOS -SwitchName <Virtual-Switch> -Name "Name-Network-Adapter"


Add-VMNetworkAdapter -ManagementOS -SwitchName NicTeam1_VM -Name "LM"

The virtual network adapter 1 has been added to the host.
NIC added

Configure a VLAN

In setting up a Hyper-V cluster, network cards dedicated to Live Migration are often isolated in VLANs.

Here’s how to “tag” the card in a VLAN.

Open a PowerShell prompt and enter the following command

Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName <NIC-NAME> -Access -VlanId <ID>

Example :

Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "LM" -Access -VlanId 100

To verify that the order has been taken into account enter the following command which will display the information of the card.

Get-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName <NIC-NAME>

Example :


I also use this configuration on my work computers which has only one physical network card and allows me to have multiple virtual cards on different VLANs.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!

Related Posts

Admin Center: Create a Virtual Machine on a Hyper-V Host
Introduction In this tutorial, we will have how to create a virtual machine with the Admin Center interface on a Hyper-V host. Prerequisites: Admin Center installed Hyper-V server Server added in the Admin Center Create a virtual machine 1. On the Ad

Veeam ONE: installation and configuration
Veeam ONE is a "free" software package offered by Veeam for virtual infrastructure supervision. Veeam ONE consists of software: Veeam ONE Monitor which allows the supervision of hypervisors (Hyper-V and VMware) and virtual machines. It is also possib

DNS Resolution Based on Client IP Address with Windows Server
In this tutorial I will explain how to make sure that the DNS resolution with Windows Server is done according to the IP address of the client. There are two solutions that we will see in this article. The first solution to enable network mask sortin

Leave a Comment