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.

Quote from: bimbar on January 21, 2025, 01:23:48 PMSR-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.
Yes besides being able to snapshot.  passthrough snapshots are not going to work.

Hello bandit8623, did you find anything about how ixv drivers can be loaded on a hyper-v virtualized opnsense?
I'm having the same problem...

Quote from: pchealing on February 14, 2025, 04:11:44 PMHello bandit8623, did you find anything about how ixv drivers can be loaded on a hyper-v virtualized opnsense?
I'm having the same problem...
no sorry im passing through for now until i figure it out. sorry for delay on response i dont get email notifications on here for some reason..

passthrough working well just cant snapshot..