Hello all:
Here's the situation: I had a VM with 2 snapshots. Its state was shut down and saved. I was discarding a snapshot when the server lost power (it was on UPS, but this was a tantamount to someone having kicked the plug).
When I rebooted the host and started the vm, the system came back, unaltered and unharmed, however, the GUI console reports the machine as still shut down, and also reports the existence of a saved state (not really possible since its running).
I see inconsistencies in the two XML files which I believe I could repair. For instance, there is reference to a .sav file which appears not to be associated anymore with the running machine, save for its reference in the XML.
Question: if I correct the inconsistencies in the 2 XML files and verify that the LINK fields in each .vdi correctly link back all the way to the original .vdi, is there anything else I need to pay attention to in trying to put things square?
Here are my worries:
In the XML, I notice that there is a reference to stateFile which obviously isn't in use, considering the VM is running.
In the latest VDI (the one that is updating) I notice that "last snap" points to a non-existent UUID
In this same VDI I notice that the "parent" points to a non-existent UUID
I can remove the stateFile reference, but what about the "last snap" reference and "parent" references which point to non-existent UUID's?
Thanks and regards
Dave
help needed:repairing xml after a crash
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: help needed:repairing xml after a crash
Look in the VDI folder and see if you have a valid VDI file that you can use. If so try to create a new VM and attach that VDI and see if it has all of your work.
This will not recover you snapshots but if it is the final product then you are not at a total loss.
This will not recover you snapshots but if it is the final product then you are not at a total loss.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: help needed:repairing xml after a crash
If you create a new VM, even if you don't attach a VDI to it, you can compare it to the broken XML file and fix the one you need. Or transfer some settings from the broken one to the working one, like your snapshots.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.