'Mapped' PCI-passthrough only partially working

Cheffabbio

New Member
Jun 4, 2023
13
1
3
Dears,
In my homelab, on an old IBM server machine (x3650 M4), I need to passthrough a) HBA card b) an additional (mezzanine PCI) 10GB NIC to a TrueNAS VM.
My intention is to use the 'mapping resources' option under the Cluster management page, to have something neat.

I successfully passed-through the HBA card to my VM, however when I try do do the same with the NIC I have the following error in the GUI: "Parameter verification failed. (400) id: invalid format", no matter if I select the parent HW group or the single ETH ports (NIC has 2 ports), also noting that the 2 ports belong to 2 different IOMMU groups.

I understand that this GUI error is kinda generic, so I was wondering if is it possible to do it by CLI, or in case you had other suggestions.
Yes, I can always add the NIC (with both ports, via the "all functions" flag I assume) in the VM using the 'raw' mode, however it'd be nice to do it via the mapped resources approach.

Thanks in advance.
Cheers
Fabbio.
 
I successfully passed-through the HBA card to my VM, however when I try do do the same with the NIC I have the following error in the GUI: "Parameter verification failed. (400) id: invalid format", no matter if I select the parent HW group or the single ETH ports (NIC has 2 ports), also noting that the 2 ports belong to 2 different IOMMU groups.

I understand that this GUI error is kinda generic, so I was wondering if is it possible to do it by CLI, or in case you had other suggestions.
can you open the dev console in the browser, and under the network tab show us what the browser is sending to the server? (the request)
with that we should be able to see what the client is trying to send what tripping up the backend

also you can use 'pvesh' to create a mapping on the cli, like it's described in the docs: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#resource_mapping

EDIT: just took another look at the error message:

Parameter verification failed. (400) id: invalid format

it seems you maybe have some unusual characters in the mapping 'name' ?
 
Last edited:
can you open the dev console in the browser, and under the network tab show us what the browser is sending to the server? (the request)
with that we should be able to see what the client is trying to send what tripping up the backend

also you can use 'pvesh' to create a mapping on the cli, like it's described in the docs: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#resource_mapping

EDIT: just took another look at the error message:



it seems you maybe have some unusual characters in the mapping 'name' ?

Thanks Dominik for your reply!

  • First, some 'extended' lspci

Code:
for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done |grep Ethernet
IOMMU group 37 0c:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
IOMMU group 38 0c:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)

  • Then a screenshot from the GUI:

Screenshot 2024-04-11 at 00.09.31.png

  • Finally the browser dev console output (I hope I captured what was needed)
Screenshot 2024-04-11 at 00.27.00.png

Thanks
Cheers
 
mhmm.. this looks normal and it should work. at least i can't see anything wrong with it...

does it only fail for this device? or any others? maybe there is some pattern that we can determine?
 

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!