Add Linux/Proxmox/passthroughHDD.md

This commit is contained in:
2023-12-05 19:41:19 +00:00
parent 37e9159ec7
commit fcfcc12c70

View File

@@ -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
```