Interfaces are added following step 2 of a guide in the OPNsense docs (https://docs.opnsense.org/manual/how-tos/lan_bridge.html).
What module would that be? Looking in either packages or plugins within OPNsense the only thing I can see related to KVM or Proxmox is the qemu-guest-agent plugin.My understanding is the virtio driver should be a part of the kernel. I guess that's the module you mean. I'll look into it.
Step 2 is definitely not enough. Frankly sounds like you missed steps 5/6 and everything is blocked on the bridge member interfaces.
- If you use one physical passthrough for both WAN and LAN, do they have VLANs configured and the breakout is done externally?
- Since you also use one virtio adapter, to which bridge and thus, to which other NIC on the Proxmox host is that connected? How is that connected to you switching topology (i.e. which VLAN)?
As to reach 10 gbps with it is a different matter.
I expect you will be able to solve the problem of connectivity at present. Many people use virtio successfully.
...All of my VMs use corresponding Virtio based network connectors and none of them have a problem reading the interfaces as being capable of 10Gbps, the problem appears to be within OPNsense not recognizing something about the Virtio connection....
# ifconfigvtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: LAN (lan) options=800a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,LINKSTATE> ether 52:54:00:54:29:36 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::5054:ff:fe54:2936%vtnet0 prefixlen 64 scopeid 0x1 media: Ethernet autoselect (10Gbase-T <full-duplex>) status: active nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>vtnet1: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: WAN_1 (wan) options=800a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,LINKSTATE> ether 52:54:00:51:5e:79 inet 192.168.111.168 netmask 0xffffff00 broadcast 192.168.111.255 inet6 fe80::5054:ff:fe51:5e79%vtnet1 prefixlen 64 scopeid 0x2 media: Ethernet autoselect (10Gbase-T <full-duplex>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
# ip a s vnet3451: vnet34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr2 state UNKNOWN group default qlen 1000 link/ether fe:54:00:54:29:36 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe54:2936/64 scope link proto kernel_ll valid_lft forever preferred_lft forever
# ethtool -I vnet34Settings for vnet34: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Auto-negotiation: off Port: Twisted Pair PHYAD: 0 Transceiver: internal MDI-X: Unknown Current message level: 0x00000000 (0) Link detected: yes
# ip a s vnet3552: vnet35: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr1 state UNKNOWN group default qlen 1000 link/ether fe:54:00:51:5e:79 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe51:5e79/64 scope link proto kernel_ll valid_lft forever preferred_lft forever
# ethtool -I vnet35Settings for vnet35: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Auto-negotiation: off Port: Twisted Pair PHYAD: 0 Transceiver: internal MDI-X: Unknown Current message level: 0x00000000 (0)
ethtool -s vnet34 speed 25000 duplex full autoneg on
# ethtool -I vnet34Settings for vnet34: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 25000Mb/s Duplex: Full Auto-negotiation: on Port: Twisted Pair PHYAD: 0 Transceiver: internal MDI-X: Unknown Current message level: 0x00000000 (0) Link detected: yes
# ifconfig vtnet0vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 description: LAN (lan) options=800a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,LINKSTATE> ether 52:54:00:54:29:36 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::5054:ff:fe54:2936%vtnet0 prefixlen 64 scopeid 0x1 media: Ethernet autoselect (10Gbase-T <full-duplex>) status: active nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
There's nothing wrong with OPNsense, it supports Virtio Networking and displays interface speeds by default. So fix, reconfigure, upgrade your Proxmox host, and OPNsense will follow
Starting system upgrade: apt-get dist-upgradeReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCalculating upgrade... DoneThe following packages were automatically installed and are no longer required: proxmox-kernel-6.5.13-5-pve-signed proxmox-kernel-6.8.4-2-pve-signed proxmox-kernel-6.8.4-3-pve-signed proxmox-kernel-6.8.8-1-pve-signedUse 'apt autoremove' to remove them.0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Your System is up-to-date
Your proxmox version is not the newest one:
root@X:~# pveversionpve-manager/8.2.4/faa83925c9641325 (running kernel: 6.8.8-4-pve)