qcow2: Resize disk

vasquezmi

Member
Aug 26, 2022
5
0
6
I am using the qcow2 image from Debian 12 for a local vm.

I followed the instructions to get and put the file in a new template structure, created a base VM and attached the qcow2 as a virtio disk.
The original size once attached was 2GB with about 1.5GB already used.
I want to resize this to 32G. I followed instruction to update the size in the gui and that took; however that appears to only set the available allocation.

When I tried to add a package of 1.2G to the VM is failed and errored that I ran out of disk space.
I tried instructions from here: https://pve.proxmox.com/wiki/Resize_disks and here: https://www.privex.io/articles/how-to-resize-partition/ but still not able to fix.

Any advice on how to increase the total size of the drive so I can continue with my use case?

Thanks in advance.