HDD/SSD/NVME passthrough on Proxmox VE PVE

  • Home
  • HDD/SSD/NVME passthrough on Proxmox VE PVE
HDD/SSD/NVME passthrough on Proxmox VE PVE
HDD/SSD/NVME passthrough on Proxmox VE PVE
HDD/SSD/NVME passthrough on Proxmox VE PVE
HDD/SSD/NVME passthrough on Proxmox VE PVE
HDD/SSD/NVME passthrough on Proxmox VE PVE

1. Install lshw on PVE

1.1 Bring up terminal from PVE directly or via SSH or by using “Shell” from PVE web gui

1.2 Enter following command to install lshw

apt install lshw

2. Check & note down details about physical disks we want to passthrough

2.1 Using following command

lshw -class disk -class storage

We should use disk by their ID rather than name (/dev/sda) which can change and will cause trouble

2.2 Use following command to list all physical disk IDs

ls -l /dev/disk/by-id/

2.3 Now we need to find the one that matches the “product” or “serial”

e.g.

….. /dev/disk/by-id/ata-xxxxxxxxx-xxxxx_xxx ……

or try

ls -al /dev/disk/by-id | grep SHdi1uhJ

3. Add the disk to VM

3.1 Bring up the terminal or shell for PVE host again

3.2 Execute following command

qm set 100 -sata2 /dev/disk/by-id/ata-xxxxxxxxx-xxxxx_xxx

Output :

update VM 100: -sata2 /dev/disk/by-id/ata-xxxxxxxxx-xxxxx_xxx

100: The VM id which can be found from PVE web gui (besides the VM’s name)

sata2: The virtual port number which the disk will be using to attach to VM

For example, in the following configuration, the disk is attached by using -sata2, if we want to attach another disk, we can use -sata3 or -sata4 or -sata5 etc….. you just have to watch out that the sata slots are available for the mount as shown below.

PVE – Hardware – scsi0

4. Check if the disk has attached successfully

grep SHdi1uhJ /etc/pve/qemu-server/100.conf

Output :

sata3: /dev/disk/by-id/ata-xxxxxxxxx-xxxxx_xxx, size=……

Note :

There are different Controller Types we can use, IDE (Slow), SCSI (Fast), SATA(Recomended) VirtIO Block (May get deprecated in the future)

In my case I have used SATA as it works for the DSM Project I am working on

Leave a Reply

Your email address will not be published. Required fields are marked *

Let’s Talk About How Can Help You Securely Advance

Get A Free Quote
HDD/SSD/NVME passthrough on Proxmox VE PVE
HDD/SSD/NVME passthrough on Proxmox VE PVE