[SOLVED] PCI passthrough device is visible in one vm but not another

oz1cw7yymn

Well-Known Member
Feb 13, 2019
90
12
48
I have a proxmox installation running sophos UTM using pci(e) passthrough for one of the two nics, the other nic is connected to vmbr0 and connected that way to the vm. It works without a problem and I can prevent proxmox from being exposed directly to the external network.

I wanted to try OPNSense so I installed it with the same pci(e) passthrough (having switched off the sophos vm).

info pci in monitor shows the pci device, but running the freeBSD command pciconf -lv doesn't find the device at all. Both VMs have the same BIOS (SeaBIOS) and machine type (q35). OPNSense is supposed to have the relevant realtek driver, but even if it hadn't, the device should show up in pciconf, right?

Any pointers?
 
From the OPNsense documentation:
Q35 chipset OPNsense on KVM currently does not work with the Q35 chipset. Virtio and other PCIe devices do not get detected properly. This is a FreeBSD/KVM related issue that is unspecific to OPNsense.
Try i440FX chipset instead of Q35.
 
Last edited:
That was it - thank you very much!

I just used Q35 to match the other machine and enable PCI express, but changing to i440fx allowed freeBSD to see the pci device. Note, the pci passthrough device has to be changed disable PCI-e before changing the machine type. If not, the vm doesn't start and its not possible to edit the PCI-e while the machine type is not q35. I changed the machine type back, disabled pci-e and changed again to i440fx.
 
  • Like
Reactions: Dunuin

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!