Failed to restore domain - error load load virtio-balloon:virtio
I noticed a domain restore error on my virtual machines. I can't reproduce the error on a test virtual machine.
sudo virsh save linux2020 /var/lib/libvirt/qemu/save/linux2020.save
Domain 'linux2020' saved to /var/lib/libvirt/qemu/save/linux2020.save
sudo virsh restore /var/lib/libvirt/qemu/save/linux2020.save
error: Failed to restore domain from /var/lib/libvirt/qemu/save/linux2020.save
error: внутренняя ошибка: QEMU неожиданно завершил работу монитора: qemu-system-x86_64: -chardev socket,id=charchannel0,fd=52,server,nowait: warning: short-form boolean option 'server' deprecated
Please use server=on instead
qemu-system-x86_64: -chardev socket,id=charchannel0,fd=52,server,nowait: warning: short-form boolean option 'nowait' deprecated
Please use wait=off instead
qemu-system-x86_64: -spice port=5900,addr=0.0.0.0,disable-ticketing,image-compression=off,seamless-migration=on: warning: short-form boolean option 'disable-ticketing' deprecated
Please use disable-ticketing=on instead
2021-04-16T09:47:15.037700Z qemu-system-x86_64: VQ 0 size 0x80 < last_avail_idx 0x0 - used_idx 0xcccc
2021-04-16T09:47:15.037737Z qemu-system-x86_64: Failed to load virtio-balloon:virtio
2021-04-16T09:47:15.037744Z qemu-system-x86_64: error while loading state for instance 0x0 of device '0000:00:02.0/virtio-balloon'
2021-04-16T09:47:15.037849Z qemu-system-x86_64: load of migration failed: Operation not permitted
If in the machine configuration replace
<type arch="x86_64" machine="pc-i440fx-5.1">hvm</type>
to
<type arch="x86_64" machine="pc-i440fx-5.0">hvm</type>
the virtual machine is recovering normally
Checked for versions 5.2.0 and 6.0.0.
Save and restore with use arch pc-i440fx-5.1.
QEMU running on OS Linux NixOS.
VM configuration - linux2020.xml
Original bug report - https://bugs.launchpad.net/qemu/+bug/1924738