Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Resizing kvm qcow2 disk

Digital Innovation Partner

Resizing kvm qcow2 disk

I followed this steps in order to add some space to a virtual disk in kvm environment

convert qcow2 disk to be expandend in raw format:

create extra space, 30G in this case:

merge the two files:

re-convert in qcow2 format:

To be used, the extra space needs to be re-partitioned in the guest OS.
To do that, download the Gparted live cd

Then add the cdrom to the guest OS pointing to the downloaded iso. You can do that via the virt-manager or adding an xml like the following in the VM configuration file:

Add also the cd boot option:

Resize the partition, disable the cdrom boot and restart the VM

Extra space available!

Una risposta.

  1. […] post about qemu image resize: https://synaptica.info/2012/02/20/resizing-kvm-qcow2-disk/ where you can find some info about image format conversion […]

Lascia un commento