You can’t take normal full featured libvirt snapshots, since we are using UEFI.
- Chris does a pretty good job at Chris’s Wiki :: blog/linux/LibvirtUEFISnapshots.
- https://fabianlee.org/2021/01/10/kvm-creating-and-reverting-libvirt-external-snapshots/
Although Chris makes a good point about not using external snapshots, I prefer to have the visual reminder in virt-manager that a snapshot is available. I’m going to give external snapshots a try anyways. Here are the relevant commands:
virsh snapshot-list $domain
# Create snapshot
virsh snapshot-create-as $domain --name $snapshotname --disk-only
# Check that we are now using the new snapshot qcow2 file
virsh domblklist $domain
# If we navigate to where the qcow2 files are stored, we
# should see the original img file and a new file
# Alternate path: /var/lib/libvirt/images
pushd ~/.local/share/libvirt/images
ls -al
# Running the file command can reveal the backing file info
file *
# To delete a snapshot metadata
virsh snapshot-delete --metadata $thedomain $snapshotname
# Also note ~/.config/libvirt directory