Page 1 of 1
--resize crashes VHD disk
Posted: 14. Aug 2012, 17:15
by beremour
C:\var\ftp\vmdisk>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo DHDD01.vhd
UUID: f122cf56-de5a-43f2-bd86-bc7ad8934dee
Accessible: yes
Logical size: 1024 MBytes
Current size on disk: 0 MBytes
Type: normal (base)
Storage format: VHD
Format variant: dynamic default
Location: C:\var\ftp\vmdisk\DHDD01.vhd
C:\var\ftp\vmdisk>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd DHDD01.vhd --resize 2048
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
and now VHD-disk is crashed
C:\var\ftp\vmdisk>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo DHDD01.vhd
VBoxManage.exe: error: Could not get the storage format of the medium 'C:\var\ftp\vmdisk\DHDD01.vhd' (VERR_NOT
_SUPPORTED)
VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component Medium, interface IMedium, call
ee IUnknown
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMe
dium.asOutParam())" at line 210 of file VBoxManageDisk.cpp
Re: --resize crashes VHD disk
Posted: 14. Aug 2012, 17:32
by mpack
If the original size on disk of the VHD was 0MB then I'm not surprised you get a crash when you try to manipulate it. I'd want to take a closer look at whatever you have there.
Re: --resize crashes VHD disk
Posted: 15. Aug 2012, 06:31
by beremour
hm.. when filled it seems to be OK
C:\var\ftp\vmdisk>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo DHDD01.vhd
UUID: ec0c6712-a533-48da-beff-75cf5390a216
Accessible: yes
Logical size: 1024 MBytes
Current size on disk: 612 MBytes
Type: normal (base)
Storage format: VHD
Format variant: dynamic default
Location: C:\var\ftp\vmdisk\DHDD01.vhd
C:\var\ftp\vmdisk>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd DHDD01.vhd --resize 2048
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
C:\var\ftp\vmdisk>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo DHDD01.vhd
UUID: ec0c6712-a533-48da-beff-75cf5390a216
Accessible: yes
Logical size: 2048 MBytes
Current size on disk: 614 MBytes
Type: normal (base)
Storage format: VHD
Format variant: dynamic default
Location: C:\var\ftp\vmdisk\DHDD01.vhd
Re: --resize crashes VHD disk
Posted: 15. Aug 2012, 10:36
by mpack
It's a bug, but a trivial one - I don't know who would actually fall foul of this in real life (people generally resize when their existing disk is full, not when it's empty). Still, you could raise a
BugTracker ticket for it.
* BugTracker is a separate system, although you can use the same OSSO login you use here. On first login you'll be asked to choose a nickname for that site. It would make sense to use the same nickname as here.