Not enough space in ubuntu virtual box (in Windows host)?
The VBoxManage can solve the problem. The command line will be :
VBoxManage modifyhd “C:\[your_user_path]\VirtualBox VMs\Windows 7\Windows 7.vdi” -- resize 10240
Note. 10240bytes = 10G
And we use GParted to manage these partitions. More easilier.
What to be mentioned is that, if you got your linux-swap blocking, it is better to ready this blog :
Resize a VirtualBox guest Linux VDI Disk under Windows Host