How to Resize a VirtualBox Disk in Windows

5 Feb

If you created your VirtualBox .vdi disk too small, there is a simple utility to increase the size of the disk. 

  1. Leave VirtualBox open, but stop the VM
  2. Open a command prompt (don’t use an Administrative command prompt unless VirtualBox is running as Administrator)
  3. Use the VBoxManage.exe application to set the new size in MB

Here is an example resizing to ~70gb.

<p>cd c:\Program Files\Oracle\VirtualBox</p><p>VBoxManage.exe modifyhd "c:\path\to\image.vdi" --resize 70000</p>

You’ll then need to start your VM and resize your partition (or create a new partition) to take advantage of the space.

If you get an error that looks like the below then vboxmanage.exe was unable to communicate with the VirtualBox application.  Try changing your command prompt (either to an Administrator prompt or a non-elevated prompt) and restarting the VirtualBox application.

<p>VBoxManage.exe: error: Failed to create the VirtualBox object!<br>VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available)</p><p>VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.</p>
Tweet about this on TwitterShare on Google+Share on FacebookShare on RedditEmail this to someoneShare on LinkedInShare on StumbleUpon

One thought on “How to Resize a VirtualBox Disk in Windows

  1. Pingback: Resize .vdi Virtualbox file in Windows | CCG TechBlog

Leave a Reply

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