Add full VM snapshot support #153
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Libvirt and the RBD backend support full snapshots; implement them.
It seems that libvirt does not suppor this for non-qcow2-backed systems at this time.
It would be possible though to simply implement this for all blockdevs attached to a VM to simplify that usecase, so we can do that instead.
I think this could be done in a crude way by doing:
virsh pause
on the VMvirsh unpause
on the VMIt should be quick enough to be impreceptable given that RBD snapshots are basically instantaneous to create.
The collection of disk snapshots could then be saved/referenced by a "vm snapshot" database that ensures they could be used.
The big question comes from tasks beyond making the snapshot, like restoring from a snapshot. This is not something that has been implemented yet in PVC so doing so for individual RBD snapshots would be the best first step.
This idea has been superseded by VM backups, which is more in line with the overall goals, and has now been implemented. Backup (including incremental backup) and restore is supported. This does require external storage of some kind, but provides a more robust option than simply snapshotting/rolling back snapshots.