Resize the root filesystem of an LXD instance after its virtual disk has been increased.
Warning
Ensure you have a current backup before resizing the partition.
Run the following commands inside the VM.
sudo apt update
sudo apt install -y cloud-guest-utils
sudo growpart /dev/sda 1
sudo resize2fs /dev/sda1
lsblk
df -h /
The root filesystem should now show the additional storage.