Compact the VDI disk

cd /d "C:\Program Files\Oracle\VirtualBox"

To list the VM’s details run:

VBoxManage.exe list -l vms


Name:            RHINO W2012R2


SATA (0, 0): D:\VirtualBoxVMs\RHINO W2012R2\Snapshots/{57f6550e-f818-4bcd-9d46-9b99ef168e5f}.vdi (UUID: 57f6550e-f818-4bcd-9d46-9b99ef168e5f)


Name:            JACK W2012R2


SATA (0, 0): D:\VirtualBoxVMs\JACK W2012R2\Snapshots/{426e12f0-968a-4756-af0b-85f5bc22d466}.vdi (UUID: 426e12f0-968a-4756-af0b-85f5bc22d466)


To compact the VDI disk run:

in case of RHINO VM

VBoxManage.exe    modifyvdi        57f6550e-f818-4bcd-9d46-9b99ef168e5f   compact

in case of JACK VM

VBoxManage.exe    modifyvdi     426e12f0-968a-4756-af0b-85f5bc22d466  compact

Resize the VDI disk

  1. Remove any VirtualBox snapshots
  2. Provide the new size for the disk !!!
VBoxManage.exe modifyhd        "d:\VirtualBoxVMs\RHINO W2012R2\W2012R2.vdi" --resize 51200

Then expand the disk using Disk Management from inside the guest.

This entry was posted in tools and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s