Update Linux/Proxmox/passthroughHDD.md

This commit is contained in:
2023-12-05 19:42:02 +00:00
parent fcfcc12c70
commit 739448bd85

View File

@@ -5,6 +5,6 @@
# find the ID of the disk you want to passthrough # 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 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) # 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 qm set 41002 -scsi1 /dev/disk/by-id/ata-WDC_WD100EFAX-68LHPN0_JEKEYDEZ
``` ```