Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-59724

vTPM is added by default for win2022 bios VM after migration - OCP 4.18

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • CNV v4.18.1, CNV v4.18.2
    • CNV Infrastructure
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      Description of problem:

      Warm migrate windows 2022 VM with BIOS(without TPM device) from vSphere7 to OCP cluster,
      plan executed successfully, after migration check the VM yaml file without tpm device, and with firmware: bootloader: bios:{ },
      but there is PVC: persistent-state-for-mtv-function-win2022-p6c2b, with storage_class: ocs-storagecluster-ceph-rbd-virtualization, which indicate the VM with tpm: persistent: true in Openshift Virtualization,
      login to VM, there is tpm device and the device cannot start as tpm don't work with bios.

      Version-Release number of selected component (if applicable):

      MTV 2.8.0 with CNV 4.18.1, 4.18.2(IIB 949737)

      How reproducible:

      100%

      Steps to Reproduce:

      1) Create a win2022 vm: mtv-function-win2022 with bios, and without vtpm in vSphere 7

      2) Create a warm migration plan to migrate win2022 vm to CNV cluster, the plan executed successfully

      3) Check the VM is running, check the VM Yaml file without tpm device and with
      " firmware: bootloader: bios: {}", but there is pvc: "persistent-state-for-mtv-function-win2022-p6c2b" created during the VirtualMachineCreation phase. More details in attached files: mtv-function-win2022.yaml, pvc

      $ oc get pvc -A |grep win2022
      mtv-test                   persistent-state-for-mtv-function-win2022-p6c2b   Bound    pvc-1ef78797-865a-4651-9bab-ca46e079dbce   10Mi          RWO            ocs-storagecluster-ceph-rbd-virtualization   <unset>                 4s

      4) Login to VM, there is tpm device and the device cannot start as tpm don't work with bios.

      Actual results:

      In step3: There is pvc: persistent-state-for-mtv-function-win2022-p6c2b with storage class: ocs-storagecluster-ceph-rbd-virtualization
      In step4: There is tpm device and the device cannot start as tpm don't work with bios

      Expected results:

      In step3: No PVC is created for vtpm vtpm persistent-state
      In step4: No tpm device in VM

        1. pvc
          0.7 kB
        2. mtv-function-win2022.yaml
          3 kB
        3. image-2025-04-11-13-53-07-836.png
          image-2025-04-11-13-53-07-836.png
          47 kB
        4. image-2025-04-11-13-50-04-370.png
          image-2025-04-11-13-50-04-370.png
          118 kB
        5. image-2025-04-11-11-45-40-322.png
          image-2025-04-11-11-45-40-322.png
          13 kB
        6. image-2025-04-11-11-43-34-670.png
          image-2025-04-11-11-43-34-670.png
          12 kB
        7. image-2025-04-11-11-42-10-939.png
          image-2025-04-11-11-42-10-939.png
          18 kB

              rhn-support-lyarwood Lee Yarwood
              chhu@redhat.com Chenli Hu
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: