My Linux VirtualBox guest OS often runs out of space – I never learn that to build anything in Linux, you need about 10 times the amount of space that you think you need. Also, VirtualBox recommends very small default values, so it is easy to be caught out.
Anyway, here are the current steps to re-size a VirtualBox disk, where Linux is the guest OS and Windows is the host OS