Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-24522

New VM created with BIOS default does not add virtual TPM when switching to EFI

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.4
    • rhel-9.3.0
    • cockpit-machines
    • None
    • cockpit-machines-308-1.el9
    • None
    • None
    • rhel-sst-cockpit
    • ssg_front_door
    • None
    • Dev ack
    • False
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      I'm on a RHEL 9.3 system with the following package versions:

      virt-install-4.1.0-4.el9.noarch
      cockpit-machines-298-2.el9_3.noarch

      I am using Cockpit to create a VM with UEFI, and the newly created VM does not automatically have a virtual TPM device added.  Based on the release notes here, I would expect the virtual TPM device would be added for any new VM using UEFI:  https://github.com/virt-manager/virt-manager/releases/tag/v4.0.0

      How reproducible:

      Every time

      Steps to reproduce

      1. Use RHEL 9.3 system
      2. Create a new VM using cockpit-machines (in my example, I created a Fedora VM, with Operating system set to "Fedora Linux 38")
      3. On the new VM page, click "Create and edit"
      4. Change the firmware to use UEFI, and then click "Install"

      Expected results

      Based on the release notes here, I would expect the virtual TPM device would be added for any new VM using UEFI:  https://github.com/virt-manager/virt-manager/releases/tag/v4.0.0

      Actual results

      No virtual TPM device is added to the new VM:

      1. virsh dumpxml <vm_name> | grep -i tpm

      (no output)

              rhn-engineering-mpitt Martin Pitt
              rhn-support-briasmit Brian Smith
              Yunming Yang Yunming Yang
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: