Clone Virtual Machine

This is for discussing general topics about how to use VirtualBox.
Post Reply
clyfton
Posts: 9
Joined: 11. Apr 2011, 19:46
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora

Clone Virtual Machine

Post by clyfton »

I have been researching a way to clone a virtualbox. What I have found on the Internet is dated. I was also unable to find anything recent or relevant searching the forum. I also notice a vm copying with snapshots topic on the front page. I still can't seem to find what I'm looking for.

I would like to use VM and Fedora as test platforms and as such they will become corrupt over time. I would like to go through all the steps once to get a good test environment, preserve the original and just use disposable clones in testing. I have tried various methods, to include import/export and VBoxManage_clonehd as mentioned in the user guide. I'm just not able to get it to work. Please advise.
Etepetete
Posts: 400
Joined: 7. Oct 2009, 10:19
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Slackware 14.2
Location: Berlin

Re: Clone Virtual Machine

Post by Etepetete »

Take a look at this to clone your VDI. If you are using the newest version, then make a copy of your VM folders and a copy of your VirtualBox.xml after creating your initial copies. Then when the VMs become corrupt, you can just copy the backups of the VM folders over the corrupted ones. If the whole setup gets hosed, overwrite the VirtualBox.xml with the backup and replace all VM folders with their backups and you should be able to continue as of day one, when you created your initial setup.
clyfton
Posts: 9
Joined: 11. Apr 2011, 19:46
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora

Re: Clone Virtual Machine

Post by clyfton »

Thanks ... I'll give it a try :)
NeBlackCat
Posts: 154
Joined: 3. Aug 2008, 13:37

Re: Clone Virtual Machine

Post by NeBlackCat »

Other possibilities:

1) Use snapshots (or immutable disks) and simply delete the difference when done, and then start again.

2) there are good tools around to let you define your Linux configuration once, and then have it automatically rebuilt from the install media with a single button push. That lets you always work from the current releases of your chosen distros, which may or may not be what you want. I can't remember the names of any (one was covered on a FLOSS podcast a few months ago), but a quick Google should reveal more.
clyfton
Posts: 9
Joined: 11. Apr 2011, 19:46
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Fedora

Re: Clone Virtual Machine

Post by clyfton »

Ok, thanks :)

1) I took my first snapshot and I'll see how that works out.

2) I don't really have enough information to search google for the "single button push" solution you mentioned.

Cliff
NeBlackCat
Posts: 154
Joined: 3. Aug 2008, 13:37

Re: Clone Virtual Machine

Post by NeBlackCat »

I'll dig through my records and see if I can find the name of the project.
OrdinaryAverageGuy
Posts: 19
Joined: 18. Jun 2009, 18:43
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7 & XP, Ubuntu, Netbook OSs

Re: Clone Virtual Machine

Post by OrdinaryAverageGuy »

I keep waiting for this feature to be integrated into the GUI. For some reason they like to limit the simple everyday features to vboxmanage only.
Post Reply