Cloning disk with snapshots

Discussions related to using VirtualBox on Windows hosts.
Post Reply
dosdos59
Posts: 1
Joined: 26. Jul 2009, 12:18
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu, Win XP, Win 7 trial

Cloning disk with snapshots

Post by dosdos59 »

My configuration is:
Virtual Box 3.0.2, Host Win XP Pro SP3, Guest Win XP Prp SP3.
I have a virtual machine with several snapshots. When I clone it (using vboxmanage clonehd) I get a vm in its native state, i.e. without any snapshots. But I want to clone the vm in its last state, i.e. the state of the last snapshot. It's possible? How?
Thaks a lot from a newbie.
Massimo
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cloning disk with snapshots

Post by Perryg »

As you found out snapshots are not included when cloning (yet). I say yet in the hopes that it will be one day.
The only way to get the whole package is to merge the snapshots and then clone.
Only problem with that is you loose the snapshots when you do this.
What I do to get what I want is install the os, and export it. Then I import it and use that one to build off of.
When I get it to a state I like I export that one and then import it and use it to build (fork) from. A lot more reliable and simply works!
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Cloning disk with snapshots

Post by vbox4me2 »

As a workaround you could copy everything somewhere save, revert all snapshots into one, copy resulting vdi and put your backup with snapshots back. (don't forget all the xml files)
Post Reply