Via Lattanzio,23 Milano
+39 02 36592025
info@synaptica.info

Resizing kvm qcow2 disk

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!

Lascia un commento