Locate the installation directory for VirtualBox, where an executable file is available for expansion: VBoxManage.exe
Start Command Window cmd in this directory
My VDI is: Windows 8.1.VDI, installed online saying: Vboxmanage modifyhd Windows 8.1.vdi--resize 25000 command to expand, but the results are:
parameter is not legal, because my VDI file name is: Windows 8.1.VDI, carefully can see there is a space in the middle, but in fact, I installed the Windows system has been so named, so call the above command is not feasible, So I tried to get rid of the middle space: vboxmanage modifyhd windows8.1.vdi--resize 25000, speculation is also wrong, but provides a solution to the idea:
Combination error I see the UUID of Windows 8.1.VDI and look at the following command format, so we can choose the UUID to specify our VDI file:
Opening the VirtualBox can see that the expansion is true:
But in the virtual machine Windows8.1 view, C: Disk does not expand capacity
At this point we need to finish the final work: use GParted to adjust the partition of the virtual machine. Download gparted:http://gparted.sourceforge.net/download.php
Use a virtual machine to start this ISO file:
After startup all choose the default (according to the online version), enter can be
The last card will not start here:
The problem arose, restarted several times, and ended up off the Internet: All startup options are default, and on the first page of the last restart, the second item is selected:
Mainly this two-step change, the subsequent configuring Console-data,language and so are the default items, then you can enter the GParted interface, select the disk to expand, right-click->resize/move, Then drag the scroll bar to adjust the capacity.
Finally, choose Apply:
Finally the normal shutdown, in the selection back to the original operating system can:
When Windows starts, turn on my computer and you'll see C: really finished expanding.
VirtualBox Virtual Disk VDI file expansion method