Page 1 of 1
Backing up a VM
Posted: 22. Jan 2011, 18:36
by adrianh
Is it possible yet to backup a VM without loosing the snapshots? If so, what files do I need to save. Are they relative path or absolute path dependent?
All the information I've seen is that all snapshots must be merged to the backup, which kinda invalidates the reason for having them. I can see as an appliance that it would want to be merged, but not as a backup.
Thanks,
A
Re: Backing up a VM
Posted: 22. Jan 2011, 18:43
by Sasquatch
Since version 4.0, VMs are more 'portable'. If you create a backup of the VM folder, you have everything you need. The base VDI, snapshot, settings,everything. If you're concerned about paths, you can always check the settings file for it.
Re: Backing up a VM
Posted: 23. Jan 2011, 13:37
by abcuser
The only think you have to be careful in v4.0 is if you have migrated from v3.x, the folder structure is preserved and the Sasquatch advice will not help you!Read more in manual:
http://www.virtualbox.org/manual/ch10.html#id270886
I migrated from v3.2 to v4.0 in the following way:
1. deleted all snapshots to have single vdi file - copied this file to save location
2. created print-screen of VirtualBox virtual machine settings (to have a reference)
3. uninstalled VirtualBox v3.2 and deleted all files that were left over (in my case in Windows xp host: deleted folders c:\program files\Oracle\Virtualbox and c:\document and settings\[user]\.VirtualBox)
4. install VirtualBox v4.0
5. create new virtual machine - during creation I have selected existing disk and when dialog window on selecting existing disk image appeared - I have manually copied vdi file from step 1 to the c:\document and settings\[user]\VirtualBox VMs\[virual_machine_folder] and mark disk in dialog
6. set all other settings in virtual machine recorder as print-screen in step 2.
Now I have a vbox v4.0 folder layout and I can copy/paste c:\document and settings\[user]\VirtualBox VMs\[virual_machine_folder] to save location to make a full backup of whole virtual machine including snapshots.