Easily Expand The Hard Disk Of Your Virtual Machine (VirtualBox)

If you have not heard of a Virtual Machine or VirtualBox before now, i strongly suggest you go to this link and this link too to read more about it before you proceed with this article.

One of the major problems users of Virtual Machines face is how to expand the hard disk of their machines when it gets filled up. For this write up, we will be referencing VirtualBox

Oracles 2

Please note that the hard disk must have been created dynamically.

  1. Shut down your Virtual Machine.
  2. Locate the installation folder for Virtualbox on your system, usually C:\Program Files\Oracle
  3. Hold down the SHIFT button and right-click on the Virtualbox folder, select “Open Command Window Here”
  4. Copy the following line of code into the command line window;

    VBoxManage modifyhd “Windows 7.vdi” —resize 50000

  5. replace Windows 7 with the name of your virtual Machine and 50000 with the desired size (in MB) that you want your VM size to be.
  6. The above command assumes your VM is in the following folder; C:\Program Files\Oracle\VirtualBox\. If you are like me and you store your VMs in a different location, you need to specify the exact location like so;

    VBoxManage modifyhd “C:\Users\Wale\Documents\VMs\Windows 7\Windows 7.vdi” —resize 50000

  7. You will see the following on your screen;


  8. The additional space is not yet visible. So far, what you have done is to add an adjoining unallocated hard disk space to your VM hard disk space. To have access to the additional hard disk space;
  9. Boot up your VM, go to your control panel – Administrative tools – Computer Management
  10. In the left pane, under Storage, click Disk Management
  11. Right Click on your drive, Select “Extend Volume”. Wait for a few seconds, then you are done.
  12. Your VM hard disk is now 50,000 MB (50GB)


Oracles 3

Oracles 4


Leave a Reply

Your email address will not be published. Required fields are marked *

This is an Advertorial

Learn how to build digital products without writing a single line of code

Build anything you can dream of without writing code or hiring a developer

Our non-technical students start companies using tools like Bubble, Softr , Elementor and Airtable. It’s easier, faster and more fun.

No matter what your background is, our lessons are designed to figure out what you don’t know and fill in the gaps

Join our learning community of soulmates, learn at your own pace and stay motivated to reach your objectives.

Begin Your No-Code Journey.

Training Mode : in-class
Location : E-349 Ikota Shopping Complex, VGC, Ajah, Lagos
Fees : N150,000