diff --git a/Linux/Proxmox/passthroughHDD.md b/Linux/Proxmox/passthroughHDD.md new file mode 100644 index 0000000..8b22636 --- /dev/null +++ b/Linux/Proxmox/passthroughHDD.md @@ -0,0 +1,10 @@ +# Commands to passthrough HDD/SSD to VM + + +```bash +# 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 (592 is the ID of the VM) +qm set 41002 -scsi1 /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_JEKEYDEZ +``` \ No newline at end of file