Files
Boilerplates/Linux/Proxmox/passthroughHDD.md

348 B

Commands to passthrough HDD/SSD to VM

# find the ID of the disk you want to passthrough
find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12

# add the physical disk to a VM (41002 is the ID of the VM)
qm set 41002 -scsi1 /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_JEKEYDEZ