Snapshot caused my VM to not load
Posted: 30. Aug 2013, 01:34
Greetings, I have used VirtualBox casually for the past year but have not delved into it much. It provides excellent virtual machines and control for the various environments I must run as a DBA and software developer.
Last night I got a little nervous and decided to take a snapshot of my main vm, a Windows XP machine I use to maintain an older software environment. I then intended to export it as well. There were no previous snapshots, and I intended to export the entire virtual machine as well - as another form of backup. I am running version 4.10 of VirtualBox on a Windows 7 Pro 64-bit laptop and the virtual machine was powered down cleanly before attempting this.
However, once I created the snapshot and tried to perform the export, I received the message "Parent UUID {00000000-0000-0000-0000-000000000000} of the medium 'C:\Users\Sam.Trexler\VirtualBox VMs\CT-EDBMS-XP\Snapshots/{6f6bed49-0fe6-4458-612-093ddfb81be4}.vhd' does not match UUID {05872920-d882-404a-a034-161792b554c7} of its parent medium stored in the media registry ('C:\Users\Sam.Trexler/.VirtualBox\VirtualBox.xml')." I also could not start the vm at that point, receiving the same error.
I copied all of the files in the "VirtualBox VMs" folder for this VM to my user directory for safekeeping, and also copied the VHD file from D:\VirtualBox for this VM to my directory.
A post on this forum suggested I delete the snapshot to merge the changes back into the original VHD. I tried that, but it failed with the same error message and wouldn't delete it.
I then tried to delete the VHD in Media Manager (it has a caution triangle next to it) and re-copy it, as suggested on another forum, but this is greyed out and I cannot delete it.
I then tried to remove the VM without deleting files, and then with deleting files, and re-install the VM. However, the forum with this suggestion was on a site where canned vms are provided, and I don't know of a way to "install" the vm again - their tool does not apply to my case. I tried "Adding" the virtual machine in the VirtualBox GUI, but it came back with the same problem.
Next I created a new VM with a different name and no VHD, and then tried to add the old VHD to this VM. However, this gives the error "Cannot register the hard disk 'D:\VirtualBox\CT-EDBMS\CT-EDBMS-XP.vhd' {05872920-d882-404a-a034-161792b554c7} because a hard disk 'D:\VirtualBox\CT-EDBMS-XP\CT-EDBMS-XP.vhd' with UUID {05872920-d882-404a-a034-161792b554c7} already exists."
I have done some more research on this forum, and understand that the all-zeroes UUID is the parent full VHD, not a snapshot. And I've learned how snapshots work and store the differences. So it seems that on loading the original VM it found a registry entry indicating the UUID of a snapshot, but the actual VHD is not a snapshot but a full VHD. Is that right?
So how do I get back to a runnable VM? I have the files from just after the snapshot was performed. (Foolish me, I didn't back them up before the snapshot - I thought I was backing them up!) And I now have a new VM without a VHD. What's the best way to get my machine running again?
Thanks for your help.
Last night I got a little nervous and decided to take a snapshot of my main vm, a Windows XP machine I use to maintain an older software environment. I then intended to export it as well. There were no previous snapshots, and I intended to export the entire virtual machine as well - as another form of backup. I am running version 4.10 of VirtualBox on a Windows 7 Pro 64-bit laptop and the virtual machine was powered down cleanly before attempting this.
However, once I created the snapshot and tried to perform the export, I received the message "Parent UUID {00000000-0000-0000-0000-000000000000} of the medium 'C:\Users\Sam.Trexler\VirtualBox VMs\CT-EDBMS-XP\Snapshots/{6f6bed49-0fe6-4458-612-093ddfb81be4}.vhd' does not match UUID {05872920-d882-404a-a034-161792b554c7} of its parent medium stored in the media registry ('C:\Users\Sam.Trexler/.VirtualBox\VirtualBox.xml')." I also could not start the vm at that point, receiving the same error.
I copied all of the files in the "VirtualBox VMs" folder for this VM to my user directory for safekeeping, and also copied the VHD file from D:\VirtualBox for this VM to my directory.
A post on this forum suggested I delete the snapshot to merge the changes back into the original VHD. I tried that, but it failed with the same error message and wouldn't delete it.
I then tried to delete the VHD in Media Manager (it has a caution triangle next to it) and re-copy it, as suggested on another forum, but this is greyed out and I cannot delete it.
I then tried to remove the VM without deleting files, and then with deleting files, and re-install the VM. However, the forum with this suggestion was on a site where canned vms are provided, and I don't know of a way to "install" the vm again - their tool does not apply to my case. I tried "Adding" the virtual machine in the VirtualBox GUI, but it came back with the same problem.
Next I created a new VM with a different name and no VHD, and then tried to add the old VHD to this VM. However, this gives the error "Cannot register the hard disk 'D:\VirtualBox\CT-EDBMS\CT-EDBMS-XP.vhd' {05872920-d882-404a-a034-161792b554c7} because a hard disk 'D:\VirtualBox\CT-EDBMS-XP\CT-EDBMS-XP.vhd' with UUID {05872920-d882-404a-a034-161792b554c7} already exists."
I have done some more research on this forum, and understand that the all-zeroes UUID is the parent full VHD, not a snapshot. And I've learned how snapshots work and store the differences. So it seems that on loading the original VM it found a registry entry indicating the UUID of a snapshot, but the actual VHD is not a snapshot but a full VHD. Is that right?
So how do I get back to a runnable VM? I have the files from just after the snapshot was performed. (Foolish me, I didn't back them up before the snapshot - I thought I was backing them up!) And I now have a new VM without a VHD. What's the best way to get my machine running again?
Thanks for your help.