Re: Re: Why is my VM image so large?!
On Fri, 30 May 2025 09:26:12 +0100, Jonathan Dowland wrote:
> On Thu May 29, 2025 at 3:20 PM BST, Celejar wrote:
>
>> I think I've successfully enabled TRIM/DISCARD in both the guest OS as
>> well as the host libvirt configuration, and as I mentioned, I think I
>> did claw back some space by doing so, but not nearly enough.
>
> Is 80G too big? If not, stop the VM, qemu-img convert -O raw in.img
> out.img ; then either something like `mv in.img old.img; mv out.img
> in.img` or edit your VM configuration to point at the new disk image.
Can you elaborate, please? Are you recommending that I just stop using
qcow2 going forward and stick to raw? My understanding is that the
former will generally be *more* space efficient, rather than *less* (in
addition to providing additional functionality, such as snapshotting)?
> Remove the old one once you are satisfied the new one is working.
--
Celejar
Reply to: