﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
16512	VBoxManage.exe: error: Error: Attempt to resize the medium	Arnaud ALLAUZEN		"Dear Support team,

Am I using the wrong command to resize my vdi hard drive ?

Here is my vhd settings :
{{{
C:\Oracle\VirtualBox>VBoxManage.exe showhdinfo ""E:\VirtualBox VMs\Win10x64-APP-V-SEQ_1607\Win10x64-APP-V-SEQ.vdi""
UUID:           4d87fc51-2302-4162-bdd4-e97de1629094
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       E:\VirtualBox VMs\Win10x64-APP-V-SEQ_1607\Win10x64-APP-V-SEQ.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       20480 MBytes
Size on disk:   13560 MBytes
Encryption:     disabled
In use by VMs:  Win10x64-APP-V-SEQ_1607 (UUID: fb7fb8d4-0ddc-4ce2-8457-9a5462de2b1a)
}}}

And the error result with this cmd :
{{{
C:\Oracle\VirtualBox>VBoxManage.exe modifyhd ""E:\VirtualBox VMs\Win10x64-APP-V-SEQ_1607\Win10x64-APP-V-SEQ.vdi"" --resize 30000
VBoxManage.exe: error: Error: Attempt to resize the medium from 0.0 MB to 30000.0 MB. Use --resizebyte if this is intended!
}}}

Second comd test:
{{{
C:\Oracle\VirtualBox>VBoxManage.exe modifymedium ""E:\VirtualBox VMs\Win10x64-APP-V-SEQ_1607\Win10x64-APP-V-SEQ.vdi"" --resize 30000
VBoxManage.exe: error: Error: Attempt to resize the medium from 0.0 MB to 30000.0 MB. Use --resizebyte if this is intended!
}}}

Or
{{{
C:\Oracle\VirtualBox>VBoxManage.exe modifymedium disk ""E:\VirtualBox VMs\Win10x64-APP-V-SEQ_1607\Win10x64-APP-V-SEQ.vdi"" --resize 30000
VBoxManage.exe: error: Error: Attempt to resize the medium from 0.0 MB to 30000.0 MB. Use --resizebyte if this is intended!
}}}

My host is a windows 10 Enterprise x64 - Microsoft Windows [version 10.0.14393]
Interface graphique de VirtualBox Version 5.1.14 r112924 (Qt5.6.2)

If you have any idea, thanks for your help
best regards
Arnaud A"	defect	closed	virtual disk	VirtualBox 5.1.14	fixed			Windows	Windows
