Resizing a .qcow2 image (Virt-Manager)

My VM of Zorin 17 using virt-manager was getting full (forgot to resize when creating it) as the default size is about 20/25 Gb.

Found this very useful tutorial here:

Now the default location of images is in /var, but this can soon run out of space by itself, so I have now made a new 'pool' within /home which I have named 'storage'. So for me the commands were:

cd storage



So I could see the exact name of the image I needed to type in the next command to resize:

sudo qemu-img resize ubuntu22.04.qcow2 +40G

I was then asked for my password after which I got the satisfactory result of:

Image resized.