How to resize disk space in VirtualBox

How to resize disk space in VirtualBox

VirtualBox is an excellent free solution if you need to run Windows on your Mac. However, one common problem is that over time, you run out of disk space. If you receive the “Low Disk Space” warning in Windows, your only option is to either delete files and applications or resize the amount of hard drive space you allow Windows to use on your Mac.

Fortunately, you can resize the disk space in VirtualBox, although it is a bit tricky. Here’s how to resize a Windows hard drive in VirtualBox on your Mac.

1. Make sure that you installed Windows in VirtualBox using Dynamically Allocated disk space which you can check under Settings, Storage and checking the label under Details. If you used a fixed disk space, you can’t resize it and the only option is to remove applications or reinstall Windows with a larger disk space allocation.

2. You now need to instruct your Mac that you want to allocate more disk space to Virtual Box. Decide how much extra hard drive space you want to allocate and convert it to MB (in my case 40GB = 40000 MB). Open Terminal on your Mac and type:

VBoxManage modifyhd “/Users/USERNAME/VirtualBox VMs/Test/Test.vdi” –resize 40000

Substituting USERNAME with your Mac username. For example, this is how it looked on my Mac:

The resizing will be almost instant as the 100% progress indicator should show.

3. You then need to go into Windows and instruct it that you’ve allocated more hard drive space for it on your Mac. Go to your Start Menu, My Computer, right click and select Manage:

4. You can then extend the Dynamic Disk using the Extend Volume… option by right-clicking on your hard drive.

Your hard drive will then be extended to fill the extra disk space that you allocated to it. Note that you won’t suddenly find that 40GB has suddenly been occupied on your Mac hard drive as a result of this process. VirtualBox will only consume the physical space as and when you use it.

Note also that this last step only works in Windows 7 or above. Windows XP does not allow you to extend your hard drive but you can download a partition manager to do so – if you’ve got enough space.

View all comments
Loading comments