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

Using snapshot enabled filesystem to create clones and AppVMs from templates (ZFS, btrfs) #1699

Closed
stumbaumr opened this Issue Jan 27, 2016 · 7 comments

Comments

Projects
None yet
7 participants
@stumbaumr

Hi,
just started out on using QubesOS. Trying to extensively using templates and cloned templates and basing AppVMs on them (Windows and Linux).
From my experience at my workplace (using Diskless root NFS servers booting from ZFS snapshots) I would like to propose following improvements:

  • Use ZFS for the file system
  • On template shutdown create automatically a snapshot (using a volume per template)
  • Use snapshot clone to create new templates
  • Use snapshot to start AppVM from template

Benefits

  • Rollback to a working template is very easy, just use the previous working snapshot
  • Saving space and cloning in the blink of an eye
  • Snapshots are per definition readonly
  • and all the other benefits of ZFS
@indolering

This comment has been minimized.

Show comment
Hide comment
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jun 28, 2016

Member

We plan to have something very similar in Qubes 4.0, done with LVM thin snapshots.

Member

marmarek commented Jun 28, 2016

We plan to have something very similar in Qubes 4.0, done with LVM thin snapshots.

@liilac

This comment has been minimized.

Show comment
Hide comment
@liilac

liilac Jul 4, 2016

btrfs would probably be a better candidate than ZFS, if this were to be done with the FS rather than LVM

liilac commented Jul 4, 2016

btrfs would probably be a better candidate than ZFS, if this were to be done with the FS rather than LVM

@rustybird

This comment has been minimized.

Show comment
Hide comment
@rustybird

rustybird Jul 5, 2016

@stumbaumr:

If you use the btrfs installation layout, clones are already done instantly using reflink copies.

There are some additional btrfs specific improvements that would be pretty easy, e.g. allowing running VMs to be cloned or backed up.

@marmarek:

We plan to have something very similar in Qubes 4.0, done with LVM thin snapshots.

Interesting. Is LVM going to become the preferred or even mandatory layout?

@stumbaumr:

If you use the btrfs installation layout, clones are already done instantly using reflink copies.

There are some additional btrfs specific improvements that would be pretty easy, e.g. allowing running VMs to be cloned or backed up.

@marmarek:

We plan to have something very similar in Qubes 4.0, done with LVM thin snapshots.

Interesting. Is LVM going to become the preferred or even mandatory layout?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 5, 2016

Member

On Tue, Jul 05, 2016 at 06:43:05AM -0700, Rusty Bird wrote:

We plan to have something very similar in Qubes 4.0, done with LVM thin snapshots.

Interesting. Is LVM going to become the preferred or even mandatory layout?

Yes.

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Member

marmarek commented Jul 5, 2016

On Tue, Jul 05, 2016 at 06:43:05AM -0700, Rusty Bird wrote:

We plan to have something very similar in Qubes 4.0, done with LVM thin snapshots.

Interesting. Is LVM going to become the preferred or even mandatory layout?

Yes.

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

@kalkin

This comment has been minimized.

Show comment
Hide comment
@kalkin

kalkin Aug 1, 2016

Member

@andrewdavidwong I think we can close this, because we already have a snapshot enabled filesystem for VMs now.

Member

kalkin commented Aug 1, 2016

@andrewdavidwong I think we can close this, because we already have a snapshot enabled filesystem for VMs now.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Aug 1, 2016

Member

Great, thanks!

Member

andrewdavidwong commented Aug 1, 2016

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment