Qemu で移行が失敗し、ソースに「不明な RAM ブロック "mem1" があるため、移行を受け入れることができません」というエラーが表示される

Qemu で移行が失敗し、ソースに「不明な RAM ブロック "mem1" があるため、移行を受け入れることができません」というエラーが表示される

QEMU で VM を移行しようとしていますが、VM にメモリをホットプラグした後、移行できず、この名前は正常で移行元に実際に存在するにもかかわらず、移行できませんUnknown ramblock "mem1", cannot accept migration‍‍。ソースと移行先のパラメーターは次のとおりです。

ソース:

-name mig-test3.compute,debug-threads=on 
-machine q35,accel=kvm,dump-guest-core=off 
-cpu host 
-smp cores=1,maxcpus=64 
-m slots=32,maxmem=262144M,size=2048M 
-mem-path /dev/hugepages 
-monitor none 
-pidfile /opt/feynman/qemu/compute/mig-test3/pid 
-chardev socket,server,nowait,id=manager-socket,path=/opt/feynman/qemu/compute/mig-test3/manager.sock 
-mon manager-socket,id=manager-monitor,mode=control 
-chardev socket,id=mertics-socket,path=/opt/feynman/qemu/compute/mig-test3/metrics.sock,server,nowait 
-mon mertics-socket,id=metrics-monitor,mode=control 
-chardev socket,server,nowait,id=snapshot-socket,path=/opt/feynman/qemu/compute/mig-test3/snapshot.sock 
-mon snapshot-socket,id=snapshot-monitor,mode=control 
-chardev socket,id=ops-qmp-socket,path=/opt/feynman/qemu/compute/mig-test3/ops-qmp.sock,server,nowait 
-mon ops-qmp-socket,id=ops-qmp-monitor,mode=control 
-chardev socket,path=/opt/feynman/qemu/compute/mig-test3/ops-rl.sock,server,nowait,id=ops-rl-socket 
-mon ops-rl-socket,id=ops-rl-monitor,mode=readline -vnc :234 
-chardev socket,id=qemu-guest-agent,path=/opt/feynman/qemu/compute/mig-test3/guest-agent.sock,server,nowait 
-device virtio-serial 
-device virtserialport,name=org.qemu.guest_agent.0,chardev=qemu-guest-agent 
-device pcie-root-port,slot=4,chassis=0,addr=4.0,id=disk-reserved-pcie.0,multifunction=on 
-device pcie-root-port,id=disk-reserved-pcie.1,slot=4,chassis=1,addr=4.1 
-device pcie-root-port,chassis=2,addr=4.2,id=disk-reserved-pcie.2,slot=4 
-device pcie-root-port,slot=4,chassis=3,addr=4.3,id=disk-reserved-pcie.3 
-device pcie-root-port,slot=4,chassis=4,addr=4.4,id=disk-reserved-pcie.4 
-device pcie-root-port,slot=4,chassis=5,addr=4.5,id=disk-reserved-pcie.5 
-device pcie-root-port,slot=4,chassis=6,addr=4.6,id=disk-reserved-pcie.6 
-device pcie-root-port,slot=4,chassis=7,addr=4.7,id=disk-reserved-pcie.7 
-drive format=qcow2,throttling.iops-read=390,cache=none,stats-intervals.0=30,if=none,throttling.iops-write=160,node-name=ld-R8FGNRBTAP1B1EKRKGBEMV91R0,throttling.bps-read-max=9437185,throttling.iops-write-max-length=30,throttling.bps-write-max-length=30,throttling.iops-write-max=320,throttling.bps-read=4608000,file=/opt/feynman/disks/compute/os-2aa293e149614b849f9b0311c39f3706/initial.qcow2,throttling.iops-read-max=780,throttling.bps-write=4608000,throttling.bps-read-max-length=30,aio=native,throttling.iops-read-max-length=30,throttling.bps-write-max=9437185,index=0,id=virtio0 
-device virtio-blk-pci,serial=R8FGNRBTAP1B1EKRKGBE,drive=virtio0 
-drive media=cdrom,node-name=cloud-init,index=1,file=/opt/feynman/qemu/compute/mig-test3/cloudinit-429550438.iso,if=ide 
-boot order=c 
-smbios type=1 
-netdev id=ln-0600063325cd,ifname=ln-0600063325cd,script=no,downscript=no,vhost=on,vnet_hdr=on,queues=2,type=tap 
-device virtio-net-pci,mac=06:00:06:33:25:cd,mq=on,vectors=6,netdev=ln-0600063325cd

行き先:

-name mig-test3.compute,debug-threads=on 
-machine q35,accel=kvm,dump-guest-core=off 
-cpu host 
-smp cores=1,maxcpus=64 
-m maxmem=262144M,size=2048M,slots=32 
-mem-path /dev/hugepages 
-monitor none 
-pidfile /opt/feynman/qemu/compute/mig-test3/pid 
-chardev socket,server,id=manager-socket,nowait,path=/opt/feynman/qemu/compute/mig-test3/manager.sock 
-mon manager-socket,id=manager-monitor,mode=control 
-chardev socket,id=mertics-socket,nowait,path=/opt/feynman/qemu/compute/mig-test3/metrics.sock,server 
-mon mertics-socket,id=metrics-monitor,mode=control 
-chardev socket,nowait,path=/opt/feynman/qemu/compute/mig-test3/snapshot.sock,server,id=snapshot-socket 
-mon snapshot-socket,id=snapshot-monitor,mode=control 
-chardev socket,id=ops-qmp-socket,nowait,path=/opt/feynman/qemu/compute/mig-test3/ops-qmp.sock,server 
-mon ops-qmp-socket,id=ops-qmp-monitor,mode=control 
-chardev socket,nowait,path=/opt/feynman/qemu/compute/mig-test3/ops-rl.sock,server,id=ops-rl-socket 
-mon ops-rl-socket,id=ops-rl-monitor,mode=readline 
-vnc :623 
-chardev socket,id=qemu-guest-agent,nowait,path=/opt/feynman/qemu/compute/mig-test3/guest-agent.sock,server 
-device virtio-serial
-device virtserialport,chardev=qemu-guest-agent,name=org.qemu.guest_agent.0 
-device pcie-root-port,multifunction=on,slot=4,addr=4.0,chassis=0,id=disk-reserved-pcie.0 
-device pcie-root-port,id=disk-reserved-pcie.1,slot=4,addr=4.1,chassis=1 
-device pcie-root-port,addr=4.2,chassis=2,id=disk-reserved-pcie.2,slot=4 
-device pcie-root-port,addr=4.3,chassis=3,id=disk-reserved-pcie.3,slot=4 
-device pcie-root-port,addr=4.4,chassis=4,id=disk-reserved-pcie.4,slot=4 
-device pcie-root-port,addr=4.5,chassis=5,id=disk-reserved-pcie.5,slot=4 
-device pcie-root-port,addr=4.6,chassis=6,id=disk-reserved-pcie.6,slot=4 
-device pcie-root-port,id=disk-reserved-pcie.7,slot=4,addr=4.7,chassis=7 
-drive throttling.iops-read=390,file=/opt/feynman/disks/compute/os-2aa293e149614b849f9b0311c39f3706/initial.qcow2,throttling.bps-write-max-length=30,throttling.bps-read-max-length=30,throttling.bps-write=4608000,throttling.bps-write-max=9437185,throttling.iops-write=160,cache=none,node-name=ld-R8FGNRBTAP1B1EKRKGBEMV91R0,if=none,index=0,stats-intervals.0=30,throttling.bps-read=4608000,throttling.iops-read-max-length=30,throttling.iops-write-max-length=30,aio=native,format=qcow2,throttling.iops-read-max=780,throttling.iops-write-max=320,id=virtio0,throttling.bps-read-max=9437185 
-device virtio-blk-pci,drive=virtio0,serial=R8FGNRBTAP1B1EKRKGBE 
-drive file=/opt/feynman/qemu/compute/mig-test3/cloudinit-429550438.iso,if=ide,index=1,media=cdrom,node-name=cloud-init 
-boot order=c 
-smbios type=1 
-netdev queues=2,script=no,type=tap,vhost=on,vnet_hdr=on,downscript=no,id=ln-0600063325cd,ifname=ln-0600063325cd 
-device virtio-net-pci,mq=on,netdev=ln-0600063325cd,vectors=6,mac=06:00:06:33:25:cd 
-device host-x86_64-cpu,node-id=0,core-id=0,thread-id=0,id=cpu1,socket-id=1 
-object memory-backend-file,mem-path=/dev/hugepages,share=off,discard-data=on,id=mem1,size=2147483648 
-device pc-dimm,id=pcdimm1,memdev=mem1 
-incoming tcp:172.19.36.133:586a

1 つの CPU と 2 GB の RAM をホットプラグしました。Qemu 5.0.0 および Ubuntu 20.04 で動作します。Ubuntu 18.04 の QEMU 2.11.1 でこの問題が発生し、アップグレードに問題があります。

答え1

これは、アップストリームコミット fa0cb34d2210cc749b9a70db99bb41c56ad20831 によって修正された古いミスだったのではないかと思います。一部のメモリオブジェクトの名前が、単なる「name」ではなく /object/name になっていました。

関連情報