From fcfcc12c7006916c94568ab975c527338793be93 Mon Sep 17 00:00:00 2001 From: NiceDevil Date: Tue, 5 Dec 2023 19:41:19 +0000 Subject: [PATCH] Add Linux/Proxmox/passthroughHDD.md --- Linux/Proxmox/passthroughHDD.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Linux/Proxmox/passthroughHDD.md 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