-
Bug
-
Resolution: Cannot Reproduce
-
Undefined
-
None
-
rhel-9.4
-
None
-
None
-
None
-
1
-
rhel-bootloader
-
ssg_display
-
2
-
False
-
False
-
-
None
-
Red Hat Enterprise Linux
-
Bootloader Sprint 2025.3
-
None
-
None
-
-
Unspecified
-
None
What were you trying to do that didn't work?
grub errors out on boot with a TPM error: error: ../../grub-core/commands/efi/tpm.c:150:unknown TPM error. But it can boot up after wait 30s.
Please provide the package NVR for which bug is seen:
kernel-5.14.0-387.el9.x86_64
qemu-kvm-8.1.0-4.el9.x86_64
edk2-ovmf-20230524-4.el9_3.noarch
grub2-efi-x64-2.06-70.el9_3.1.x86_64
swtpm-0.8.0-1.el9.x86_64
How reproducible:
5/5
Steps to reproduce
1. Running TPM emulator setup command
/usr/bin/swtpm_setup --tpm2 --tpm-state /root/avocado/data/avocado-vt/swtpm/avocado-vt-vm1_tpm0_state --createek --create-ek-cert --create-platform-cert --lock-nvram --not-overwrite
2. Running vtpm daemon command
/usr/bin/swtpm socket --ctrl type=unixio,path=/root/avocado/data/avocado-vt/swtpm/avocado-vt-vm1_tpm0_swtpm.sock,mode=0600 --tpmstate dir=/root/avocado/data/avocado-vt/swtpm/avocado-vt-vm1_tpm0_state,mode=0600 --terminate --tpm2 --log file=/root/avocado/job-results/job-2023-11-22T20.23-88ae28d/test-results/1-Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.x86_64.io-github-autotest-qemu.boot.q35/vtpm_avocado-vt-vm1_tpm0_swtpm.log
3. Boot a guest
ulimit -n 10240
/usr/libexec/qemu-kvm \
-name 'avocado-vt-vm1' \
-sandbox on \
-blockdev '{"node-name": "file_ovmf_code", "driver": "file", "filename": "/usr/share/OVMF/OVMF_CODE.secboot.fd", "auto-read-only": true, "discard": "unmap"}' \
-blockdev '{"node-name": "drive_ovmf_code", "driver": "raw", "read-only": true, "file": "file_ovmf_code"}' \
-blockdev '{"node-name": "file_ovmf_vars", "driver": "file", "filename": "/root/avocado/data/avocado-vt/avocado-vt-vm1_rhel940-64-virtio-scsi-ovmf_qcow2_filesystem_VARS.raw", "auto-read-only": true, "discard": "unmap"}' \
-blockdev '{"node-name": "drive_ovmf_vars", "driver": "raw", "read-only": false, "file": "file_ovmf_vars"}' \
-machine q35,pflash0=drive_ovmf_code,pflash1=drive_ovmf_vars,memory-backend=mem-machine_mem \
-device '{"id": "pcie-root-port-0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x1", "chassis": 1}' \
-device '{"id": "pcie-pci-bridge-0", "driver": "pcie-pci-bridge", "addr": "0x0", "bus": "pcie-root-port-0"}' \
-nodefaults \
-device '{"driver": "VGA", "bus": "pcie.0", "addr": "0x2"}' \
-m 62464 \
-object '{"size": 65498251264, "id": "mem-machine_mem", "qom-type": "memory-backend-ram"}' \
-smp 28,maxcpus=28,cores=14,threads=1,dies=1,sockets=2 \
-cpu 'Icelake-Server-noTSX',+kvm_pv_unhalt \
-device '{"id": "pcie-root-port-1", "port": 1, "driver": "pcie-root-port", "addr": "0x1.0x1", "bus": "pcie.0", "chassis": 2}' \
-device '{"driver": "qemu-xhci", "id": "usb1", "bus": "pcie-root-port-1", "addr": "0x0"}' \
-device '{"driver": "usb-tablet", "id": "usb-tablet1", "bus": "usb1.0", "port": "1"}' \
-device '{"id": "pcie-root-port-2", "port": 2, "driver": "pcie-root-port", "addr": "0x1.0x2", "bus": "pcie.0", "chassis": 3}' \
-device '{"id": "virtio_scsi_pci0", "driver": "virtio-scsi-pci", "bus": "pcie-root-port-2", "addr": "0x0"}' \
-blockdev '{"node-name": "file_image1", "driver": "file", "auto-read-only": true, "discard": "unmap", "aio": "threads", "filename": "/home/kvm_autotest_root/images/rhel940-64-virtio-scsi-ovmf.qcow2", "cache": {"direct": true, "no-flush": false}}' \
-blockdev '{"node-name": "drive_image1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_image1"}' \
-device '{"driver": "scsi-hd", "id": "image1", "drive": "drive_image1", "write-cache": "on"}' \
-device '{"id": "pcie-root-port-3", "port": 3, "driver": "pcie-root-port", "addr": "0x1.0x3", "bus": "pcie.0", "chassis": 4}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:51", "id": "id0Ytnx3", "mq": true, "vectors": 10, "netdev": "id9gv1iA", "bus": "pcie-root-port-3", "addr": "0x0"}' \
-netdev tap,id=id9gv1iA,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-4", "port": 4, "driver": "pcie-root-port", "addr": "0x1.0x4", "bus": "pcie.0", "chassis": 5}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:52", "id": "idTL7z8p", "mq": true, "vectors": 10, "netdev": "idDucJFq", "bus": "pcie-root-port-4", "addr": "0x0"}' \
-netdev tap,id=idDucJFq,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-5", "port": 5, "driver": "pcie-root-port", "addr": "0x1.0x5", "bus": "pcie.0", "chassis": 6}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:53", "id": "idyZ8K7L", "mq": true, "vectors": 10, "netdev": "idXP5wYg", "bus": "pcie-root-port-5", "addr": "0x0"}' \
-netdev tap,id=idXP5wYg,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-6", "port": 6, "driver": "pcie-root-port", "addr": "0x1.0x6", "bus": "pcie.0", "chassis": 7}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:54", "id": "id2CpDyD", "mq": true, "vectors": 10, "netdev": "id0B0xyi", "bus": "pcie-root-port-6", "addr": "0x0"}' \
-netdev tap,id=id0B0xyi,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-7", "port": 7, "driver": "pcie-root-port", "addr": "0x1.0x7", "bus": "pcie.0", "chassis": 8}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:55", "id": "idH1GOCo", "mq": true, "vectors": 10, "netdev": "idtxnA8N", "bus": "pcie-root-port-7", "addr": "0x0"}' \
-netdev tap,id=idtxnA8N,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-8", "port": 8, "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x3", "chassis": 9}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:56", "id": "idKlUhcF", "mq": true, "vectors": 10, "netdev": "iddNXBIE", "bus": "pcie-root-port-8", "addr": "0x0"}' \
-netdev tap,id=iddNXBIE,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-9", "port": 9, "driver": "pcie-root-port", "addr": "0x3.0x1", "bus": "pcie.0", "chassis": 10}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:57", "id": "id7TL7gP", "mq": true, "vectors": 10, "netdev": "idimh4fc", "bus": "pcie-root-port-9", "addr": "0x0"}' \
-netdev tap,id=idimh4fc,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-10", "port": 10, "driver": "pcie-root-port", "addr": "0x3.0x2", "bus": "pcie.0", "chassis": 11}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:58", "id": "idYZHzJV", "mq": true, "vectors": 10, "netdev": "id93TeAE", "bus": "pcie-root-port-10", "addr": "0x0"}' \
-netdev tap,id=id93TeAE,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-11", "port": 11, "driver": "pcie-root-port", "addr": "0x3.0x3", "bus": "pcie.0", "chassis": 12}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:59", "id": "idgKyaUX", "mq": true, "vectors": 10, "netdev": "idI9Y63k", "bus": "pcie-root-port-11", "addr": "0x0"}' \
-netdev tap,id=idI9Y63k,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-12", "port": 12, "driver": "pcie-root-port", "addr": "0x3.0x4", "bus": "pcie.0", "chassis": 13}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:5a", "id": "iduKSq1B", "mq": true, "vectors": 10, "netdev": "idOFV2zj", "bus": "pcie-root-port-12", "addr": "0x0"}' \
-netdev tap,id=idOFV2zj,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-13", "port": 13, "driver": "pcie-root-port", "addr": "0x3.0x5", "bus": "pcie.0", "chassis": 14}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:5b", "id": "idxKrGtP", "mq": true, "vectors": 10, "netdev": "idxWFQ0j", "bus": "pcie-root-port-13", "addr": "0x0"}' \
-netdev tap,id=idxWFQ0j,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-14", "port": 14, "driver": "pcie-root-port", "addr": "0x3.0x6", "bus": "pcie.0", "chassis": 15}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:5c", "id": "id0cFDyb", "mq": true, "vectors": 10, "netdev": "idPi1jpb", "bus": "pcie-root-port-14", "addr": "0x0"}' \
-netdev tap,id=idPi1jpb,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-15", "port": 15, "driver": "pcie-root-port", "addr": "0x3.0x7", "bus": "pcie.0", "chassis": 16}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:5d", "id": "idIlgIlp", "mq": true, "vectors": 10, "netdev": "id9x5SmF", "bus": "pcie-root-port-15", "addr": "0x0"}' \
-netdev tap,id=id9x5SmF,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-16", "port": 16, "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x4", "chassis": 17}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:5e", "id": "idXfo01C", "mq": true, "vectors": 10, "netdev": "idw9PCYB", "bus": "pcie-root-port-16", "addr": "0x0"}' \
-netdev tap,id=idw9PCYB,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-17", "port": 17, "driver": "pcie-root-port", "addr": "0x4.0x1", "bus": "pcie.0", "chassis": 18}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:5f", "id": "idJ9O1XG", "mq": true, "vectors": 10, "netdev": "id2FnfiY", "bus": "pcie-root-port-17", "addr": "0x0"}' \
-netdev tap,id=id2FnfiY,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-18", "port": 18, "driver": "pcie-root-port", "addr": "0x4.0x2", "bus": "pcie.0", "chassis": 19}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:60", "id": "idwcRugO", "mq": true, "vectors": 10, "netdev": "id8kITRI", "bus": "pcie-root-port-18", "addr": "0x0"}' \
-netdev tap,id=id8kITRI,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-19", "port": 19, "driver": "pcie-root-port", "addr": "0x4.0x3", "bus": "pcie.0", "chassis": 20}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:61", "id": "idPOFSy2", "mq": true, "vectors": 10, "netdev": "idydQWMl", "bus": "pcie-root-port-19", "addr": "0x0"}' \
-netdev tap,id=idydQWMl,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-20", "port": 20, "driver": "pcie-root-port", "addr": "0x4.0x4", "bus": "pcie.0", "chassis": 21}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:62", "id": "idlPXkTn", "mq": true, "vectors": 10, "netdev": "idcJIMWP", "bus": "pcie-root-port-20", "addr": "0x0"}' \
-netdev tap,id=idcJIMWP,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-21", "port": 21, "driver": "pcie-root-port", "addr": "0x4.0x5", "bus": "pcie.0", "chassis": 22}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:63", "id": "id1AqLvv", "mq": true, "vectors": 10, "netdev": "idQ6ekRl", "bus": "pcie-root-port-21", "addr": "0x0"}' \
-netdev tap,id=idQ6ekRl,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-22", "port": 22, "driver": "pcie-root-port", "addr": "0x4.0x6", "bus": "pcie.0", "chassis": 23}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:64", "id": "id1qWhKi", "mq": true, "vectors": 10, "netdev": "idhk0otM", "bus": "pcie-root-port-22", "addr": "0x0"}' \
-netdev tap,id=idhk0otM,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-23", "port": 23, "driver": "pcie-root-port", "addr": "0x4.0x7", "bus": "pcie.0", "chassis": 24}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:65", "id": "idLBfzXl", "mq": true, "vectors": 10, "netdev": "idYaomHx", "bus": "pcie-root-port-23", "addr": "0x0"}' \
-netdev tap,id=idYaomHx,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-24", "port": 24, "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x5", "chassis": 25}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:66", "id": "id6BJZ8E", "mq": true, "vectors": 10, "netdev": "idOKqAEc", "bus": "pcie-root-port-24", "addr": "0x0"}' \
-netdev tap,id=idOKqAEc,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-25", "port": 25, "driver": "pcie-root-port", "addr": "0x5.0x1", "bus": "pcie.0", "chassis": 26}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:67", "id": "idNxosuW", "mq": true, "vectors": 10, "netdev": "idErrb3o", "bus": "pcie-root-port-25", "addr": "0x0"}' \
-netdev tap,id=idErrb3o,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-26", "port": 26, "driver": "pcie-root-port", "addr": "0x5.0x2", "bus": "pcie.0", "chassis": 27}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:68", "id": "idPvqd5Y", "mq": true, "vectors": 10, "netdev": "id4NuF7V", "bus": "pcie-root-port-26", "addr": "0x0"}' \
-netdev tap,id=id4NuF7V,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-27", "port": 27, "driver": "pcie-root-port", "addr": "0x5.0x3", "bus": "pcie.0", "chassis": 28}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:69", "id": "idHYgrOg", "mq": true, "vectors": 10, "netdev": "idmlcztL", "bus": "pcie-root-port-27", "addr": "0x0"}' \
-netdev tap,id=idmlcztL,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-28", "port": 28, "driver": "pcie-root-port", "addr": "0x5.0x4", "bus": "pcie.0", "chassis": 29}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:6a", "id": "idqDJFKo", "mq": true, "vectors": 10, "netdev": "idG13LOQ", "bus": "pcie-root-port-28", "addr": "0x0"}' \
-netdev tap,id=idG13LOQ,vhost=on,queues=4 \
-device '{"id": "pcie-root-port-29", "port": 29, "driver": "pcie-root-port", "addr": "0x5.0x5", "bus": "pcie.0", "chassis": 30}' \
-device '{"driver": "virtio-net-pci", "mac": "9a:1e:34:bd:3d:6b", "id": "idHGZxDX", "mq": true, "vectors": 10, "netdev": "idIK2gmv", "bus": "pcie-root-port-29", "addr": "0x0"}' \
-netdev tap,id=idIK2gmv,vhost=on,queues=4 \
-vnc :0 \
-rtc base=utc,clock=host,driftfix=slew \
-boot menu=off,order=cdn,once=c,strict=off \
-chardev socket,id=char_vtpm_avocado-vt-vm1_tpm0,path=/root/avocado/data/avocado-vt/swtpm/avocado-vt-vm1_tpm0_swtpm.sock \
-tpmdev emulator,chardev=char_vtpm_avocado-vt-vm1_tpm0,id=emulator_vtpm_avocado-vt-vm1_tpm0 \
-device '{"id": "tpm-crb_vtpm_avocado-vt-vm1_tpm0", "tpmdev": "emulator_vtpm_avocado-vt-vm1_tpm0", "driver": "tpm-crb"}' \
-enable-kvm \
-device '{"id": "pcie_extra_root_port_0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x6", "chassis": 31}' \
-monitor stdio \
4. grub2 failed with
error: ../../grub-core/commands/efi/tpm.c:150:unknown TPM error. error: ../../grub-core/commands/efi/tpm.c:150:unknown TPM error. error: ../../grub-core/commands/efi/tpm.c:150:unknown TPM error. error: ../../grub-core/commands/efi/tpm.c:150:unknown TPM error. Press any key to continue..._
Expected results
There is no any errors message when booting guest
Actual results
grub errors out on boot with a TPM error
Additional info:
- QE can not sure if it a regression bug, since it is can not easy to reproduce. But there also a bug on Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2128485 .So QE determine to file a new bug on the rhel to track this problem.
- QE hit this problem first time via automation: http://virtqetools.lab.eng.pek2.redhat.com/autotest_static_job_log/8586087/test-results/32-Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.x86_64.io-github-autotest-qemu.multi_nics_verify.with_multiqueue.nic_virtio.q35/serial-serial0-avocado-vt-vm1.log