Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Test for linux guest PASS:
swtpm-0.7.0-3.20211109gitb79fd91.el9_0.x86_64
libtpms-0.9.1-0.20211126git1ff6fe1f43.el9.x86_64
libvirt-8.0.0-8.4.el9_0.x86_64
qemu-kvm-6.2.0-11.el9_0.6.x86_64
# virsh dumpxml avocado-vt-vm1 |grep /tpm -B7
<tpm model='tpm-crb'>
<backend type='emulator' version='2.0'>
<encryption secret='679e1051-ce72-4756-9ad6-ce2c51240f29'/>
<active_pcr_banks>
<sha256/>
</active_pcr_banks>
</backend>
</tpm>
# virsh start avocado-vt-vm1
Domain 'avocado-vt-vm1' started
# cat /var/log/swtpm/libvirt/qemu/avocado-vt-vm1-swtpm.log
The TPM's state will be encrypted using a key derived from a passphrase (fd).
Starting vTPM reconfiguration as tss:tss @ Tue 03 Jan 2023 05:12:28 AM EST
Warning: Disabled OpenSSL FIPS mode
Successfully activated PCR banks sha256 among sha1,sha256,sha384,sha512.
Successfully authored TPM state.
Ending vTPM manufacturing @ Tue 03 Jan 2023 05:12:28 AM EST
Warning: Disabled OpenSSL FIPS mode
# virsh console avocado-vt-vm1
Connected to domain 'avocado-vt-vm1'
Escape character is ^] (Ctrl + ])
localhost login: root
Password:
Last login: Tue Jan 3 17:42:25 on ttyS0
[root@localhost ~]# ls /dev|grep tpm
tpm0
tpmrm0
[root@localhost ~]# # tpm2_getrandom --hex 16
[root@localhost ~]# tpm2_getrandom --hex 16
4e52842d1bf59aacb378a845d23ade2e
Verified on rhel 9.0.0 with windows guest:
kernel: 5.14.0-70.36.1.el9_0.x86_64
qemu-kvm: qemu-kvm-6.2.0-11.el9_0.6.x86_64
libtpms-0.9.1-0.20211126git1ff6fe1f43.el9.x86_64
swtpm-libs-0.7.0-3.20211109gitb79fd91.el9_0.x86_64
swtpm-0.7.0-3.20211109gitb79fd91.el9_0.x86_6
# fips-mode-setup --check
FIPS mode is enabled.
Win11 guest installed successfully
Get message in swtpm log file:
Warning: Disabled OpenSSL FIPS mode
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (swtpm bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:0516
Test for linux guest PASS: swtpm-0.7.0-3.20211109gitb79fd91.el9_0.x86_64 libtpms-0.9.1-0.20211126git1ff6fe1f43.el9.x86_64 libvirt-8.0.0-8.4.el9_0.x86_64 qemu-kvm-6.2.0-11.el9_0.6.x86_64 # virsh dumpxml avocado-vt-vm1 |grep /tpm -B7 <tpm model='tpm-crb'> <backend type='emulator' version='2.0'> <encryption secret='679e1051-ce72-4756-9ad6-ce2c51240f29'/> <active_pcr_banks> <sha256/> </active_pcr_banks> </backend> </tpm> # virsh start avocado-vt-vm1 Domain 'avocado-vt-vm1' started # cat /var/log/swtpm/libvirt/qemu/avocado-vt-vm1-swtpm.log The TPM's state will be encrypted using a key derived from a passphrase (fd). Starting vTPM reconfiguration as tss:tss @ Tue 03 Jan 2023 05:12:28 AM EST Warning: Disabled OpenSSL FIPS mode Successfully activated PCR banks sha256 among sha1,sha256,sha384,sha512. Successfully authored TPM state. Ending vTPM manufacturing @ Tue 03 Jan 2023 05:12:28 AM EST Warning: Disabled OpenSSL FIPS mode # virsh console avocado-vt-vm1 Connected to domain 'avocado-vt-vm1' Escape character is ^] (Ctrl + ]) localhost login: root Password: Last login: Tue Jan 3 17:42:25 on ttyS0 [root@localhost ~]# ls /dev|grep tpm tpm0 tpmrm0 [root@localhost ~]# # tpm2_getrandom --hex 16 [root@localhost ~]# tpm2_getrandom --hex 16 4e52842d1bf59aacb378a845d23ade2e