The error you're encountering:
texterror: Failed to delete snapshot My_snapshot error: internal error: unable to execute QEMU command 'block-dirty-bitmap-remove': Dirty bitmap 'libvirt-tmp-activewrite' not found
means that libvirt is trying to remove a dirty bitmap (a QEMU feature used for tracking disk changes) associated with the snapshot, but the bitmap named libvirt-tmp-activewrite no longer exists in QEMU. This is a common issue when snapshots are not cleaned up properly, or when QEMU or libvirt was restarted or crashed.
--metadata OnlySometimes, the snapshot metadata exists in libvirt, but the actual QEMU bitmap is missing. You can try deleting only the metadata:
bashvirsh snapshot-delete LineageOS_trust My_snapshot --metadata
This removes the snapshot reference from libvirt without touching QEMU.
If the above fails, you can manually edit the domain's XML to remove the snapshot metadata.
bashvirsh dumpxml LineageOS_trust > lineageos_trust.xml
<snapshot> section corresponding to My_snapshot.<snapshot> block for My_snapshot.bashvirsh define lineageos_trust.xml
virsh snapshot-list to ConfirmCheck if the snapshot still appears:
bashvirsh snapshot-list LineageOS_trust
If it's gone, the issue is resolved.
If the snapshot is still present in QEMU (e.g., as a disk image), you may need to manually remove it using qemu-img or by editing the disk file directly. However, this is advanced and risky—only do this if you're comfortable with QEMU internals.
If the issue persists, try restarting the libvirt daemon:
bashsudo systemctl restart libvirtd
Then retry the snapshot deletion.
--metadata if you only want to remove the snapshot reference.Question: Have you tried the --metadata flag yet, or do you need help with the XML editing step?
Vibe can make mistakes. Check answers. Learn more