[SOLVED] "raw partition" access vmdk - VBOX_E_IPRT_ERROR
Posted: 10. Apr 2013, 05:00
Hello VBox experts!
I'm fairly familiar with VirtualBox on a Linux host, however this is my first time using it on a Windows host. I have the following partition setup:

Basically, the first 3 partitions are of type "NTFS" (for Windows), and the last partition (5) [on the logical partition 4], is intended as my "raw partition" for my guest OS.
So, I have read the documentation (like any good user should): http://www.virtualbox.org/manual/ch09.html#rawdisk
I have learned that the GUI does not support the managing of "raw disks", and we have to use the VBoxManage utility.
Now, I list the partitions as VBoxManage knows them:
And, create my vmdk file as follows:
It creates without error:

I looked in the manual, to try with the command line VBoxManage utility, and the same error is presented:
NOTES:
* Done as much googling as I can. I re-ran all of the above, by executing "cmd.exe" as Administrator, AND VirtualBox as Administrator...
* The "Partition5" is a RAW DISK -- I haven't tried initializing it as NTFS ... because I thought the point was to use an unformatted partition for performance gains. (i.e. the guest doesn't have to go through the host filesystem...)
Anyone have any other ideas I can try?
I'm fairly familiar with VirtualBox on a Linux host, however this is my first time using it on a Windows host. I have the following partition setup:

Basically, the first 3 partitions are of type "NTFS" (for Windows), and the last partition (5) [on the logical partition 4], is intended as my "raw partition" for my guest OS.
So, I have read the documentation (like any good user should): http://www.virtualbox.org/manual/ch09.html#rawdisk
I have learned that the GUI does not support the managing of "raw disks", and we have to use the VBoxManage utility.
Now, I list the partitions as VBoxManage knows them:
Code: Select all
C:\Program Files\Oracle\VirtualBox> VBoxManage.exe internalcommands listpartitions -rawdisk \\.\PhysicalDrive0
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x07 0 /32 /33 12 /223/19 100 2048
2 0x07 12 /223/20 1023/254/63 61339 206848
3 0x07 1023/254/63 1023/254/63 307200 125829120
5 0x06 1023/254/63 1023/254/63 119639 754976768Code: Select all
C:\Program Files\Oracle\VirtualBox> VBoxManage.exe internalcommands createrawvmdk -filename "D:\Virtual Machines\fermmy-ubuntu\virtual_disk.vmdk" -rawdisk \\.\PhysicalDrive0 -partitions 5Yet, when I attempt to add it in the GUI, it yields:RAW host disk access VMDK file D:\Virtual Machines\fermmy-ubuntu\virtual_disk.vmdk created successfully.

I looked in the manual, to try with the command line VBoxManage utility, and the same error is presented:
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage storageattach fermmy-ubuntu --storagectl "SATA" --port 0 --device 0 --type hdd --medium "D:\Virtual Machines\fermmy-ubuntu\virtual_disk-pt.vmdk"
VBoxManage.exe: error: Could not get the storage format of the medium 'D:\Virtual Machines\fermmy-ubuntu\virtual_disk-pt.vmdk' (VERR_NOT_SUPPORTED)
VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component Medium, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
VBoxManage.exe: error: Invalid UUID or filename "D:\Virtual Machines\fermmy-ubuntu\virtual_disk-pt.vmdk"* Done as much googling as I can. I re-ran all of the above, by executing "cmd.exe" as Administrator, AND VirtualBox as Administrator...
* The "Partition5" is a RAW DISK -- I haven't tried initializing it as NTFS ... because I thought the point was to use an unformatted partition for performance gains. (i.e. the guest doesn't have to go through the host filesystem...)
Anyone have any other ideas I can try?
