Pages

Showing posts with label hyper-v. Show all posts
Showing posts with label hyper-v. 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

Monday, 1 December 2014

Hyper-V Error: An error occurred while attempting to start the selected virtual machine(s)

The virtual machine saved state has compatibility issues, delete the saved state in order to start this VM.


Hyper-V Error Message

Delete Save State

Symptom:
After Windows update, Hyper-V VM stuck at saved state. Unable to power off/ resume VM successfully. Kept on getting error.

Error:
An error occured while attempting to start the selected virtual machine(s).
The virtual machine saved state has compatibility issues, delete the saved state in order to start this VM.

Resolution:
1. Open Hyper-V Management Console
2. Right click on the affected VM and select Delete Saved State
3. Power on VM

Note:
You will loose some last configured stuffs from the previous VM state of after deleting the Saved State. Recommended to restore from backup after that. Equivalent to power cycle desktop/ server without saving last configurations.

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

Free Virtualization on Windows Desktop with Hyper-V Client

Hyper-V Client Virtualization on Windows Desktop


Software requirement:

Only Professional and Enterprise editions of Windows 7, Windows 8, Windows 8.1, and Windows 10 is supported.

Hardware requirement:

Only 64 bit processor (Intel Core i5, Core i7, Core i3 4th generation and above).
Intel Virtualization Technology (Intel VT-X) must be enabled in BIOS.

Instruction:

Part 1: Install Hyper-V Client Feature

1. Open up Control Panel > Programs > Programes and Features. Click Turn Windows features on or off.

2. Scroll down and tick Hyper-V. Click OK.

Part 2: Create a New Virtual Machine

1. Click on Windows Start button. Type Hyper-V in search box. Click Hyper-V Manager.

2. Inside Hyper-V Manager, right click on computer name. Select New > Virtual Machine.

3. Click Next.

4. Enter VM Name and Select Location for VM installation. Make sure the target location has at least 20GB free disk space. Click Next.

5. Select Generation 2 if you are virtualizing Windows 8 and above desktop OS or Windows Server 2012 and above server OS. If you are virtualizing any other OS, select Generation 1. Click Next.

6. Enter RAM you wish to allocate for VM. Recommended minimum 2GB for 64 bit OS or 1GB for 32 bit OS. Click Next.

7. Select the physical NIC that VM will be using. For some instance, you may need to configure the Hyper-V Switch Manager first before being able to see the physical NIC here. Click Next.

8. Allocate the desired virtual hard disk size for VM. You can overload the VHD to be larger than your physical HDD, but the VHD cannot outgrow your physical HDD. Click Next.

9. Select the path where the ISO installer is located. You must have downloaded the ISO in advance before coming to this step. Click Next.

10. Review that all configurations are correct. Click Finish.

11. VM name will now be showing up in Hyper-V Manager. Scroll to VM name, right click VM name and start VM. You will now be installing the OS into VM just like on your physical machine OS installation process.

Note:

You must have the ISO OS installer downloaded in advanced. This can be obtained from TechNet Evaluation Centre for Microsoft OS.
You must have a minimum of 20GB free disk space for each VM to be installed.

Thursday, 23 October 2014

Hyper-V VM Error After Completed Windows Update on Windows Technical Preview (Windows 10)

Error Message: 'VM_Name' failed to restore. (Virtual machine ID *-*-*-*-*)

Sample of error messages in Event Viewer

Error 1:

Error 2: 

Symptoms:

After running Windows Update on Windows Technical Preview (Windows 10), VM stuck in Saved state mode. Cannot Power Off VM or Restore VM in Hyper-V Manager. Kept getting the above error.

Resolution:

1. Open up Hyper-V Manager console
2. Click on the affected VM
3. Go to affected VM's Action column on left of screen
4. Scroll down towards end of the screen
5. You should see Delete VM's Current State
6. Click on it to delete. You will loose all the last settings done in the current stuck saved state frozen VM.
7. Power on VM and it should start normally

Note:

Some data will be lost from current saved state VM when you apply this resolution.