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

Working plan to have better qubesos btrfs settings from install #211

Closed
tlaurion opened this issue Jul 4, 2024 · 4 comments
Closed

Working plan to have better qubesos btrfs settings from install #211

tlaurion opened this issue Jul 4, 2024 · 4 comments

Comments

@tlaurion
Copy link
Contributor

tlaurion commented Jul 4, 2024

Mounted btrfs from tails without specifying mount options got laptop work all night fixing btrfs partition and still undone when waking up this morning.

Will edit post with current applied overrides, but from my understanding, for btrfs to be usable under qubesos in combination of wyng and beesd, a couple of things would need to be done at I stalker level to reduce friction since wyng cannot be used directly on top of fresh install

  • /var/lib/qubes needs to be subvolume of rootfs, cannot be seperated btrfs volume otherwise wyng fails doing snapshot of whole varlibqubes subvol (needs to be /var/lib/tmp something something). Wyng script not sufficient.

  • btrfs settings at fs creation needs tweaking.

  • fstab needs tweaking

  • QubesOS main volume revert policy needs to be set to 0, monitor needs to be authentication-less to be scheduled as cron job

  • luks base container needs to be tweaked for 4k

  • data/Metadata needs to be set at single to be compatible with beesd

  • btrfs compression needs to be set to off

  • from personal experience, not having bees run right after fs creation time takes forever to dedup qubes disk images, even in scan mode 3.

... Plus some other things that are probably slipping from my mind. Of course, bees is out of scope now, but testing btrfs+wyng+bees is way too time consuming and risky without setting default install with proper defaults today.

Qos 4.2.2rc1 being out, I think it's time to define proper btrfs requirements for fs creation time options.

Related Zygo/bees#283

@tasket
Copy link
Owner

tasket commented Sep 20, 2024

I would like to expand on this in the near future because I think Btrfs parameters can help performance on systems with very large volumes. However, maybe want to de-emphasize the install-time aspect, as Qubes can be very nicely configured with Btrfs after install pretty much any time the user desires as long as they have the free space to add a Btrfs volume.

So the critical install-time instruction should begin with "leave most of your space free if you want to setup your VMs on Btrfs from the comfort of your regular dom0 shell" or something to that effect.

@tasket
Copy link
Owner

tasket commented Sep 20, 2024

We might want to try writing a Btrfs setup script which creates its own LUKS container (instruct the user to enter the same pw as for the root system, if they want it to come online immediately) in addition to desired Btrfs formatting options.

@tlaurion
Copy link
Contributor Author

tlaurion commented Oct 3, 2024

Ideal here would definitely be to have quebesos 4.3 do the right thing at install. Otherwise geek only once again.

  • detect ssd/nvme usage and tweak fstab and block device accordingly (@fepitre we talked about this at qubesos summit)
    • make sure btrfs has DUP only for system, not Metadata nor data
  • if wyng is used, have wyng deactivate snapshots to keep (qvm-volume restore cancelation otherwise io disaster)
  • others?

@tlaurion
Copy link
Contributor Author

tlaurion commented Oct 3, 2024

Maybe this discussion should be merged to QubesOS/qubes-issues#6476

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

No branches or pull requests

2 participants