Resizing kvm qcow2 disk part 2
The evolution of KVM and qemu is constant. To increase the size of a qcow2 disk just follow the steps below:
- Shut down the virtual machine
- Resize the image with
12qemu-img resize image.qcow2 +SIZE
whereSIZE
is the size (e.g.30G
for 30 gibibytes). - Boot into an external live OS and resize the partition.
So if you wanto to extend of 30 gigabytes your image disk:
1 2 |
qemu-img resize image.qcow2 30G |
Old 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 too.