[Invalid] VBoxManage modifyhd resize problem

Postings relating to old VirtualBox pre-releases
Post Reply
RockT
Posts: 18
Joined: 15. Aug 2012, 08:15
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: RHEL, Win7

[Invalid] VBoxManage modifyhd resize problem

Post by RockT »

Hi,
hope I'm not doing anything wrong - I think this is a regression in V5 Beta2:

dynamic disk:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe showhdinfo D:\VBoxVMs\CentOS7-64\CentOS7-64.vdi
UUID:           d9115b50-fd3f-4efc-81a6-b2e352b8c4c1
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       D:\VBoxVMs\CentOS7-64\CentOS7-64.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       51200 MBytes
Size on disk:   51079 MBytes
Encryption:     disabled
In use by VMs:  CentOS7-64 (UUID: d334e003-2bf0-4e47-83fe-61d9e47a251e)
trying to resize:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifymedium disk D:\VBoxVMs\CentOS7-64\CentOS7-64.vdi --res
ize 10240
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize medium operation for this format is not implemented yet!
Btw the modifyhd command is missing from cmdline help.

Thx
Rainer
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VBoxManage modifyhd resize problem

Post by mpack »

See the syntax description in the user manual.

In particular, the size argument should be the new total size of the disk, not the additional size. In your case the disk is already 51200MB, so thank your lucky stars that the software didn't make the disk 10240MB like you asked (i.e. discard 80% of the data currently on the disk).

So no, this is not a regression in v5.
RockT
Posts: 18
Joined: 15. Aug 2012, 08:15
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: RHEL, Win7

Re: VBoxManage modifyhd resize problem

Post by RockT »

You are right, it works as expected. Sorry for the noise.
Post Reply