.vmdk physical hard disk doesn't work anymore

Discussions related to using VirtualBox on Windows hosts.
Post Reply
ecccc3
Posts: 20
Joined: 1. Aug 2022, 03:02

.vmdk physical hard disk doesn't work anymore

Post by ecccc3 »

Hi

For access to entire physical hard disk with these new command lines ( before it was viewtopic.php?f=6&t=106689&p=521794#p521794 ) in the Windows 11 Command Prompt ;

cd C:\Program Files\Oracle\VirtualBox
VBoxManage createmedium disk --filename "C:\Users\0\VirtualBox VMs\0\0.vmdk" --format=VMDK --variant RawDisk --property RawDrive=\\.\PhysicalDrive0

the 0.vmdk's virtual size is 0 B ... and so in a Debian live guest too , that I can't mount .
Screenshot 2022-10-31 204654.png
Screenshot 2022-10-31 204654.png (80.28 KiB) Viewed 6590 times
Screenshot 2022-10-31 204547.png
Screenshot 2022-10-31 204547.png (37.72 KiB) Viewed 6590 times
Screenshot 2022-10-31 204456.png
Screenshot 2022-10-31 204456.png (78.98 KiB) Viewed 6590 times
It is a bug ? Should I create a new bug ticket ?

Same for access to Individual physical hard disk partition :

cd C:\Program Files\Oracle\VirtualBox
VBoxManage createmedium disk --filename "C:\Users\0\VirtualBox VMs\0\1.vmdk" --format=VMDK --variant RawDisk --property RawDrive=\\.\PhysicalDrive0 --property Partitions=8

etc .

Before ( with VirtualBox 6.1.36 I think ) I was able to read with e.g. a Debian live guest and ( once ) write with a Debian installer guest the hard disk .

Thanks .
granada29
Volunteer
Posts: 708
Joined: 3. Mar 2015, 07:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS, Windows

Re: .vmdk physical hard disk doesn't work anymore

Post by granada29 »

I filed a bug report for this several weeks ago: https://www.virtualbox.org/ticket/21125

You could add your findings to this ticket.

The devs replied on the bug so hopefully fixed in the next release of VirtualBox 7:
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.
Post Reply