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

Vm migration with vhostvdpa disk failed

    • libvirt-10.0.0-4.el9
    • Normal
    • sst_virtualization
    • ssg_virtualization
    • 25
    • 27
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

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

      Migrate a vm with vhostvdpa disk, it failed:
      # virsh migrate fjin1 qemu+tcp://

      {target_host}/system --zerocopy --parallel --live --p2p --undefinesource --persistent --copy-storage-all --migrate-disks vdc
      error: internal error: cannot precreate storage for disk type 'vhostvdpa'


      h3. Please provide the package NVR for which bug is seen:
      libvirt-10.0.0-2.el9.x86_64

      h3. How reproducible:
      100%

      h3. Steps to reproduce
      # Prepare two hosts, create vhostvdpa disk on them:
      modprobe vhost-vdpa
      modprobe vdpa-sim-blk
      
      vdpa dev add mgmtdev vdpasim_blk name blk0
      vdpa dev add mgmtdev vdpasim_blk name blk1
      


      # Start a vm with vhostvdpa disk:
      <disk type="vhostvdpa" device="disk">
        <driver name="qemu" type="raw" cache="none"/>
        <source dev="/dev/vhost-vdpa-1" index="1"/>
        <target dev="vdc" bus="virtio"/>
      </disk>
      


      # Try to migrate vm to the other host:
      
      

      # virsh migrate fjin1 qemu+tcp://{target_host}

      /system --zerocopy --parallel --live --p2p --undefinesource --persistent --copy-storage-all --migrate-disks vdc
      error: internal error: cannot precreate storage for disk type 'vhostvdpa'

      
      

      Expected results

      Migration can succeed

      Actual results

      Migration failed

            pkrempa@redhat.com Peter Krempa
            rhn-support-fjin Fangge Jin
            Liping Cheng
            Peter Krempa Peter Krempa
            Meina Li Meina Li
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: