Ticket #15601 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

VBoxManage creates corrupted VHD with fixed size => fixed in SVN/5.1.x

Reported by: schrotti12 Owned by:
Component: virtual disk Version: VirtualBox 5.1.0
Keywords: vboxmanage createmedium disk fixed Cc:
Guest type: all Host type: Windows


The following command is used to create a VHD Images for hosts:

VBoxManage createmedium disk --filename "%USERPROFILE%\MyVdisks\disk1.vhd" --size 8192 --format vhd --variant fixed

The VHD file is corrupted as shown in the following diskpart output:

Microsoft DiskPart version 10.0.10586
Copyright (C) 1999-2013 Microsoft Corporation.
On computer: S10
DISKPART> select vdisk file="C:\<actual path to vdisk>\disk1.vhd"
DiskPart has encountered an error: The file or directory is corrupted and unreadable.
See the System Event Log for more information.
There is no virtual disk selected.

Also if it is included into VirtualBox via GUI there are errors:

Could not get the storage format of the medium 'C:\<path to vdisks>\disk1.vhd' (VERR_NOT_SUPPORTED).
Result Code:
IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}
IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}
Callee RC:

If added via command line the VirtualBox Manager shows disk as dynamicaly resizeable instead of fixed size. Screenshots can be added if required.

Change History

comment:1 Changed 5 years ago by socratis

This is not a Windows only bug. For an initial discussion that led to creating this bug, please have a look at

comment:2 Changed 5 years ago by aeichner

  • Summary changed from VBoxManage creates corrupted VHD with fixed size to VBoxManage creates corrupted VHD with fixed size => fixed in SVN/5.1.x

Thanks for the report, this issue will be fixed in the next maintenance release. Only 5.1.0 is affected.

comment:3 Changed 5 years ago by socratis

Confirmed fixed as of r108857.

comment:4 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 5.1.2.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use