Re: Libvirt Snapshot Question

2021-12-02 Thread Peter Krempa
On Thu, Dec 02, 2021 at 16:27:00 +0100, Elias Mobery wrote: > OK, so I tried both ways. (The VM image is in the read-only squashfs.) > > 1.) Editing VM domain XML: > > > > > > Error: Internal Error - Could not open > /var/lib/libvirt/images/vm.snapshot1 : Permission Denied > > I

Re: Libvirt Snapshot Question

2021-12-02 Thread Elias Mobery
OK, so I tried both ways. (The VM image is in the read-only squashfs.) 1.) Editing VM domain XML: Error: Internal Error - Could not open /var/lib/libvirt/images/vm.snapshot1 : Permission Denied I chowned everything to libvirt but no changes. Maybe a read-only conflict? 2.) Addi

Re: Libvirt Snapshot Question

2021-12-02 Thread Peter Krempa
On Wed, Dec 01, 2021 at 18:35:44 +0100, Elias Mobery wrote: > Hey man, I tried both suggestions, thanks again. > > Option 1.) Create/attach a second qcow2 disk & unplug when wiping. > This did not work unfortunately. After wiping the overlay filesystem on the > host (where the snapshots are sittin

Re: Libvirt Snapshot Question

2021-12-01 Thread Elias Mobery
Hey man, I tried both suggestions, thanks again. Option 1.) Create/attach a second qcow2 disk & unplug when wiping. This did not work unfortunately. After wiping the overlay filesystem on the host (where the snapshots are sitting), I cannot create another snapshot, a similar error message like bef

Re: Libvirt Snapshot Question

2021-11-30 Thread Elias Mobery
Hey Peter, thanks for the super quick reply, you're awesome! So you mean the first option would be to create a second disk instead of using snapshot for write, when it gets too big I can then unplug the disk, delete it (or wipe entire overlay fs) and recreate it to start fresh? OK I will try that

Re: Libvirt Snapshot Question

2021-11-30 Thread Peter Krempa
On Tue, Nov 30, 2021 at 14:51:54 +0100, Elias Mobery wrote: > Hello Peter, thank you so much for that detailed info! > > Sorry, you were right, when trying to delete my external snapshot via > snapshot-delete, the error says "deletion of external snapshots unsupported" > > I can't merge the snaps

Re: Libvirt Snapshot Question

2021-11-30 Thread Elias Mobery
Hello Peter, thank you so much for that detailed info! Sorry, you were right, when trying to delete my external snapshot via snapshot-delete, the error says "deletion of external snapshots unsupported" I can't merge the snapshot because the VM image is in a read-only filesystem. Sorry I should've

Re: Libvirt Snapshot Question

2021-11-30 Thread Peter Krempa
On Mon, Nov 29, 2021 at 13:05:40 +0100, Elias Mobery wrote: > Hi everybody! > > I'm using a snapshot purely for writes and was wondering if it's possible > to clear/empty the snapshot after it reaches a certain size? > > Created with: > virsh snapshot-create-as --disk-only So this creates a so