# How to increase the hard disk size of a VirtualBox virtual machine

I have run out of space on my Win8 virtual machine, which only assigned 15GB space when I created it. Is there an easy way to increase it to, say, 25GB? I can’t see any obvious option in VirtualBox settings.

Here is the solution:

First, Open Terminal through Spotlight and navigate to the folder with the VirtualBox disk image. You can launch Terminal by typing “terminal” in Spotlight

After navigate to the folder containing VirtualBox disk image, type in the following command.

`VBoxManage modified YOUR_HARD_DISK.vdi --resize SIZE_IN_MB`

YOUR_HARD_DISK.vdi   is the name of the the virtual disk.

SIZE_IN_MB                        is your desired size in MB.

#### UPDATE: May 5, 2013

The above command doesn’t work in the latest VitualBox anymore (It is currently version 4.2.12 while I’m writing this update).

Try this new command:

`VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB`

Again, YOUR_HARD_DISK.vdi   is the name of the the virtual disk.

SIZE_IN_MB                        is your desired size in MB.