Resize a non-root partition in Ubuntu Server
Resize the disk attached to the VM to whichever size you need then restart the VM with ‘reboot’ You should see the device listed with the new size. If the device is currently mounted, it need to be unmounted before continuing. Now the device needs to be remounted.