In VirtualBox by default usually your VM size is 8GB. You might run out of space, and need a larger virtual machine. Recently on a windows box (gack!) I had an Ubuntu VM spun up that needed more space – and there’s no way at all to do this in the GUI.
Low and behold, there’s a command for this! Go to the command line in Windows (cmd.exe) and type the following:
“C:\Program Files\Oracle\VirtualBox\VBoxManage.exe” modifyhd “C:\users\myuser\VirtualBox VMs\Debian 6.0.3\Debian 6.0.3.vdi” –resize 16384
If you need to do this in Linux this is the command:
VBoxManage modifyhd natty.vdi –resize 12000
Now you have all the hard disk space you need!