VirtualBox

Opened 8 years ago

Closed 8 years ago

#15601 closed defect (fixed)

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

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 (4)

comment:1 by Socratis, 8 years ago

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 by aeichner, 8 years ago

Summary: VBoxManage creates corrupted VHD with fixed sizeVBoxManage 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 by Socratis, 8 years ago

Confirmed fixed as of r108857.

comment:4 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

Fixed in 5.1.2.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use