Qemu VM save fails

Qemu virtual machine save fails with error:

Error saving domain: operation failed: domain save job: unexpectedly failed

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/vmmenu.py", line 187, in cb
    vm.save(meter=asyncjob.get_meter())
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1379, in save
    self._backend.managedSave(0)
  File "/usr/lib64/python3.8/site-packages/libvirt.py", line 1780, in managedSave
    raise libvirtError('virDomainManagedSave() failed')
libvirt.libvirtError: operation failed: domain save job: unexpectedly failed

When I monitor /var/lib/libvirt/qemu/save/ while save is in progress, I see that save file is being created. However, it is removed and exception is thrown. Is there any other information I should provide?

Libvirt package version is 7.8.0-2.1 and Qemu version is 6.1.0-33.1.

Qemu upgrade to 6.1.0-34.1 didn’t help. Trying to save virtual machine stille fails with same error.

I reported this upstream to libvirt developers. See https://gitlab.com/libvirt/libvirt-python/-/issues/9.

This issue was moved to Save of virtual machine fails (#236) · Issues · libvirt / libvirt · GitLab.

I received information that this saving failure occurs when using QXL graphincs for virtual machine. I do. I confirmed that this is the case. I was also informed that fix should come with next Qemu release from upstream.

This has been fixed upstream and fix has flowed down to Tumbleweed. My virtual machine guests can now survive host reboot.