Repository navigation
Conversation
own helper. Signed-off-by: Peter Siegel <psiegel2000@icloud.com>
Author
|
Just for some more context on how this can be used for some e2e verified boot testing:
The idea is that this emulates how you might set up a bare-metal device where the installer and the booted system post-install see the same TPM. |
cgwalters
previously approved these changes
Oct 26, 2026
|
|
||
| /// Wait until the process `name` creates `socket_path`. Fails if | ||
| /// `process` exits first or `timeout` passes. | ||
| async fn wait_for_socket( |
Collaborator
There was a problem hiding this comment.
For virtiofsd at least we should have always been using --fd to avoid any polling at all.
Something to improve in a followup
|
|
||
| Mount disk file as virtio-blk device at /dev/disk/by-id/virtio-<name> | ||
|
|
||
| **--tpm** |
Collaborator
There was a problem hiding this comment.
While this is the conservative default, I would argue to turn this on by default on supported architectures in the future
Author
There was a problem hiding this comment.
Yeah it'll depend on swtpm being installed on the host but that should be easy to check.
--tpm attaches a TPM 2.0 emulated by swtpm, whose state is discarded with the container. Signed-off-by: Peter Siegel <psiegel2000@icloud.com> Assisted-by: AI
yeetypete
force-pushed
the
feat/ephemeral-tpm-state
branch
from
October 27, 2026 01:18
5272a71 to
da1f2ad
Compare
This branch has not been deployed
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.
Allow adding a TPM 2.0 to ephemeral bcvk VMs, emulated by swtpm:
--tpmattaches an ephemeral TPM. Its state is discarded with the container.swtpm runs inside the container from the host's
/usr, just like virtiofsd. QEMU attaches it as atpm-tisdevice (tpm-tis-deviceon aarch64). This is the same tpm modelbcvk libvirt runuses.Added
test_run_ephemeral_tpmwhich checks if the emulated TPM shows up under/dev/tpmrm0.Assisted-by: AI