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

Can not migrate guest after detach the user interface device

    • Yes
    • Low
    • 1
    • rhel-sst-virtualization
    • ssg_virtualization
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • Virtio-Net Sprint 6 - October
    • None

      Please provide the package NVR for which bug is seen:
      libvirt-10.5.0-5.el9.x86_64
      qemu-kvm-9.0.0-8.el9.x86_64

      How reproducible:
      100%

      Steps to reproduce:

      1. Prepare a guest with the following xml
      <interface type="user">
        <mac address="52:54:00:49:47:db"/>
        <model type="virtio"/>
        <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
      </interface>
      <channel type="unix">
        <source mode="bind" path="/var/lib/libvirt/qemu/guestfwd"/>
        <target type="guestfwd" address="10.0.2.1" port="4600"/>
      </channel>
      

      2. Start the guest, and check the qemu cmd line

      ...
      -netdev {"type":"user","id":"hostnet0"} -device {"driver":"virtio-net-pci","netdev":"hostnet0","id":"net0","mac":"52:54:00:49:47:db","bus":"pci.1","addr":"0x0"}
      ...
      -chardev socket,id=charchannel0,fd=22,server=on,wait=off -netdev {"type":"user","guestfwd":[{"str":"tcp:10.0.2.1:4600-chardev:charchannel0"}],"id":"channel0"}
      ...
      

      3. Detach the user interface

      # virsh detach-interface avocado-vt-vm1 user
      Interface detached successfully
      
      # virsh domiflist avocado-vt-vm1 
       Interface   Type   Source   Model   MAC
      ------------------------------------------
      

      (No output)

      4. Try to migrate the guest

      # virsh migrate avocado-vt-vm1 qemu+ssh://$target_hostname/system --live --p2p --verbose
      Migration: [100.00 %]error: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2024-08-27T22:13:21.323269Z qemu-kvm: -device {"driver":"cirrus-vga","id":"video0","bus":"pcie.0","addr":"0x1"}: warning: 'cirrus-vga' is deprecated, please use a different VGA card instead
      2024-08-27T22:13:21.326263Z qemu-kvm: warning: netdev channel0 has no peer
      2024-08-27T22:13:29.213100Z qemu-kvm: Unknown savevm section or instance 'slirp' 1. Make sure that your current VM setup matches your saved VM setup, including any hotplugged devices
      2024-08-27T22:13:37.319876Z qemu-kvm: load of migration failed: Invalid argument
      

      Expected result:
      Migration succeed.

              rhn-engineering-ppandit Prasad Pandit
              rhn-support-lizhu Lili Zhu
              virt-maint virt-maint
              Lei Yang Lei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated: