1. Check the serial number of the hard disk, and select the serial number of the hard disk to be passed through
ls /dev/disk/by-id
2.qm set virtual machine id -sata2 /dev/disk/by-id/hard disk serial number
I chose to pass through three hard disks. The original virtual machine has sata, 0, and sata1, so the pass-through command is written sata2, sata3, sata4,
qm set 101 -sata2 /dev/disk/by-id/ata-DS42HKVS-78C4GY0_WD-WX42D52AYH3X
qm set 101 -sata3 /dev/disk/by-id/ata-DS42HKVS-78C4GY0_WD-WX42D62F1PJS
qm set 101 -sata4 /dev/disk/by-id/ata-WDC_WD5000LPVX-08V0TT5_WD-WXB1A84149AH