Most of the guests I use for testing are desktop machines created using the graphical virt-manager tool. These have a single partition virtio disk that's formatted ext4 when Linux, without LVM. This is the procedure I follow to grow the disk when more space is needed:
- Shut down the guest.
- Use qemu-img to grow the disk:
$ sudo qemu-img resize myguest.qcow2 +20G
-
Start the guest up again, login, open a terminal and install gparted.
-
Run gparted and use to expand the primary partition into the newly expanded space.
It wasn't long ago that it would have been impossible to expand a boot partition while mounted as the boot partition for the system you were running the paritioning tool from. But now it is.