VirtualBox

Ticket #15601 (closed defect: fixed)

Opened 13 months ago

Last modified 12 months ago

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

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

Description

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:

C:\Windows\system32>diskpart
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:
VBOX_E_IPRT_ERROR (0x80BB0005)
Component:
MediumWrap
Interface:
IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}
Callee:
IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}
Callee RC:
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

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 13 months 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  https://forums.virtualbox.org/viewtopic.php?f=6&t=78621

comment:2 Changed 13 months 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 12 months ago by socratis

Confirmed fixed as of r108857.

comment:4 Changed 12 months 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.

www.oracle.com
ContactPrivacy policyTerms of Use