Hyper-v and SR-IOV in OpnSense support?

Started by bandit8623, January 18, 2025, 10:40:13 PM

Previous topic - Next topic
January 18, 2025, 10:40:13 PM Last Edit: January 19, 2025, 12:25:25 AM by bandit8623
Hello,

I have been tinkering with virtualizing my opnsense setup.  using hyper-v i can pass through nic directly to vm and that works,  but wont be able to do snapshots and such.

So i tried to set up sr-iov by creating 2 sr-iov switches.  then i attached to my opnsense vm.   the vm sees the ports but doesnt install the proper driver. which in turn has hyper v tell me sr-iov not operational.


in opnsense it shows both ethernet interfaces as
dev.hn.0 Hyper-v network interface
dev.hn.1 Hyper-v network interface


if i look i can see this msg  ,for both nics
pci0: <network, ethernet> at device 2.0 (no driver attached)
pci1: <network, ethernet> at device 2.0 (no driver attached)

https://ibb.co/x556P5g

Anyone have any ideas how to get this to work?  is the ixv driver included with opnsense? maybe just needs to be enabled?

sriov works fine with other operating systems with driver support. in hyper-v manager sr-iov will show operational when driver inside vm supports.

https://www.intel.com/content/www/us/en/download/645984/intel-network-adapter-virtual-function-driver-for-pcie-10-gigabit-network-connections-under-freebsd.html

Thanks in advance.






SR-IOV should have the same impact on the VM functionality as passing through the card, so I'm not sure if that is going to help you.