Using physical disk in VirtualBox


In Windows, open Disk Management. You'll see the associated drive numbers on the left and will identify them later as PhysicalDrive0, PhysicalDrive1, etc.

cd C:\Program Files\Oracle\VirtualBox
VBoxManage internalcommands createrawvmdk -filename C:\box\hdd\ssd_500_v3.vmdk -rawdisk \\.\PhysicalDrive2

Now you can attach the VMDK to your VM. To do so, open the VirtualBox GUI, select the desired VM, click Settings, click Storage, click Add Hard Disk button, select Choose existing drive, and then select the VMDK file you just created.