March 16, 20251 yr I checked the directory where the disk was saved, but it's not there. Can't find it on google or documentation. My goal is to make automatic snapshots and back it up to a different disk. Thank you for advice!
March 16, 20251 yr Community Expert Solution 46 minutes ago, D0wk1ng said: I checked the directory where the disk was saved, but it's not there. Can't find it on google or documentation. My goal is to make automatic snapshots and back it up to a different disk. Thank you for advice! The snapshot implementation does not create a full copy of the disk image. It creates a QCOW2 overlay in the same dir as the disk. It is not possible to create a snapshot via script/Cmdline currently. The database for snapshots is stored in /etc/libvirt/qemu/snapshotdb/VM name/ Planned for a future release to provide backups, but not in scheduled timeline as yet.
March 17, 20251 yr I am creating snapshots of several of my VMs then copying them to other storage then deleting the snapshot. Seems to be working great other than the snaps I take on the CLI are not reflected in the GUI. I have booted the VM from the copied disk and it seems to boot up just fine. 🤷♂️ Here is how I am taking the snapshot: # 2. Create snapshot echo "Creating snapshot $SNAPSHOT_NAME..." virsh snapshot-create-as --domain "$VM_NAME" "$SNAPSHOT_NAME" --disk-only --atomic --diskspec "hdc,snapshot=external" --diskspec "hdd,snapshot=no" check_status "Snapshot creation" I stumbled onto this post while searching for why my snapshots don't appear in the GUI, which I suppose is mostly answered in the post above. Edited March 17, 20251 yr by harshl
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.