I am trying to improve the installation process for liteqube, and I would like to include revert VM to previous state if something failed. What is the best way to preserve a volume snapshot from being auto deleted? qvm-volume does not provide a straight way.
The concept of “pinning” a volume revision has come up a couple of times, but no this is not currently implemented.
If you notice soon enough that something has failed, couldn’t you just revert to the previous revision or maybe the one before that? revisions_to_keep can be increased (for a whole pool*, or for an individual volume) to keep as many as you want before they are rotated out.
* Changing the setting on a pool does not apply to already existing VMs’ volumes.
1 Like