Merged
Conversation
Collaborator
|
Perfectly timed 🙂 nice one! |
|
Tested on Darter Pro (new installation)
|
Clear a potentially existing persistent handle before creating the new one. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
Restart storagevm-enroll service in case it fails, which can currently happen due to TPM communication failures. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
Fix per-vm machine-id generation with preservation, order tmpfiles to assert /etc is mounted and machine-id file created before etc processing to avoid runtime ordering conflicts where the file is not yet created. Disable homed's builtin firstboot setup by disabling the service. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
Change home fs to ext4 for better recovery and failure handling. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
Switch storage backend to volume instead of shared folders. This unifies encrypted and unencrypted storage options, and removes host dependencies for setting up virtiofs shares. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
1284733 to
2b3dd91
Compare
Collaborator
Author
|
rebased |
Join storagevm location to work for both encrypted and unencrypted case, and cleanup host dependencies. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
Remove file lock for user creation script, add change user setup start condition to checking an identity file being present. Users can be removed within the gui-vm (by root/admin) via homectl remove <user>. On next boot, the user setup is being triggered automatically. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
Change default sizes for persistent storage across guests. With the switch to images for guest storage, the size handling becomes more important. Previously, shares were using disk space transparently. The images have a max disk size, which can be over-committed as the host increases image size on demand. To make disk space handling generic, either a hardware definition or a dynamic size definition during image creation (e.g. using percentages) needs to be introduced. Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
2b3dd91 to
8a577ee
Compare
brianmcgillion
approved these changes
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
This PR unifies the storage backend for encrypted/unencrypted storage and removes guest machine-id generation
from the host.
Storage Backend:
Note: as before, there is no error handling when running out of host disk space
Side effect should be also faster disk I/O, quick measurement showed small improvements for random and 3x for sequential I/O. Additionally there should be less host overhead (no virtiofsd, permissions mapping, etc.). Virtiofs shares could potentially be made faster with DAX, but that won't work with memory blinding.
User Management:
homectl remove <user>Machine-id:
TPM setup:
Note: TPM should still be cleared before first boot!
IMPORTANT for automated testing
If automated user removal is used, please switch to homectl based removal as described below!
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify:
virtualization.storagevm-encryption.enable = true;inmvp-user-trial.nixor use-extras, don't forget to clear TPM before first boot, enc shares on system76 may not work (had no tpm clear and couldn't test last iteration)(a) install. start, and add user as before
(b) logout
(c) use other tty (local) or ssh to login to gui-vm with ghaf user
(d)
homectl(check user is present and inactive) -homectl remove <username>- homectl (user gone)(e) reboot and verify startup script runs (also cosmic setup will run again)