Failed to resize medium

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Zakes
Posts: 1
Joined: 15. Jan 2022, 17:26

Failed to resize medium

Post by Zakes »

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyhd "C:\Users\Regaogetswe Mashile\VirtualBox VMs\Ubuntu_PC\Ubuntu_PC.vdi" --resize 51200
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Failed to resize medium
VBoxManage.exe: error: Resizing to new size 53687091200 is not yet supported for medium 'C:\Users\Regaogetswe Mashile\VirtualBox VMs\Ubuntu_PC\Ubuntu_PC.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.cpp
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to resize medium

Post by mpack »

AFAIK, this is always user error.

The size provided (51200) must be larger than the existing disk - it is an absolute size (in MB), not an increment.

The VDI in question can't be a fixed size disk.

Say which of these two corresponds to your case and we can then offer solutions.

Or I can refer you to my previous answer from two weeks ago: viewtopic.php?f=6&t=104861.
Post Reply