Page 1 of 1

[Solved] Resize VDI (VBoxManage)

Posted: 22. Aug 2017, 11:00
by gibra
I tried to expand a dynamics VDI file of 32GB size to 64GB using VBoxManage command-line. This are my steps :
1) Open Prompt Dos session (with run as administrator)
2) Navigate to C:\Program Files\Oracle\VirtualBox folder (I use latest VirtualBox 5.1.26 version)
3) launch VBoxManage with this statement:

Code: Select all

C:\Program Files\Oracle\VirtualBox>vboxmanage modifymedium "C:\VirtualBox VMs\Windows 10-1703-en\Windows 10-1703-en.vdi" --resize 64
But I receive this error:

Code: Select all

0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize medium operation for this format is not implemented yet!
The help file, on the the [--resize x] option says:
This currently works only for VDI and VHD formats, and only for the dynamically allocated variants, and can only be used to expand (not shrink) the capacity.

Then, why I get this error?
How to expand my VDI?

Thank!

Re: Resize VDI (VBoxManage)

Posted: 22. Aug 2017, 11:05
by socratis
gibra wrote:a dynamics VDI file of 32GB size to 64GB
Usage:

VBoxManage modifymedium     [disk|dvd|floppy] <uuid|filename>
                            [--type normal|writethrough|immutable|shareable|
                                    readonly|multiattach]
                            [--autoreset on|off]
                            [--property <name=[value]>]
                            [--compact]
                            [--resize <megabytes>|--resizebyte <bytes>]
                            [--move <path>]
You're using the wrong number. Try with 65536.

Re: Resize VDI (VBoxManage)

Posted: 22. Aug 2017, 11:57
by gibra
Damn, I'm stupid!!! :(
Now it worked.

Thank you !!! :D

Re: [Solved] Resize VDI (VBoxManage)

Posted: 22. Aug 2017, 12:03
by socratis
gibra wrote:Damn, I'm stupid!!! :(
Don't worry, and welcome to the reunion! ;)
Marking as [Solved].