Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow backing up running VMs by pausing or snapshotting to enable automatic nightly backups #1239

Open
qubesuser opened this issue Sep 24, 2015 · 3 comments
Labels
C: core P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: enhancement Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.

Comments

@qubesuser
Copy link

Currently the Qubes backup system cannot back up running VMs since copying a mounted block device would result in arbitrary corruption regardless of journaling.

This is a big shortcoming because it means that it's impossible to setup automatic nightly backup in a way that doesn't negatively affect the user by shutting down all VMs.

However, if the VM is paused, then the block device can be copied in a consistent way, and the state after restoring will be as if the VM had crashed at that moment, which assuming a journaling filesystem is usually an acceptable result.

Pausing is less disruptive than shutting down, but still problematic (kills network connections, pauses computation), so an usually better solution is to take a snapshot of the device and back up the snapshot, although this requires changes in the storage system to allow taking DM snapshots of anything (and potentially requires more storage than pausing).

@marmarek
Copy link
Member

marmarek commented Oct 5, 2015

I think this somehow overlaps with #858. Especially when considering creating a backup from inside of VM.

@marmarek marmarek added T: enhancement Type: enhancement. A new feature that does not yet exist or improvement of existing functionality. C: core labels Oct 5, 2015
@marmarek marmarek added this to the Far in the future milestone Oct 5, 2015
@andrewdavidwong
Copy link
Member

@iamahuman
Copy link

iamahuman commented Feb 6, 2021

For running VMs, we can just snapshot the entire domain state (especially if it has no devices attached). However freeze-to-disk feature appears to be "won't do"—see #832 (comment). Also compatibility issues.

@andrewdavidwong andrewdavidwong added the P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. label Feb 7, 2021
@andrewdavidwong andrewdavidwong removed this from the Release TBD milestone Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: core P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: enhancement Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.
Projects
None yet
Development

No branches or pull requests

4 participants