error while loading state for instance 0x0 of device 'kvm-tpr-opt',load of migration failed: Operation not permitted
Emulated/Virtualized environment
- Operating system: centos8
- OS/kernel version: 5.10.0-60.18
- Architecture: x86
- QEMU flavor: qemu-system-x86_64
- QEMU version: 6.2.0
qemu args:
/usr/bin/qemu-system-x86_64 -name guest=test,debug-threads=on -S -object {"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-99-test/master-key.aes"} -machine pc-i440fx-6.2,accel=kvm,usb=off,dump-guest-core=off -cpu host,vmx=on,umip=on -m 1024 -overcommit mem-lock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 3699f171-1856-47d5-bb17-65dec255343f -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=65,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -blockdev {"driver":"file","filename":"/root/kk.img","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2","file":"libvirt-1-storage","backing":null} -device ide-hd,bus=ide.0,unit=0,drive=libvirt-1-format,id=ide0-0-0,bootindex=1 -vnc 0.0.0.0:17 -k en-us -device virtio-vga,id=video0,max_outputs=1,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
Description of problem
when i save and restore a guest,it report the error: "error while loading state for instance 0x0 of device 'kvm-tpr-opt',load of migration failed: Operation not permitted"
Steps to reproduce
1.virsh save test ccc.img
2.virsh restore ccc.im
it report error:
[root@TOS-9772 ~]# virsh save test ccc.img
[root@TOS-9772 ~]# virsh restore ccc.img
error: Failed to restore domain from ccc.img
error: internal error: qemu unexpectedly closed the monitor: qmp_cmd_name: query-hotpluggable-cpus, arguments: {}
qmp_cmd_name: query-cpus-fast, arguments: {}
qmp_cmd_name: query-iothreads, arguments: {}
qmp_cmd_name: expire_password, arguments: {"protocol": "spice", "time": "never"}
qmp_cmd_name: balloon, arguments: {"value": 1073741824}
qmp_cmd_name: migrate-incoming, arguments: {"uri": "fd:29"}
{"timestamp": {"seconds": 1677661413, "microseconds": 275227}, "event": "MIGRATION", "data": {"status": "setup"}}
{"timestamp": {"seconds": 1677661413, "microseconds": 275600}, "event": "MIGRATION", "data": {"status": "active"}}
2023-03-01T09:03:33.316549Z qemu-system-x86_64: error while loading state for instance 0x0 of device 'kvm-tpr-opt'
2023-03-01T09:03:33.317076Z qemu-system-x86_64: load of migration failed: Operation not permitted {"timestamp": {"seconds": 1677661413, "microseconds": 317297}, "event": "MIGRATION", "data": {"status": "failed"}}