Skip to content

Commit 13cc785

Browse files
committed
enable tpm simulation for virtual machines
This commit: - Appends the libvirt VM definition xml templates to include tpm simulation. This commit is needed to enable the testing of use-cases where tpm features e.g. disk encryption, remote secure boot attestation, random hash generation, measured boot etc are used. Signed-off-by: Adam Rozman <[email protected]>
1 parent 5df097e commit 13cc785

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm-setup/roles/libvirt/templates/baremetalvm.xml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
<on_reboot>restart</on_reboot>
4545
<on_crash>restart</on_crash>
4646
<devices>
47+
<tpm model="tpm-tis">
48+
<backend type="emulator" version="2.0"/>
49+
</tpm>
4750
<disk type="file" device="cdrom">
4851
<target dev='{{ libvirt_cdromdev }}' bus='{{ libvirt_cdrombus }}'/>
4952
<readonly/>

0 commit comments

Comments
 (0)