Create new VM from snapshot?

This is for discussing general topics about how to use VirtualBox.
Post Reply
nvivo
Posts: 57
Joined: 4. Aug 2007, 17:08

Create new VM from snapshot?

Post by nvivo »

Is there a clean way to create a new VM from a snapshot?

So far, what I did was a backup of the VM and VirtualBox settings, put somewhere else, then merge the machine to a single VDI, change the disk UUID, then copy the old VM back and restore VB settings. After that, I just register the new merged VDI and create a new VM for it. That is a lot of work...

Does anybody knows a simpler way to do that?

I would hope that there was an internal command to merge snapshot disks to a new file without considering the machine, so I could automate the process at least, but couldn't find anything like that.

Thanks.
nvivo
Posts: 57
Joined: 4. Aug 2007, 17:08

Re: Create new VM from snapshot?

Post by nvivo »

mpack just pointed out to me that "VBoxManage clonehd" can merge snapshots.
If you pass a snapshot vdi to it, the new disk will be a clone of the merged VDIs, and not of the VDI itself.

Maybe this could be added to the manual...

Thanks!
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Create new VM from snapshot?

Post by Technologov »

Rumors say it that this feature (in GUI) is in the roadmap.
Post Reply