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

VM failed to save with error "Target CPU feature count 34 does not match source 105"

    • libvirt-10.0.0-7.el9
    • Yes
    • None
    • ZStream, Regression
    • rhel-sst-virtualization
    • ssg_virtualization
    • 10
    • 5
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat OpenShift Virtualization
    • None
    • 10.3.0
    • None

      Description of problem:
      VM failed to save with error "Target CPU feature count 34 does not match source 105"

      Version-Release number of selected component (if applicable):
      libvirt-10.0.0-6.el9_4.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1. On a host with cpu model as "Cascadelake-Server-noTSX", prepare a vm with host-model cpu.

      # virsh capabilities  | grep "</model>"
            <model>Cascadelake-Server-noTSX</model>
      ......
      # virsh dumpxml rhel --xpath //cpu
      <cpu mode="host-model" check="partial"/>
      

      2. Start the VM, and dump the live xml with "--migratable", then save the VM with "--xml" with the xml saved, it will fail:

      # virsh start rhel
      Domain 'rhel' started
      
      # virsh dumpxml rhel --migratable > rhel_migratable.xml
      
      # virsh save rhel rhel.save --xml rhel_migratable.xml
      error: Failed to save domain 'rhel' to rhel.save
      error: unsupported configuration: Target CPU feature count 34 does not match source 105
      

      Check the libvirtd log:

      2024-03-27 12:41:09.754+0000: 26480: error : virCPUDefIsEqual:1169 : unsupported configuration: Target CPU feature count 34 does not match source 105 

      Actual results:
      VM failed to save

      Expected results:
      VM should save successfully

      Additional info:
      No such issue on libvirt-10.0.0-4.el9_4.x86_64, should be a regression caused by fix in https://issues.redhat.com/browse/RHEL-25995

        1. domcapabilities.xml
          14 kB
        2. rhel_live.xml
          14 kB
        3. rhel_migratable.xml
          12 kB
        4. rhel9-xml
          14 kB

              jdenemar@redhat.com Jiri Denemark
              yalzhang@redhat.com Yalan Zhang
              Jiri Denemark Jiri Denemark
              Han Han Han Han
              Votes:
              0 Vote for this issue
              Watchers:
              21 Start watching this issue

                Created:
                Updated:
                Resolved: