Friis Posted August 10, 2019 Share Posted August 10, 2019 Hi This might be a strange use-case, but I would like to restore VMs to a "snapshot" or saved vdisk very often. (5+ times a day) I attempted to look into libvirt snapshots with qcow2, just to run into some pflash error. I attempted to look into btrfs snapshots. Only to not understand it well enough (seem to just make a copy of the vdisk and slow to "restore") Is there a way to make vdisk read only and any changes in a "temp" file removed after? (guess would be fastest in my use-case) Is there a more detailed guide for libvirt or btrfs fitting my use-case? Quote Link to comment
JorgeB Posted August 10, 2019 Share Posted August 10, 2019 3 minutes ago, Friis said: (seem to just make a copy of the vdisk and slow to "restore" If restoring from the same filesystem just make sure you use COW, e.g.: cp -aT --reflink=always /mnt/cache/snaphots/date/vdisk.img /mnt/cache/vm/disk.img It won't take more than a second. Quote Link to comment
Recommended Posts
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.