If you are a system admin and work with Microsoft Hyper-V virtual machine, you may want to know how to add a network adapter to Windows 10 Hyper-V virtual machine.
The latest version of Windows Hyper-2016 added the functionality that allows you to add or remove virtual network adapters to/from running virtual machines.
If you are new to the Windows Hyper-V virtual machine world, there are a lot of things to learn.
However, knowing how to add a network adapter to the Virtual machine is an essential part of running the VMs successfully.
How to add network adapter to Windows 10 Hyper-V
In this article, we show you how to add a network adapter to Windows 10 Hyper-V virtual machines. There are two ways to achieve this, and we have listed both the methods in this article.
1. Add Virtual Network Adapter from Hyper-V Manager
- Launch Hyper-V Manager on your Windows 10 machine.
- First you need to make sure that you have a network adapter added into your Virtual Switch manager.
- To do this, click on the Virtual Switch Manager from the right pane in Hyper V-Manager.
- In the new window, from the left pane check if you have Virtual Network Card. You should see something like the New Virtual Switch.
- Click Cancel.
- In the Hyper V-Manager, right-click on the Virtual Machine and select Settings.
- Under the “Add Hardware” section, select Network Adapter.
- Click the Add button.
- It will show you the Network Adapter window.
- Under “Virtual Switch“, click the drop-down menu and select “New Virtual Switch“.
- Click on Apply to save the changes. Click OK.
- If you have multiple Virtual Machine, you can add the same new virtual switch to other virtual machines as well.
- The Hyper-V is capable of sharing network resources with multiple VMs as long as you are running a Cat 5/6 cable on a Gigabit switch to reduce latency.
2. Add network adapter to Windows 10 Hyper-V using PowerShell
- If you don’t want to use the Hyper-V Manager or prefer your PowerShell do the talking, you can use PowerShell to add a network adapter to Windows 10 Hyper-V virtual machine.
- Right-click on Start and select Windows PowerShell (admin).
- In the PowerShell terminal, type the following command and hit enter.
Add-VMNetworkAdapter -VMName svwdsg2-12r2 -SwitchName vSwitch -Name HotAdded -DeviceNaming On
- Wait for the command to execute and that’s it. You have successfully added a virtual network adapter in Hyper-V.
- The above command should work on configuration version 6.2 and above.
Remove Virtual Network Adapter
- In case you want to remove the virtual network adapter, you can use the following PowerShell command.
Remove-VMNetworkAdapter -VMName svwdsg2-12r2 -Name HotAdded
- The above command will simply remove all the network adapters that match the name unless you specify the name of the adapter to be removed.
- To overcome this problem you can either use filters or simply use the Hyper-V Manager to remove the adapter.
- In the Hyper-V Manager, right-click on your virtual machine and select Settings.
- From the left pane, click on Network Adapter and then click the Remove button.
- Click Apply to save the changes.
RELATED STORIES YOU MAY LIKE:
- Fix: can’t Install Hyper-V in Windows 10
- Hyper-V Android Emulator is now available on Windows 10 v1803
- The best virtual machines for Windows 10 to use today