Passing a Physical Disk Drive to a Proxmox VM
#ProxMox #VM #Hypervisor #DiskDrive
Full steps can be found at https://i12bretro.github.io/tutorials/0653.html
01. Log into ProxMox VE, either at the console or the web UI and launch the web shell
02. Take note of the VM ID that the physical hard disk will be connecting to
03. Run the following commands
# list hard disk devices and ids
lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR≫1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'
# copy the /dev/disk/by-id.... for the device to passthrough
# add the disk to the VM, update the VM ID as needed
# usage:
# qm set ≪%VM ID%≫ -≪%VIRTUAL DEVICE%≫ ≪%DEV DISK ID%≫
qm set 100 -scsi1 /dev/disk/by-id/scsi-360026b902ad1ae00293167790419d3f2
04. Stop the VM and Start it fresh for the new configuration change to take effect
05. Verify inside the guest OS that the physical disk is connected
Source: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro