How to add or passing through a physical drive to VM in Proxmox

 I have a Open Media Vault file server hosted on Proxmox VM to share across the printer scan data and also to share files between all of my network attached windows pc's. 

I found this solution works fine:

First you need to find out your disk you wants to share or pass through: 

  • In my Proxmox PVE > Disks > /dev/sdb


And you also need your Proxmox VM ID where you wants to add the disk:
  • In my Proxmox VM ID - 115

Now we need to find out the disk SCSI ID (in my case it is not SCSI ID):
  • Go to shell and enter below command
  • ls -n /dev/disk/by-id/
  • My disk ID - wwn-0x50014ee214065158

Now you need to pass through the disk as you got the SCSI ID and your VM ID:
  • Here is the command (you need to modify) -/sbin/qm set [VM-ID] -virtio2 /dev/disk/by-id/[DISK-ID]
  • /sbin/qm set 115 -virtio2 /dev/disk/by-id/wwn-0x50014ee214065158
But before entering the command let's see if we have any attached alternative disk with our VM:


Nothing is there, now let's start adding the disk by putting the command:

  • /sbin/qm set 115 -virtio2 /dev/disk/by-id/wwn-0x50014ee214065158
  • Boom - It's added - see the image

  • Hope this will help me again and also people who need help in the similar will be found as helpful.


     


     







       

      Comments