Merge snapshot on running machine? clonehd?
Posted: 3. Dec 2009, 01:20
I'm coming from a VMware esx/esxi background so bear with me - is there no way to merge snapshots back into machines that are running? I have VirtualBox currently running on a machine with no GUI so I use the CLI exclusively. VBoxManage snapshot has an option to merge the snapshots (--discard) but it always says the machine must be stopped to merge changes in with the original. Is this true? In other words, if I snapshot a virtual machine to put the hard drive file in a steady state, copy the drive file to a backup, I can't merge the snapshot back in without shutting the virtual machine down? That seems a bit odd.
The weirder part is that you can use the VBoxManage clonehd command to dupe the drive... while the virtual machine is active. This seems awfully dangerous as the drive is in a changing state as the clone is running. Or is the clonehd command actually freezing the state of the machine while the clone is running, then unfreezing after the operation is completed? I suppose if this was the case clonehd could be used for back up purposes, though the mandatory change of UUID is really annoying (as you'd have to work around that if the guest OS uses the UUID in any way).
And also, what is the --existing switch to the clonehd command used for? It's not documented anywhere. I'm assuming it has something to do with --remember since it's on the same line in the help.
The weirder part is that you can use the VBoxManage clonehd command to dupe the drive... while the virtual machine is active. This seems awfully dangerous as the drive is in a changing state as the clone is running. Or is the clonehd command actually freezing the state of the machine while the clone is running, then unfreezing after the operation is completed? I suppose if this was the case clonehd could be used for back up purposes, though the mandatory change of UUID is really annoying (as you'd have to work around that if the guest OS uses the UUID in any way).
And also, what is the --existing switch to the clonehd command used for? It's not documented anywhere. I'm assuming it has something to do with --remember since it's on the same line in the help.