#VirtualBox #DiskDrive #Passthrough #VirtualMachine
Full steps can be found at [ Ссылка ]
--------------------------------------------------------------------
Creating the Physical Disk VMDK
--------------------------------------------------------------------
01. Connect the physical disk to the host
02. Log into the VirtualBox host
03. Launch PowerShell as administrator
04. Run the following commands
# list physical disks
Get-PhysicalDisk
05. Take note of the disk number for the target disk to mount in VirtualBox
06. Continue with the following commands
# cd to the virtualbox installation directory
cd "$ENV:ProgramFiles\Oracle\VirtualBox"
# create a vmdk disk pointing to the target physical disk
# usage
# .\VBoxManage.exe internalcommands createrawvmdk -filename "≪%fullpathto.vmdk%≫" -rawdisk \\.\PhysicalDrive≪%disknumber%≫
.\VBoxManage.exe internalcommands createrawvmdk -filename "D:\VMs\SSD.vmdk" -rawdisk \\.\PhysicalDrive2
# launch virtualbox manager
.\VirtualBox.exe
--------------------------------------------------------------------
Attaching the Physical Disk to a Virtual Machine
--------------------------------------------------------------------
NOTE: If you don't run VirtualBox Manager as administrator you will get permissions errors trying to access the physical disk
01. Right click on the target VM ≫ Settings
02. Select Storage from the left navigation menu
03. Click the Add Hard disk icon
04. Click Add ≫ Browse to and select the .vmdk file created earlier
05. Scroll to the bottom of the listing and select the .vmdk ≫ Click Choose
06. Click OK to confirm the VM settings
07. Right click on the target VM ≫ Start
Documentation: [ Ссылка ]
### Connect with me and others ###
★ Discord: [ Ссылка ]
★ Reddit: [ Ссылка ]
★ Twitter: [ Ссылка ]
![](https://s2.save4k.ru/pic/t9L_gH0b5zw/maxresdefault.jpg)