Hello,
I'm trying to figure out which if my onboard NICs corresponds to which PCI device so I can pass one through to a Truenas VM. I have four onboard NICs that each appear to have their own IOMMU group. I can't seem to figure out which NIC is which PCI device, as I'm not sure where else to look. Is there another command I can use to find this information?
Thanks!
I'm trying to figure out which if my onboard NICs corresponds to which PCI device so I can pass one through to a Truenas VM. I have four onboard NICs that each appear to have their own IOMMU group. I can't seem to figure out which NIC is which PCI device, as I'm not sure where else to look. Is there another command I can use to find this information?
Code:
root@pve-homelab:~# lspci -nn | grep Ethernet
06:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
07:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
0a:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
0b:00.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit Network Connection [8086:10d3]
Code:
root@pve-homelab:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/21/devices/0000:06:00.0
/sys/kernel/iommu_groups/22/devices/0000:07:00.0
/sys/kernel/iommu_groups/24/devices/0000:0a:00.0
/sys/kernel/iommu_groups/25/devices/0000:0b:00.0
Code:
root@pve-homelab:~# ip addr
2: enp6s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether d0:50:99:c1:81:1d brd ff:ff:ff:ff:ff:ff
3: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether d0:50:99:c1:81:1b brd ff:ff:ff:ff:ff:ff
4: enp10s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether d0:50:99:c1:81:1e brd ff:ff:ff:ff:ff:ff
5: enp11s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether d0:50:99:c1:81:1c brd ff:ff:ff:ff:ff:ff
Thanks!