Hyper-V: add a virtual card to the host

Windows Server 2012R2  Windows Server 2016  Windows Server 2019


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


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

Example :

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

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.

Related Posts

Hyper-V: Enable Extended Sessions

Presentation Extensive sessions on Hyper-V with virtual machines can enhance the user experience with: Device Sharing File transfer Extended resolution Copy / Paste through the console ... We find par

How to install and configure Windows server routing

In this tutorial, I will explain how to set up routing with Windows Server. I regularly use this role in the different labs that I put in place under Hyper-V. I isolate the test platform with a privat

GPO: Managing Windows Firewall Rules

SummaryPresentationConfiguring Group Policy (GPO)Conclusion Presentation In this tutorial, we will see how to add rules to the Windows Firewall using Group Policy. For information, the Windows Firewal

Scroll to Top