Skip to content

Increase VDI Disk size in Virtualbox 5.1 using VBoxManage

I had to increase disk size on a Windows 10 VM. They way to do this is to resize the VDI file.
First turn off the VM. Then open Terminal and run the following commands to show the current disk size and then change it with VBoxManage.

Check the disk space has changed after running the command with showmediuminfo

VBoxManage showmediuminfo "/home/iq/VirtualBox VMs/Win10Ent-CU/Win10Ent-CU.vdi"
VBoxManage modifymedium disk "/home/iq/VirtualBox VMs/Win10Ent-CU/Win10Ent-CU.vdi" --resize 26000

Once this is complete start the VM and run the disk Cmdlet to extend the partition:
Resize-Partition -DiskNumber 0 -PartitionNumber 2 -size 30930894848 -Verbose


Please follow and like us:

Comments are closed.

Scroll Up