Monday, June 3, 2013

Hyper-V Virtual Machines Disappear after restart of Host

Problem:
When you open the Hyper-V Manager after a restart your VMs are missing as shown below:

clip_image001

Solution:
First make sure your Antivirus is excluding your VM directory

If you have known good backups do the following first and save yourself time.

-Stop the service using the Hyper-V Manager “stop service” icon on the right or at a dos prompt:

Net Stop “Hyper-v virtual machine management”

-Do a restore of your VMs\Virtual Machines\ directory containing your XML files such as the path below to an alternate location such as VMs\Restore\ 

clip_image002

-Rename the existing XML files with the prefix OLD (with the GUID remaining)

clip_image003

-Move the restored XML files only from VMs\Restore\ to the VMs\Virtual Machines directory

clip_image004

-Start the service using the Hyper-V Manager “start service” icon on the right or at a dos prompt:

Net Start “Hyper-v virtual machine management”

Your VM’s should now be repopulated and starting up. If all works properly you can delete the corrupted OLD(GUID).xml files.

If not proceed to the links below for deeper troubleshooting:

http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/135d1385-4b75-4737-80de-f8c517c25f8d

http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/38f7bf66-0a39-4905-90f8-c6900a4fdfd6/

If doing deeper troubleshooting See proper VM XML link Example Below:

clip_image005

1 comment:


  1. Your post is superb. Thanks for sharing us updated information.

    Macy
    www.gofastek.com

    ReplyDelete