Resizing qcow2 images

To date (as of qemu 0.12.5), it was not possible to resize qcow2 images. The only workaround was to convert the image to some other format, resize it, and convert it back to qcow2. Which could be quite lengthy and meant plenty of IO. Moreover, it was even more tricky if the image was already more than 50% of your storage space and you still wanted to increase its size.

It changed with qemu 0.13.0 (still release candidate as of writing this blog post), where resize option was added to qemu-img.

To resize a qcow2 image, download the latest release candidate of 0.13.0, compile it, and resize the image:

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Lxadm.com.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.