Using physical disk in Oracle VirtualBox

Here is how you can use your local physical disk in Oracle VirtualBox virtual machine:

Now open the CLI of your OS. If you’re using Windows Open cmd in elevated mode. You will also need to go to the root of the VirtualBox directory.

Creating the Virtual Hard Drive

Run the command to create the virtual hard drive file that points to your desired physical drive. For each of the following examples ensure that you replace the # with your desired drive number.

You will be presented with the success message: (In my case) “RAW host disk access VMDK file c:\folder\USB.vmdk created successfully.”

This VMDK will be a very small file that simply points to your physical drive. Now you can attach the VMDK to your VM. To do so, open the VirtualBox GUI (run in elevated mode), 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.

You may need to take the disk offline in order to boot the VM from the physical drive you defined when creating the VMDK file. Note that if the USB devie is recognized as a removable media, you fill not be able to take it offline.