Using Windows XP host, I was unable to create a raw vmdk for my existing linux partition.
WinXP resides in \\.\PhysicalDrive?0 partition 1, and Linux resides in \\.\PhysicalDrive?1 partitions 1,5 (main, swap).
"VBoxManage.exe internalcommands listpartitions -rawdisk \\.\PhysicalDrive?1" output:
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x83 0 /1 /1 1023/254/63 14307 63
5 0x82 1023/254/63 1023/254/63 956 29302623
3 0x07 1023/0 /1 1023/254/63 289977 31262490
The command used to create the raw vmdk:
"VBoxManage.exe internalcommands createrawvmdk -filename c:\ubuntu1.vmdk -rawdisk \\.\PhysicalDrive?1 -partitions 1,5"
Output:
ERROR: VMDK: could not create new partition data file 'c:\ubuntu1-pt.vmdk'
Error code VERR_SHARING_VIOLATION at E:\vbox\1.5-w32-rel\src\VBox\Devices\Storag
e\VmdkHDDCore.cpp(2224) in function vmdkCreateImage
Error while creating the raw disk VMDK: VERR_SHARING_VIOLATION