Link to home
Start Free TrialLog in
Avatar of iancaire
iancaire

asked on

How do I recreate a virtual machine which has disappeared under Server 2008?

How do I recreate a virtual machine which has disappeared under Server 2008?
Avatar of Mino DC
Mino DC
Flag of Italy image

disappeared or deleted in Hyper-V console?
Can you try to restart the host? That has worked for me sometimes. It could be a problem with the parent either losing access to to VM configuration files, or a problem with a HYper-V management service. A reboot should solve both of those problems.
Avatar of iancaire
iancaire

ASKER

Some event blew away the configuration information in Hyper-V.  I have since read that this has happened many times on other sites (sometimes after a server reboot - very painful).  I created a new virtual machine and used the existing VHD file from the original virtual for the newly created virtual.  The second virtual file system had to re re-attached as a drive as well.

MinoDC.  The virtual machine simply disappeared.  There wasn't a server crash or any strange occurrences.

kevinhsieh.  Reboot didn't help.  The virtual machine table in Hyper-V was empty.
Well, in case the reboot doesn't help I always just recreate the VM, which is what you did. Do you have the Hyper-V patches applied? They are not available under Windows Update, and I don't know if Microsoft is going to deliver SP3 for Windows 2008. You can do a google search foy Hyper-V patches to find a technet page with all of them.
ASKER CERTIFIED SOLUTION
Avatar of Cris_Iconomu
Cris_Iconomu
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Kevin & Cris,
Thank you for your suggestions, I have the system working again but I will certainly search for the Technet patches and look at the xml.  I guess what you are saying about exclusions in the anti-virus means excluding xml files or at least the folder.
Hi iancaire,

There's more than the folder where the xml files that needs to be excluded from live scanning.
Include :
vmms.exe and vmwp.exe and the VHD folder(s)
Check on MS website, they have a kb article that explains it all.
The problem when you re-create the VMs just by using the VHDs is that you will have some settings left hanging from the missing VMs. Not that they will cause any trouble, but you don't need this to happen every time you restart the server :)

Good luck,
Cris
MS had multple issues with Vms disappearing. Make sure you are on the latest service pack on your host machine.
All you really need is the VHD file(s), which is hopefully still stored on the disk or available to restore from a backup.

You can create a new VM in a few seconds and point it to the VHD file.
You'll have to reassign:  memory, number of processors, and redo the NIC configuration but all of that is easy.
The only thing that can be confusing is if you have a lot of VM snapshots.  But you can inspect the AVHD files within the Hyper-V manager to determine the dependencies.