August 10, 20196 yr 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?
August 10, 20196 yr Community Expert 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.
Archived
This topic is now archived and is closed to further replies.