Manage VBOX Files

From MPSWiki
Jump to: navigation, search

To compact VBOX disk

Run following commands:

  1. cd "C:\Program Files\Oracle\VirtualBox"
  2. VBoxManage.exe list hdds


which will result in the output like

UUID:           15e996bf-46f1-4e6f-86ca-b0b6728a2f7a
Parent UUID:    base
State:          locked write
Type:           normal (base)
Location:       E:\\THOSTERX24.vdi
Storage format: VDI
Capacity:       512000 MBytes
Encryption:     disabled

UUID:           315e771f-b3bf-4443-85b8-63e0c16d9d38
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       D:\\THOSTERX23.vdi
Storage format: VDI
Capacity:       512000 MBytes
Encryption:     disabled

Select UUID of the disk, from example above: 315e771f-b3bf-4443-85b8-63e0c16d9d38

VBoxManage.exe modifymedium disk "315e771f-b3bf-4443-85b8-63e0c16d9d38" --compact