Resize the disk attached to the VM to whichever size you need then restart the VM with ‘reboot’
lsblkYou should see the device listed with the new size.
If the device is currently mounted, it need to be unmounted before continuing.
sudo umount /dev/sdbsudo e2fsck -f /dev/sdbsudo resize2fs /dev/sdbNow the device needs to be remounted.
sudo mount -a