[Solved] Resize VDI (VBoxManage)

This is for discussing general topics about how to use VirtualBox.
Post Reply
gibra
Posts: 8
Joined: 14. Jul 2015, 09:01
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win7/8/10

[Solved] Resize VDI (VBoxManage)

Post 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!
Last edited by socratis on 22. Aug 2017, 12:02, edited 1 time in total.
Reason: Marked as [Solved].
gibra
VBCorner
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Resize VDI (VBoxManage)

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
gibra
Posts: 8
Joined: 14. Jul 2015, 09:01
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win7/8/10

Re: Resize VDI (VBoxManage)

Post by gibra »

Damn, I'm stupid!!! :(
Now it worked.

Thank you !!! :D
gibra
VBCorner
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [Solved] Resize VDI (VBoxManage)

Post by socratis »

gibra wrote:Damn, I'm stupid!!! :(
Don't worry, and welcome to the reunion! ;)
Marking as [Solved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply