External snapshots of a paused machine can't always be deleted
Software environment
- Operating system: Fedora 40
- Architecture: x86-64
- kernel version: 6.8.7-300
- libvirt version: 10.1.0-1
- Hypervisor and version: qemu 8.2.2
Description of problem
A external snapshot of a paused machine can not be deleted right away. (After reverting to it, it can be deleted.)
Steps to reproduce
- Have a paused VM with a single disk in qcow2 format
# virsh list
Id Name State
---------------------
7 foo paused
# virsh domblklist foo
Target Source
---------------------------------------------
vda /var/lib/libvirt/images/foo.qcow2
- Take a external snapshot with memory
# virsh snapshot-create-as foo snap --memspec /tmp/foo.mem
Domain snapshot snap created
- Try to delete the snapshot
# virsh snapshot-delete foo snap
error: Failed to delete snapshot snap
error: internal error: unable to execute QEMU command 'block-commit': Block node is read-only
Edited by Marius Vollmer