Skip to content

Instantly share code, notes, and snippets.

@predam
Last active May 23, 2023 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save predam/c47238334a49cbf35eeca07655758238 to your computer and use it in GitHub Desktop.
Save predam/c47238334a49cbf35eeca07655758238 to your computer and use it in GitHub Desktop.
Proxmox disk passthrough to VM
  1. Check disk list

ls -la /dev/disk/by-id/

  1. Select disk id (ata)

ex ata-***

  1. Qm to VM

qm set <VM_ID> -name /dev/disk/by-id/ata-**

ex: qm set 102 -scsi2 /dev/disk/by-id/ata-ST2000DM008-2FR102_WFL57MKC

  • Note: name should be unique per disk
  1. Check QM config for VM

qm config <VM_ID>

More info about storage can be found in /etc/pve/storage.cfg

@shahram7
Copy link

Hi @predam ,
can you pass one SSD to two VM?
image
The VM101 is TrueNAS OS and i can find the ssd in /mnt/ but the VM110 is a Ubuntu 22.04.2 LTS machine., /mnt/ is empty and I am not able to find the ssd. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment