[SOLVED] How to permanently mount an external drive to only one VM in Proxmox?

trinette.valle

New Member
Aug 20, 2025
2
0
1
I have an external drive connected to my Proxmox node. I would like it to be used permanently by only one Linux VM.
I don’t need it to be shared or visible by other VMs or nodes, just dedicated storage for this single VM.
Is this possible?
 
Yes, it’s possible. The solution is to use physical disk passthrough to the VM.
Instead of adding the drive as Proxmox storage, you can pass the whole disk directly to a VM.
The VM will then see it as if it were physically attached, and you can format and manage it entirely from inside the guest OS.

On your proxmox node, use lsblk to get the disk list by-id:

Code:
lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm'

and then you attach the disk using:
Code:
qm set <vm-id> -scsi2 /dev/disk/by-id/<id>

You can find the procedure on proxmox wiki post below
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)