From 9d3200bc4761cf4a3a43f36cc8d136672b13bd36 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Thu, 4 Apr 2024 12:57:14 +0900 Subject: [PATCH] build_library/qemu_template.sh: Add notes for swtpm init commands For the swtpm version in Ubuntu some init command is required first. --- build_library/qemu_template.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_library/qemu_template.sh b/build_library/qemu_template.sh index 3a7c631eb0..b7f9912e3e 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -30,7 +30,9 @@ Options: -I FILE Set a custom image file. -M MB Set VM memory in MBs. -T DIR Add a software TPM2 device through swtpm which stores secrets - and the control socket to the given directory. + and the control socket to the given directory. This may need + some configuration first with 'swtpm_setup --tpmstate DIR ...' + (see https://github.com/stefanberger/swtpm/wiki/Certificates-created-by-swtpm_setup). -R FILE Set up pflash ro content, e.g., for UEFI (with -W). -W FILE Set up pflash rw content, e.g., for UEFI (with -R). -s Safe settings: single simple cpu and no KVM.