VM Snapshot cannot be deleted. Restarting Hyper-v services makes VM to disappear from Inventory
-
Monday, December 17, 2012 10:17 AM
Dear Folks,
We have created Hyper-v VM snapshot manually for backup purpose. But while deleting snapshot we were getting error and in VM BIOS error thrown stating the wmi object contained an invalid value in property bios numlock" and all the VM settings have been vanished.
Also we were not able to perform any action on that particular VM. So we tried restarting Hyper-v services and our VM got disappeared from inventory. Though all the configuration files and vhd and avhd files are safe in disk.
Please let us know how to add this VM back to the inventory and recovery snapshot deletion error.
I'm new to Hyper-v products and please bear if its noobs question though I have searched on this topic and found nothing relevant or nothing has helped to solve our problem so far.
Thank you,
Hari.
All Replies
-
Monday, December 17, 2012 11:10 AM
Hello
You can try to use import and see if it works..
to little information to understand whats going on..
Regards
-
Monday, December 17, 2012 11:26 AM
hi Ales, Thank you for your response. I tried it... But it went unsuccessful as it is searching for an import file configuration which is missing...
Further to my above post I found when I exclude VM from the MS Fail over Clustering it is working really well... But still i Could not delete the snapshot. This too we suspecting Anti virus as we haven't done any file exclusion as per best practices...
I will post you with the results if anything works.
Thank you,
Hari.
-
Monday, December 17, 2012 11:55 AM
aa ok.. i supposed you had vm files.. so you left just with vhd and avhd..
ok but avhd files are the differencing disks so your snapshots.. you dont need to recovery them, i mean you have them.
But i am missing a fundamental parameter here.. what os are you using ??!!?
-
Monday, December 17, 2012 12:03 PM
How ever is suppose your virtual machine is gone.. well not a problem at all..
ok so, merge your snapshots to the vhd, then just create a new vm with the vhd and snapshots merged.
beware that you must merge your snapshots one by one, starting from the last if you have more.
so locate your most recent snapshot, rename it to .vhd from avhd, go in action,edit disk, start the procedure, choose the snapshot recently renamed then choose merge then choose the parent vhd.
when complete do the same for the rest of your snapshot but always in date order.
Regards
-
Monday, December 17, 2012 4:47 PMModerator
You must have a VMware background. I make that leap due to your first statement "we create snapshot manually for backup purpose"
ESX and Hyper-V utilize snapshots in a very different way. Hyper-V follows the Xen model of using differencing disks and snapshots can only be deleted using the management console. Any other method of deleting a snapshot will break your VM.
That said: Can you please elaborate on your statement "but while deleting snapshot"
How did you delete it? (using the manager, using WMI)
Where did you discover the error (in the VM in the Hyper-V server event logs, etc.)?
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will.- Marked As Answer by Lawrence LvMicrosoft Contingent Staff, Moderator Wednesday, December 26, 2012 6:24 AM

