VirtualBox

Opened 8 years ago

Closed 8 years ago

#16512 closed defect (fixed)

VBoxManage.exe: error: Error: Attempt to resize the medium

Reported by: Arnaud ALLAUZEN Owned by:
Component: virtual disk Version: VirtualBox 5.1.14
Keywords: Cc:
Guest type: Windows Host type: Windows

Description

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

Attachments (1)

snip_20170225154137.png (9.9 KB ) - added by Arnaud ALLAUZEN 8 years ago.

Download all attachments as: .zip

Change History (4)

by Arnaud ALLAUZEN, 8 years ago

Attachment: snip_20170225154137.png added

comment:1 by Socratis, 8 years ago

  1. Duplicate of #16311. Well sort of, the "resize the medium from 0.0 MB" was a regression after #16311 was fixed.
  2. It is fixed in the SVN in r65477 on 2017-27-01.
  3. According to the date of the fix, the latest test build should contain the fix.
  4. There is a workaround; use --resizebytes instead of --resize.

in reply to:  1 comment:2 by Arnaud ALLAUZEN, 8 years ago

Replying to socratis:

  1. Duplicate of #16311. Well sort of, the "resize the medium from 0.0 MB" was a regression after #16311 was fixed.
  2. It is fixed in the SVN in r65477 on 2017-27-01.
  3. According to the date of the fix, the latest test build should contain the fix.
  4. There is a workaround; use --resizebytes instead of --resize.

Ok, thank you

comment:3 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

And fixed in 5.1.16.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette