Resize gcow2 image with qemu

To resize gcow2 image, run

qemu-img resize FILE.qcow2 +10GB

To create a gcow2 image, run

qemu-img create -f qcow2 -o preallocation=metadata 10G

You can also use

virt-resize --debug  --expand /dev/vda1 FILE.qcow2

virt-resize is part of

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *