VirtualBox

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#17283 closed enhancement (fixed)

VBoxManage throws an undescriptive error when trying to resize a VDI downwards

Reported by: r3muxd Owned by:
Component: other Version: VirtualBox 5.2.0
Keywords: command-line VBoxManage Cc:
Guest type: all Host type: all

Description

Bug: When trying to resize a VDI to a size smaller than its current size, VBoxManage throws the following error:

"Progress state: VBOX_E_NOT_SUPPORTED VBoxManage.exe: error: Resize medium operation for this format is not implemented yet!"

This error doesn't actually tell you the VDI is too big of a size for this operation. What's worse, trying to resize a fixed VDI or an actual unsupported file format throws the same error, so you have to guess.

How to reproduce:

Create a VDI

Run the command "VBoxManage modifyhd <nameofvdi> --resize <size>", where <size> is smaller than the size of the VDI and <nameofvdi> is the name of the VDI.

Fix:

Change the error message to read "Resize medium operation for this VDI is too small a size!" or something to that sort.

Change History (5)

comment:1 by palminha, 5 years ago

I'm having the same problem with Windows guest 5.2.22

I'm not able to shrink the VDI file and i can't understand why.

comment:2 by palminha, 5 years ago

I've looked at #9103 but in my case i already deleted all the snapshot. So i'm probably falling in a different case

in reply to:  1 comment:3 by Socratis, 5 years ago

Replying to palminha:

I'm not able to shrink the VDI file and i can't understand why.

Because if you read the description of the ticket, it is known that you cannot shrink a VDI. It's not supported. Only enlargement is supported.

comment:4 by aolll.dev, 5 years ago

Resolution: fixed
Status: newclosed

implemented in VirtualBox 6.0 (current dev test build or later)

comment:5 by Socratis, 5 years ago

Nice aoll.dev!!!

$ VBoxManage modifyhd /Users/Shared/VirtualBox/Machines/Test/Test.vdi --resize 200
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Failed to resize medium
VBoxManage: error: Shrinking is not yet supported for medium '/Users/Shared/VirtualBox/Machines/Test/Test.vdi'
VBoxManage: error: Details: code VBOX_E_NOT_SUPPORTED (0x80bb0009), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleModifyMedium(HandlerArg *)" at line 768 of file VBoxManageDisk.cpp

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use