Welcome to Poppasan Technologies Support Portal 

vBOX How to resize a Virtual Drive

First resizing does not work if the guest has snapshots (prior to version 4.3.*) nor will it work on Fixed drives.
Secondly, when doing anything that could prove as destructive as this should you make a mistake, backup the *.vdi file before you start.

Increasing the drive does not increase the primary partition so this is a two-step process.

Step 1: Increase the size of the drive.
Note: if the path has spaces in it you will need to wrap the path in quotes.
Use the following command to increase the size of the drive:

Step 1: Increase the size of the drive.
Note: if the path has spaces in it you will need to wrap the path in quotes.
Use the following command to increase the size of the drive:

VBoxManage modifyhd --resize

Example: I have a 10GB drive that I want to be 20GB the command would be.

VBoxManage modifyhd --resize 2048

Then resize partition with live CD and Gparted