[QUEM/Virt-manager] I cannot change the size of the virtual disk created in QUEM

Hi!
I tried to reduce the image of the virtual disk but no luck. I tried to reduce it in two ways. I’m going to cut out part of the disk name because, in Hungarian, it’s a swear word.

    sudo  qemu-img resize /var/lib/libvirt/images/Winf*s10.qcow2 35G
    qemu-img: Use the --shrink option to perform a shrink operation.
    qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there.

sudo  qemu-img resize /var/lib/libvirt/images/Winf*s10.qcow2 -17G
qemu-img: Use the --shrink option to perform a shrink operation.
qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there.

sudo qemu-img resize --shrink /var/lib/libvirt/images/Winf*s10.qcow2 -17G

1 Like

Thanks for help. Have a nice day!