How to pass through NVMe on a PCIe card?

Klaus_K

New Member
Sep 6, 2022
10
1
3
Hi, I'm totally new to Proxmox so please accept my apologies if this is a a dumb question. I have successfully installed Proxmox 7.1-7 and want to configure an NVMe on a PCIE card so that this is passed through to the VM. As with my other post, I see this topic has a dedicated tag defined in this forum, but I can't find any useful posts - apologies if I'm missing the obvious. I understand that Proxmox favours command line configuration, and have SSH access to the host, but that's about it.
 
On the command line enter lspci and look for your nvme card.
That is the PCI device that you give to the machine in the hardware tab.
 
Hope this isn't too painful for you :-(

When I type:

lspci | grep -i nvm

I get nothing, even though the nvm 'disk' was shown as one of the potential install targets when I installed Proxmox. However, when I type:

blkid | grep -i nvm

I get the following:

/dev/nvme0n1p2: UUID="35A3-5357" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="05875f3b-272d-4877-9d1d-042fd9eaab0c" /dev/nvme0n1p3: UUID="g2bclS-BBaC-O5Pf-HwSu-vAiv-v8z0-ypatjp" TYPE="LVM2_member" PARTUUID="99a9bdb6-b97d-4b74-bd44-ffeb05c4fda5" /dev/nvme0n1p1: PARTUUID="d0b01cf9-1b33-402e-b459-51e6a174449c"

So it does seem to be 'there' in some sense.
 
The second one isn't of any help.
The controller probably is named differently, so you have to search thoroughly, without any greps.
 
OK, I went to the Hardware tab and went through the steps to add a new PCI device. This listed several options, amongst which I spotted the Kingston Technologies device, which I believe corresponds to the NVMe (see attached image). I also got an error (warning?) about no IOMMU being detected. From what I read it seems that this is essential and is something I enable from the BIOS screen. Is this correct?
 

Attachments

  • Screenshot 2022-09-07 at 14.14.41.png
    Screenshot 2022-09-07 at 14.14.41.png
    266.6 KB · Views: 73

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!