If you created your VirtualBox .vdi disk too small, there is a simple utility to increase the size of the disk.
- Leave VirtualBox open, but stop the VM
- Open a command prompt (don’t use an Administrative command prompt unless VirtualBox is running as Administrator)
- Use the VBoxManage.exe application to set the new size in MB
Here is an example resizing to ~70gb.
1 |
<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.
1 |
<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> |
Pingback: Resize .vdi Virtualbox file in Windows | CCG TechBlog