Proxmox Disk Passthrough

Mar 11, 2021

Check system status

lshw -class disk -class storage
  *-raid
       description: RAID bus controller
       product: MegaRAID SAS 2208 [Thunderbolt]
       vendor: LSI Logic / Symbios Logic
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: scsi0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: raid pm pciexpress vpd msi msix bus_master cap_list rom
       configuration: driver=megaraid_sas latency=0
       resources: irq:50 ioport:fc00(size=256) memory:ddffc000-ddffffff memory:ddf80000-ddfbffff memory:dd000000-dd01ffff
     *-disk:0
          description: SCSI Disk
          product: PERC H710
          vendor: DELL
          physical id: 2.0.0
          bus info: scsi@0:2.0.0
          logical name: /dev/sda
          version: 3.13
          serial: 00b73ee80867ebca27005451eae03f08
          size: 1862GiB (1999GB)
          capabilities: gpt-1.00 partitioned partitioned:gpt
          configuration: ansiversion=5 guid=b69eb98b-48e2-4963-b0dd-45c7898622a3 logicalsectorsize=512 sectorsize=512
     *-disk:1
          description: SCSI Disk
          product: PERC H710
          vendor: DELL
          physical id: 2.1.0
          bus info: scsi@0:2.1.0
          logical name: /dev/sdb
          version: 3.13
          serial: 001b21140d211bcb27005451eae03f08
          size: 7451GiB (8TB)
          configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512

List disks

ls /dev/disk/by-id/scsi-* -al
lrwxrwxrwx 1 root root  9 Feb 27 17:54 /dev/disk/by-id/scsi-36b083fe0ea51540027caeb6708e83eb7 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 27 17:54 /dev/disk/by-id/scsi-36b083fe0ea51540027caeb6708e83eb7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 27 17:54 /dev/disk/by-id/scsi-36b083fe0ea51540027caeb6708e83eb7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 27 17:54 /dev/disk/by-id/scsi-36b083fe0ea51540027caeb6708e83eb7-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Feb 27 18:26 /dev/disk/by-id/scsi-36b083fe0ea51540027cb1b210d14211b -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 27 18:26 /dev/disk/by-id/scsi-36b083fe0ea51540027cb1b210d14211b-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 27 18:26 /dev/disk/by-id/scsi-36b083fe0ea51540027cb1b210d14211b-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Feb 27 18:26 /dev/disk/by-id/scsi-36b083fe0ea51540027cb1b210d14211b-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  9 Feb 27 17:54 /dev/disk/by-id/scsi-36b083fe0ea51540027ccd1e20d81e6fc -> ../../sdc

Example

qm set 100 -sata3 /dev/disk/by-id/scsi-36b083fe0ea51540027ccd1e20d81e6fc

The maximum amount of SATAs is 6 (sata0 ~ sata5), therefore the seventh disk must be set as IDE.

qm set 100 -ide0 /dev/disk/by-id/scsi-36b083fe0ea51540027cd5eba0da6d270

[back]