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;

    0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%

  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

Oracles 3

Oracles 4

Post Comment