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

qemu crashed when migrate guest with blob resources enabled

    • qemu-kvm-8.2.0-3.el9
    • sst_virtualization
    • ssg_virtualization
    • 19
    • 23
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      qemu crashed when migrate guest with blob resources enabled

      Version-Release number of selected component (if applicable):
      libvirt-9.5.0-6.el9.x86_64
      qemu-kvm-8.0.0-13.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1. prepare a guest with the following xml snippet

      1. virsh dumpxml lizhu --xpath //video
        <video>
        <model type="virtio" heads="1" primary="yes" blob="on"/>
        <alias name="video0"/>
        <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
        </video>

      2. migrate the guest to another host

      1. virsh migrate lizhu qemu+ssh://$target_host/system --verbose --live
        Migration: [98.32 %]error: operation failed: domain is not running

      3. check the qemu log on target host
      #cat /var/log/libvirt/qemu/lizhu.log
      ...
      2023-08-30 14:35:30.653+0000: Domain id=1 is tainted: host-cpu
      char device redirected to /dev/pts/2 (label charserial0)
      2023-08-30T14:35:37.352236Z qemu-kvm: Failed to load virtio-gpu:virtio-gpu
      2023-08-30T14:35:37.352266Z qemu-kvm: error while loading state for
      instance 0x0 of device '0000:00:01.0/virtio-gpu'
      2023-08-30T14:35:37.352442Z qemu-kvm: load of migration failed: Invalid argument
      2023-08-30 14:35:37.754+0000: shutting down, reason=crashed

      4. check the qemu log on source host
      #cat /var/log/libvirt/qemu/lizhu.log
      ...
      2023-08-30 14:35:30.974+0000: initiating migration
      2023-08-30 14:35:37.789+0000: shutting down, reason=crashed

      5. check the guest states on source host

      1. virsh domstate lizhu --reason
        shut off (unknown)

      Actual results:
      Migration failed, qemu crashed

      Expected results:
      Qemu should not crash.

            mlureau Marc-Andre Lureau
            rhn-support-lizhu Lili Zhu
            Zhiyi Guo Zhiyi Guo
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: