Replies: 2 comments
-
Looks like the libvirt vm xml format changed, it work without secret and using a storage directory: <tpm model="tpm-tis">
<backend type="emulator" version="2.0" debug="5" persistent_state="yes">
<source type="dir" path="/var/lib/libvirt/swtpm/{{ hostvars[item].uuid }}/tpm2" />
</backend>
</tpm> |
Beta Was this translation helpful? Give feedback.
0 replies
-
I suppose you are on Fedora >= 40? There's a missing SELinux rule that prevents swtpm from reading the secret/password from a pipe that libvirt uses to pass the password. I filed this issue here: #964 The XML markup has not changed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cannot start VMs with a preset TPM in libvirt anymore.
The log file mentions the following error:
Profile could not be applied to an existing TPM 2 instance
. AFAIK, I did recreate the VM and secrets from scratch.The VM TPM device is defined like so:
The TPM secret was defined like so:
And the preset value was set with:
echo "blabla" | base64 | virsh -c qemu:///system secret-set-value {{ hostvars[item].tpm_secret }} --file /dev/stdin
The log from starting the VM:
Beta Was this translation helpful? Give feedback.
All reactions