Increasing the size of a Virtual Disk in Oracle VM VirtualBox

Right, so using Oracle VM Virtual Box, you have a virtual disk that is fast running out of space and it needs to be expanded.

Unfortunately, within the VirtualBox GUI, there is no option to allocate more storage space to the virtual drive. So, how can more space be allocated to it?

Easy!

Open a command prompt and navigate to your Oracle Virtual Box installation location. Mine is at:

Within the installation folder there is a cool tool called VBoxManage.exe that offers a command line interface or CLI to manage Virtual Box. More info here: VBoxManage Documentation

If the virtual machine is still running, shut it down before carrying out the next step or else the command will fail as the virtual disk will be in use and no modifications can be made to it.

Anyway, to expand the virtual disk, use the following command:

For example, my test virtual hard disk is located on another partition so to increase its capacity from 8GB to 10GB I issued the following command:

As there are spaces within the file path, I encapsulated them in quotes.

Pretty neat and simple:

Screenshot of result

Now I have a 10GB virtual hard disk. You might need to close and open VirtualBox for it to pick up the increased storage space and if using Windows, run Disk Manager and allocate the additional storage.

Hello!

Well, my first ever entry on here.

I have been meaning to start blogging for a really long time but kept putting it off.

After loads of blood, sweat and tears (a bit of an exaggeration there), I have finally managed to get this up and running. Been a while since I set one of these up but I think I have managed to get it all set up and put my mark on it.

So what do I do?

I work in IT! Yeay! I absolutely enjoying working in IT and everyday is a different day.

Well, everyday IS a different day and sometimes they can be crazy crazy days.

I look after the end users and make sure they are all happy and everything is working smoothly! (If only).

Anyway, a very short introduction from me. Let’s see how this goes. (Famous last words there).