trying to add USB PCIE card in a PCIEX slot to an Ubuntu VM

Joined
Mar 5, 2022
Messages
224
I have an Ubuntu VM in my TrueNAS server
I have a PCIE 4-port USB card that is in a PCIEX slot (supposedly compatible - at least there is no smoke yet :-/ ).
I am trying to add the card to the VM via the web GUI.
I selected PCI passthru device, but there are none to select from.

Code:
dmesg | grep -e DMAR -e IOMMU


returns nothing....

Am I missing something?
 
Last edited:
Joined
Mar 5, 2022
Messages
224
So I have several issues going on. The first is that the (*&#^% card doesn't even work. When I boot with the keyboard in a motherboard USB port, it is not recognized with the board in the slot.
Next, IOMMU was not turned on in BIOS.

So, returning the board and turning on IOMMU. More to come...
 
Last edited:
Joined
Mar 5, 2022
Messages
224
I'm baaaaack, this time with a working card and a response from dmesg:

Code:
phong% dmesg | grep -e DMAR -e IOMMU
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
ivhd0: <AMD-Vi/IOMMU ivhd> on acpi0


Unfortunately the card still does not show up in the list of PCI Passthrough Devices...

suggestions?
 
Joined
Mar 5, 2022
Messages
224
This has really got me stumped... My goal is to add a modem so that I can fax (not often, but there are enough die-hard companies and individuals out there) from my Ubuntu vm from anywhere we travel.

Any help or suggestions would be greatly appreciated
 
Joined
Mar 5, 2022
Messages
224
*Bump*
 
Joined
Mar 5, 2022
Messages
224
So now,
Code:
dmesg | grep -e DMAR -e IOMMU

returns NOTHING?!?!? It was working the other day! The keyboard connected to the PCIE card is working and I haven't done anything to the BIOS
 
Joined
Mar 5, 2022
Messages
224
any suggestions?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399

Basically, you need to create a loader tunable pptdevs with the value x/y/z of the PCI address of the card you want to present to the VM, and then reboot. This tells TrueNAS not to initialize this PCI device on the next boot, but to make it available for VMs.
 
Top