Backup VMs with Shared Disk

This is for discussing general topics about how to use VirtualBox.
Post Reply
tsangsir
Posts: 2
Joined: 21. Feb 2012, 18:21
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: RHEL, CentOS, Win7

Backup VMs with Shared Disk

Post by tsangsir »

Host OS: CentOS 5.5
Guest: RHEL 5.6
VirtualBox: 4.2.4

I have 2 VM's connecting the same shared disks in a toy cluster setup. I want to make a backup of the current system (both VM's and all the shared disks), so that I can test patching and changing the cluster configuration. The system will be shutdown during backup.

I prefer to make a copy of all the all VirtualBox VM's and configuration files to restore when necessary. Is this supported? Are "VirtualBox VMs" and ".VirtualBox" directories sufficient?

Both Cloning and Export Appliance are not shared disk aware, such that the shared disk were copied for each VM. Will detach the shared disk from one VM and attach the other's fix the problem?

I didn't try Snapshot but this seems even less likely to work.

Any suggestion?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Backup VMs with Shared Disk

Post by Perryg »

The easiest and preferred way to backup a guest/s is to backup the entire folder that houses the guest/s. All configuration, log, Etc files are stored there (within VirtualBox VMs). Or the entire VirtualBox VMs folder which is where everything is stored by default. The only other file is the VirtualBox.xml file but this file can be replaced and the guest/s added back using the add feature should you need to recreate it.
tsangsir
Posts: 2
Joined: 21. Feb 2012, 18:21
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: RHEL, CentOS, Win7

Re: Backup VMs with Shared Disk

Post by tsangsir »

Thanks for confirming this works! :D This is actually my preferred way.
Post Reply