VirtualBox

Ticket #21125 (closed defect: fixed)

Opened 7 weeks ago

Last modified 12 days ago

RawDisk is creating an invalid .vmdk file => fixed in svn/7.0.x x>2

Reported by: granada29 Owned by: paulson
Component: virtual disk Version: VirtualBox 7.0.0
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

Previously discussed in  https://forums.virtualbox.org/viewtopic.php?f=15&t=106934

VirtualBox 6.1.x creates a working .vmdk for this disk.

Is it possible that the disk sector size of 512Bytes is causing problems?

VBoxManage list hostdrives
Drive:       /dev/disk7
Model:       "ST2000DM 006-2DM164"
UUID:        b79360f1-e7c7-4194-b6a5-421662d648e7
Size:        1.8TiB
Sector Size: 512 bytes
Scheme:      GPT
Partitions:
##  Type       Uuid                                   Size      Start   Active Name
 1  EFI        6d60184c-7cd2-4c8f-8cae-4cc11b4614d3  200.0MiB   20.0KiB  off   EFI System Partition
 2  AppleAPFS  deb68258-920f-43fc-a62b-baba4f4eca06  279.3GiB  200.0MiB  off   
 3  LinuxData  b9b1aad8-088c-46e4-a60f-2add43cb5a5f    1.5TiB  279.5GiB  off   
 4  LinuxSwap  66701cbd-503f-4792-9b96-0e35f28e9dfd   29.8GiB    1.7TiB  off
12:02:51.516 /usr/local/bin/VBoxManage createmedium disk --filename /Volumes/VirtualBox/Virtualbox/Linux/LinuxRawPartition/LinuxRawPartition.vmdk --format=VMDK --variant RawDisk --property RawDrive=/dev/disk7 --property Partitions=1,3,4
12:02:51.825 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
12:02:51.825 Medium created. UUID: 5f68b7c7-51ae-41ca-9364-4b7bc051365d
# Disk DescriptorFile
version=1
CID=cca3f05b
parentCID=ffffffff
createType="partitionedDevice"

# Extent description
RW 1 FLAT "LinuxRawPartition-pt.vmdk" 0
RW 39 FLAT "LinuxRawPartition-pt.vmdk" 1
RW 409600 FLAT "/dev/disk7s1" 0
RW 585937496 ZERO 
RW 3258181984 FLAT "/dev/disk7s3" 0
RW 62500008 FLAT "/dev/disk7s4" 0
RW 36028793111934840 ZERO 

# The disk Data Base 
#DDB

ddb.virtualHWVersion = "4"
ddb.adapterType="ide"
ddb.uuid.image="0beb4189-4182-48e6-9fe2-4f999c8eb860"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"

Attachments

VBox.log.zip Download (34.5 KB) - added by granada29 7 weeks ago.

Change History

Changed 7 weeks ago by granada29

comment:1 Changed 7 weeks ago by fth0

In the forum thread, the VMDK file had the following obviously wrong geometry settings (missing in the Description above):

ddb.geometry.cylinders="1"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"

Since the physical disk is larger than 8 GB, ddb.geometry.cylinders should be "16383". Additionally, the last extent specification is probably much too large (~18,000 TB ;)).

comment:2 Changed 6 weeks ago by granada29

Similar issues have been reported when creating a raw disk vmdk with 'VBoxManage createmedium' on Linux.

Discussion at  https://forums.virtualbox.org/viewtopic.php?f=7&t=107476

comment:3 Changed 6 weeks ago by paulson

  • Owner set to paulson
  • Status changed from new to assigned

Thanks for the report. The implementation of the functionality provided by 'VBoxManage createmedium disk --Variant Rawdisk ...' in VirtualBox 7.0.0 is incomplete as a small but key detail was overlooked. The root cause of this issue is known and a fix is in progress.

comment:5 Changed 3 weeks ago by granada29

Testing with VirtualBox 7.0.3 is successful for both full disk and partitioned VMDKs.

comment:6 Changed 12 days ago by galitsyn

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

VirtualBox 7.0.4 was just released and available for download at https://www.virtualbox.org/wiki/Downloads. This issue should be fixed in this version.

comment:7 Changed 12 days ago by paulson

  • Summary changed from RawDisk is creating an invalid .vmdk file to RawDisk is creating an invalid .vmdk file => fixed in svn/7.0.x x>2
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use