[Solved] unable to shrink dynamic vdi file virtual size
Posted: 6. Dec 2020, 19:31
I just tried to shrink a dynamic vdi's virtual size file from 98gb to 50, but got a strange error;
This is the information about the vdi;
isn't it possible to change the "max" size if the real size is smaller than the new size, or am I just having a meltdown?
Code: Select all
T:\Torris>VBoxManage modifyhd Torris.vdi --resize 50000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Failed to resize medium
VBoxManage.exe: error: Shrinking is not yet supported for medium 'T:\Torris\Torris.vdi'
VBoxManage.exe: error: Details: code VBOX_E_NOT_SUPPORTED (0x80bb0009), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleModifyMedium(struct HandlerArg *)" at line 816 of file VBoxManageDisk.cppCode: Select all
UUID: b0646904-5d7d-48f6-99b2-3ab1f7ac05b5
Parent UUID: base
State: created
Type: normal (base)
Location: T:\Torris\Torris.vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 100352 MBytes
Size on disk: 22838 MBytes
Encryption: disabled
Property: AllocationBlockSize=1048576