This guide details how to expand your VirtualBox VM's storage with a Windows host and a Linux client
Written by Kevin Tang
Mine was in "C:\Users\kvntng\VirtualBox VMs\Ubuntu 18.04.2 LTS\Ubuntu 18.04.2 LTS.vdi"
cd “C:\Program Files\Oracle\VirtualBox”
The following command will resize to 80 GB
VBoxManage modifyhd "C:\Users\kvntng\VirtualBox VMs\Ubuntu 18.04.2 LTS\Ubuntu 18.04.2 LTS.vdi" --resize 81920
gparted
Use the slider to adjust the space expanded
df -h
Here the name is "/dev/ubuntu-vg/root" mounted on "/"
This will expand the logical volume to 100% of the physical volume
sudo lvresize -r -l 100%VG /dev/mapper/ubuntu--vg-root
This will resize the filesystem to the full size of the logical volume
sudo resize2fs /dev/mapper/ubuntu--vg-root