virtualbox:
VBoxManage internalcommands createrawvmdk -filename "</path/to/file>.vmdk" -rawdisk /dev/disk#
VBoxManage storageattach "<vm_name>" --storagectl "IDE" --port 0 --device 0 --type hdd --medium "</path/to/file>.vmdk"
sudo chown arnaud /dev/disk#; sudo chmod 666 /dev/disk#; chmod 666 "</path/to/file>.vmdk"
vmware:
/Applications/VMware\ Fusion.app/Contents/Library/vmware-rawdiskCreator create /dev/disk# fullDevice "</path/to/file>" ide
mate "</path/to/file>.vmwarevm/<vm_name>.vmx"
firmware = "efi"
ide0:0.fileName = "usb-ext-hdd-6.vmdk"