Skip to content

Commit 7779121

Browse files
committed
libvirt: Enable a software TPM by default
To test out e.g. the bootc `tpm2-luks` backend; also this is just a general best practice. Signed-off-by: Colin Walters <[email protected]>
1 parent 183dc3c commit 7779121

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/vm/domain-template.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
<target bus="virtio" dev="vda"></target>
2626
<transient/>
2727
</disk>
28+
<tpm model='tpm-tis'>
29+
<backend type='emulator' version='2.0'>
30+
<active_pcr_banks>
31+
<sha256/>
32+
</active_pcr_banks>
33+
</backend>
34+
</tpm>
2835
{{.CloudInitCDRom}}
2936
</devices>
3037
<qemu:commandline>

0 commit comments

Comments
 (0)