Pages

Showing posts with label virtual switch. Show all posts
Showing posts with label virtual switch. Show all posts

Sunday, 7 June 2015

Windows 10 Update Causes Host Network and Hyper-V Network to Stop Working

Unable to Enable Network Device for both Host Network and Hyper-V Network After Windows 10 Update

Unable to Enable Hyper-V Network Device

Symptom:
1. After updating Windows 10 to the latest build, host machine looses connectivity to LAN.
2. Virtual machines in Hyper-V still has connectivity to LAN but host machine doesn't have have connectivity to LAN.
3. In Network Connections, Hyper-V network device is disabled and cannot be enabled.

Solution:
1. Perform this in elevated administrator rights.
2. Windows Key + F, enter "cmd".
3. Right click on CMD and run as Administrator.
4. Enter "devmgmt.msc" to open up Device Manager.
5. In Devie Manager, uninstall both physical NIC and virtual Hyper-V NIC.
6. Scan for hardware changes.
7. Physical NIC will be reinstalled automatically.
8. Open up Power Shell in elevated administrator rights.
9. Windows Key + F, enter "powershell", right click run as Administrator.
10. Enter "Get-NetAdapter" in PowerShell to list physical NIC.
11. Create a new Hyper-V virtual network device.
12. Enter New-VMSwitch "vSwitch" -NetAdapterName "Ethernet" -AllowManagementOS $True
* vSwitch = desired name for your Hyper-V virtual switch and Ethernet = name of your physical adapter.
13. Enter "Get-NetAdapter" again to view newly created virtual adapter.
14. Go back to Hyper-V Manager.
15. Open Virtual Switch Manager to verify the newly created virtual switch is in External Network > Physical NIC mode.
16. Check virtual machine settings to verify they are mapped to the newly created virtual switch.
17. Verify virtual machine is able to access LAN.

Uninstall physical NIC, Hyper-V NIC, and scan for hardware changes

PowerShell commands

Hyper-V Manager

Virtual Switch Manager

Saturday, 8 November 2014

Bridge Hyper-V VM Virtual Network to Physical Switch Network

Place Hyper-V VM on the Same Network as Physical Switch


Scenario:

On some instance, after installing VM in Hyper-V. The VM does not have any network connection to the physical switch.

Instruction: 

1. In Hyper-V Manager, click Virtual Switch Manager.

2. Select External virtual switch and click Create Virtual Switch.
3. Click OK

Note:

External - Connects to physical switch network (bridge mode)
Internal - Hyper-V Host can talk to Hyper-V VM (vice versa) but cannot talk to physical switch network
Private - Hyper-V VM can talk to other Hyper-V VM but not with Hyper-V Host and physical switch network