Automatically extend VM partition filesystem following a qemu-img resize

Published: 14/06/2019
Automatically extend VM partition filesystem following a qemu-img resize
Source: SERVERFAULT.COM

I'm launching a virtual machine with QEMU/KVM. After resizing the qcow2 disk image via qemu-img resize Test.qcow2 +500M And looking at the instance disk via: fdisk -l inside the instance, I can see the following warning message: GPT PMBR size mismatch (17752063 != 19800063) will be corrected by w(rite). I would like to write a script that automatically resize the partition to take up the maximal

Read more
Related news
Comment
FACEBOOK