Moved a virtual machine and its snapshot, now it won't start

Discussions related to using VirtualBox on Windows hosts.
Post Reply
quiettime
Posts: 32
Joined: 17. Jan 2013, 06:19

Moved a virtual machine and its snapshot, now it won't start

Post by quiettime »

Code: Select all

A differencing image of snapshot {281133f2-0718-4ce6-b21b-ab9c6fadcad9} could not be found. Could not find an open hard disk with UUID {057d61d7-ded1-4c65-b9da-05c0e8d44350}.
Result Code: 
E_FAIL (0x80004005)
Component: 
SnapshotMachine
Interface: 
IMachine {22781af3-1c96-4126-9edf-67a020e0e858}
Any idea how to resolve this? Here are the relevant parts of the xml file:

Code: Select all

<Machine uuid="{e41030e4-da42-4d44-b8c3-e00772cccc13}" name="XP VirtualBox" OSType="WindowsXP" currentSnapshot="{281133f2-0718-4ce6-b21b-ab9c6fadcad9}" snapshotFolder="C:/Virtual Machines (VirtualBox)/XP VirtualBox/snapshots" lastStateChange="2013-01-18T03:10:07Z">

Code: Select all

<Snapshot uuid="{281133f2-0718-4ce6-b21b-ab9c6fadcad9}" name="Snapshot 1" timeStamp="2013-01-05T22:48:59Z" stateFile="C:/Virtual Machines (VirtualBox)/XP VirtualBox/snapshots/2013-01-05T22-48-59-182184600Z.sav">
I moved the VM directory and the snapshot directory. I updated the XML to reflect the new snapshot directory. The file exists so what's happening? Thanks
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Moved a virtual machine and its snapshot, now it won't s

Post by noteirak »

quiettime wrote:I updated the XML to reflect the new snapshot directory
Direct edition of any XML or VBOX files are not supported, and precisly for this reason - you can just break it all.

Could you give us a bit more information about your system and your virtualbox installation and version?
From which system/version to which system/version?

Also be aware that 3.x VM format are not compatible with 4.x format, some converting is required.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Moved a virtual machine and its snapshot, now it won't s

Post by mpack »

We could probably to and fro about this a lot, but probably the simplest solution is: put the base VDI plus all snapshot VDIs (all files from the Snapshots subfolder) into a single folder, then clone the latest snapshot vdi (do NOT clone the base vdi) using the CloneVDI tool. Create a new VM around the cloned VDI (which is now a stand alone merge of the old vdis), trying to get the VM recipe as close as possible to the old one. Avoid snapshots in future.
quiettime
Posts: 32
Joined: 17. Jan 2013, 06:19

Re: Moved a virtual machine and its snapshot, now it won't s

Post by quiettime »

mpack wrote:Create a new VM around the cloned VDI (which is now a stand alone merge of the old vdis), trying to get the VM recipe as close as possible to the old one. Avoid snapshots in future.
Thanks so much for creating that tool and releasing it. I used it to make a clone of the latest snapshot and then I created a new virtual machine and assigned the hard disk to that virtual machine. Works fine so far. I don't want to avoid snapshots in the future though I love them. Any idea why I had the problem I reported? Thanks again.

My host is Windows 7 x64 and I'm using VirtualBox 4.2.6 r82870. That version is what I used to create the VM that went bad. No other change or upgrade in VirtualBox from the time I created it to the time I moved it.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Moved a virtual machine and its snapshot, now it won't s

Post by mpack »

quiettime wrote:Any idea why I had the problem I reported?
You ran into problems because you used snapshots, and - to be brutally blunt - don't have the expertise to move them around safely. But it doesn't really matter what the exact cause was - everyone who uses snapshots will hit some problem eventually, that's simply the nature of the beast. The structure is fragile, too easily damaged, and the damage is always serious. Had CloneVDI not existed your data would be gone now. But, if you still think the risk is worth it then that's your choice.
quiettime
Posts: 32
Joined: 17. Jan 2013, 06:19

Re: Moved a virtual machine and its snapshot, now it won't s

Post by quiettime »

mpack wrote:
quiettime wrote:Any idea why I had the problem I reported?
You ran into problems because you used snapshots, and - to be brutally blunt - don't have the expertise to move them around safely. But it doesn't really matter what the exact cause was - everyone who uses snapshots will hit some problem eventually, that's simply the nature of the beast. The structure is fragile, too easily damaged, and the damage is always serious. Had CloneVDI not existed your data would be gone now. But, if you still think the risk is worth it then that's your choice.
I appreciate your honesty. Thanks again
Post Reply