How to resize a volume in incus for alpine linux
Sometimes when you use default instance types in incus, the default root volume is too low. This mostly applies to alpine linux, which has a default root volume size of only 2gb! Be sure to do the INCUS commands first!
Steps:
- install cloud-utils-growpart
- install e2fsprogrs-extra
- growpart /dev/sda 2
- resize2fs /dev/sda2
On the incus side you need to run some commands too:
incus config device override <vm name> root size=<sizeingb>50Gib
This stop the vm restart it, and then do the top steps and POOF nice big volume.