Low Orbit Flux Logo 2 F

KVM - Grow Disk

Use these instructions to KVM Increase Disk Size. Swap in your own host names, VM disk images, device names, etc.

Run on the host:




virsh list --all
virsh shutdown kube_test1
sudo qemu-img info  /var/lib/libvirt/images/kube_test1.qcow2
sudo qemu-img resize  /var/lib/libvirt/images/kube_test1.qcow2 +20G
virsh start kube_test1

Run on the guest OS:



lsblk
sudo growpart /dev/vda 3
sudo lvresize -l +100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv