Move VM and snapshots

This is for discussing general topics about how to use VirtualBox.
Post Reply
domian12
Posts: 3
Joined: 16. Feb 2012, 10:53

Move VM and snapshots

Post by domian12 »

Hi all.

I'm using VirtualBox 4.1.8 on Win 7.
I have:
virt_win7x64.vdi - originally created by the VM image
Folder «Snapshots» with files of type {1d1e457d-39e5-4433-afe4-34ff574cc65c}. vdi
and nothing more.
On another computer, I plugged virt_win7x64.vdi, VM is running.
The problem: I can not connect my snapshots to VM images as they were originally.

I do this? Please help me.
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: Move VM and snapshots

Post by mpack »

You need to copy the entire VM folder, not just the base VDI denuded of all its snapshots.

Incidentally, the base VDI you already copied will now be ruined by using it in the wrong VM. Make sure that when you copy the VM folder you copy the base VDI file again.

On the new host, run the manager and use the Machine|Add... menu item to add the .vbox file to the VM register on that PC.
domian12
Posts: 3
Joined: 16. Feb 2012, 10:53

Re: Move VM and snapshots

Post by domian12 »

So, can I not restore my snapshot to VM image? The have: {1d1e457d-39e5-4433-afe4-34ff574cc65c}.vdi, {750a0e87-c76a-487a-8668-b99fd58b4c66}.vdi and ther.

Now I have not *.vbox files.
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: Move VM and snapshots

Post by mpack »

Of course you can merge snapshots in the normal way, ie. by deleting them in the GUI. You can do that on the source PC, or on the destination PC after moving the VM as I instructed above.

Is there some reason why you want to avoid doing this the obvious and simplest way?
domian12
Posts: 3
Joined: 16. Feb 2012, 10:53

Re: Move VM and snapshots

Post by domian12 »

Of course.
I only got the VM image and snapshots images.
I would like to make things right. But it is not possible.

Thank you. In the future I'll know.
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: Move VM and snapshots

Post by mpack »

Well, one thing you can try is the CloneVDI tool (see sticky in "Windows Hosts" forum). If you do not use a Windows host then you would need to run it under Wine (on Linux and Mac hosts). You would put all of the image fragments in one folder, then use CloneVDI to clone the latest difference file (the file with name like {1234.abcd.etc}.vdi). That should produce a merged VDI which you can build a new VM around.
Post Reply