[Solved]VDI with snapshots - corrupted images and/or xml cfg
Posted: 5. Jul 2013, 14:47
Hello,
Something bad happened to my virtual machine and/or image files. I've tried some workarounds with deleting xml files, removing virtual machine without vdi files. Nothing worked for me.
I have main VDI file called Win2008.vdi, two snapshot files (with .vdi extension) and one .sav file in Snapshots directory.
VBoxManage showhdinfo IMAGE_FILE shows correct parents for both snapshot files, so one points to the other, and that one points to UUID of Win2008.vdi.
1) If i create new vm configuration and point virtual disk to Win2008.vdi file, vm starts and creates automatically new snapshot file, but this is useless because all new data is in snapshot files which are not visible by vm.
2) When I get back to position when vm stopped working I'm stuck with:
Now if I correct xml file by removing line 307: <GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="^D^C" timestamp="1356141796637834000" flags=""/> I get:
However in Snapshots directory I've got files:
{2c946997-8a0f-4508-948e-240ecc9d182c}.vdi
{90430448-9476-4531-a1b5-da091cd1a1db}.sav
{c6c9a53e-1f3e-4a69-a60b-8c3dd940d492}.vdi
I think that vdi files have good parent information and problem is related to some configuration options. I have no idea how to check anything about .sav file.
Thanks in advance for any clues.
Something bad happened to my virtual machine and/or image files. I've tried some workarounds with deleting xml files, removing virtual machine without vdi files. Nothing worked for me.
I have main VDI file called Win2008.vdi, two snapshot files (with .vdi extension) and one .sav file in Snapshots directory.
VBoxManage showhdinfo IMAGE_FILE shows correct parents for both snapshot files, so one points to the other, and that one points to UUID of Win2008.vdi.
1) If i create new vm configuration and point virtual disk to Win2008.vdi file, vm starts and creates automatically new snapshot file, but this is useless because all new data is in snapshot files which are not visible by vm.
2) When I get back to position when vm stopped working I'm stuck with:
Code: Select all
$ VBoxManage showvminfo {051294a6-3d43-4c70-8a06-113607133e1c}
Name: <inaccessible!>
UUID: 051294a6-3d43-4c70-8a06-113607133e1c
Config file: /home/admin/VirtualBox VMs/Win2008 - OK/Win2008 - OK.vbox
Access error details:
VBoxManage: error: PCDATA invalid Char value 3.
VBoxManage: error: Location: '/home/admin/VirtualBox VMs/Win2008 - OK/Win2008 - OK.vbox', line 307 (3), column 42.
VBoxManage: error: /build/src/VirtualBox-4.1.2_OSE/src/VBox/Main/src-server/MachineImpl.cpp[685] (nsresult Machine::registeredInit())
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component VirtualBox, interface IVirtualBox, callee Code: Select all
$ VBoxManage showvminfo {051294a6-3d43-4c70-8a06-113607133e1c}
Name: <inaccessible!>
UUID: 051294a6-3d43-4c70-8a06-113607133e1c
Config file: /home/admin/VirtualBox VMs/Win2008 - OK/Win2008 - OK.vbox
Access error details:
VBoxManage: error: A differencing image of snapshot {90430448-9476-4531-a1b5-da091cd1a1db} could not be found. Could not find an open hard disk with UUID {8a271433-7c95-4eb8-b1ab-8ec961c3a2ac}
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SnapshotMachine, interface IMachine, callee {2c946997-8a0f-4508-948e-240ecc9d182c}.vdi
{90430448-9476-4531-a1b5-da091cd1a1db}.sav
{c6c9a53e-1f3e-4a69-a60b-8c3dd940d492}.vdi
Code: Select all
$ VBoxManage showhdinfo \{2c946997-8a0f-4508-948e-240ecc9d182c\}.vdi
VBoxManage: error: Parent medium with UUID {c6c9a53e-1f3e-4a69-a60b-8c3dd940d492} of the medium '/home/admin/VirtualBox VMs/Win2008 - OK/Snapshots/{2c946997-8a0f-4508-948e-240ecc9d182c}.vdi' is not found in the media registry ('/home/admin/.VirtualBox/VirtualBox.xml')
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Medium, interface IMedium, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp
$ VBoxManage showhdinfo \{c6c9a53e-1f3e-4a69-a60b-8c3dd940d492\}.vdi
VBoxManage: error: Parent medium with UUID {8a271433-7c95-4eb8-b1ab-8ec961c3a2ac} of the medium '/home/admin/VirtualBox VMs/Win2008 - OK/Snapshots/{c6c9a53e-1f3e-4a69-a60b-8c3dd940d492}.vdi' is not found in the media registry ('/home/admin/.VirtualBox/VirtualBox.xml')
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Medium, interface IMedium, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp
$ VBoxManage showhdinfo Win2008.vdi
UUID: 8a271433-7c95-4eb8-b1ab-8ec961c3a2ac
Accessible: yes
Logical size: 133120 MBytes
Current size on disk: 6872 MBytes
Type: normal (base)
Storage format: VDI
Format variant: dynamic default
Location: /home/admin/VirtualBox VMs/Win2008 - OK/Win2008.vdi
Thanks in advance for any clues.