Categories
Notes

QEMU Windows 11 Snapshots

You can’t take normal full featured libvirt snapshots, since we are using UEFI.

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

Leave a Reply

Your email address will not be published. Required fields are marked *