OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: bandit8623 on January 18, 2025, 10:40:13 PM

Title: Hyper-v and SR-IOV in OpnSense support?
Post by: bandit8623 on January 18, 2025, 10:40:13 PM
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.





Title: Re: Hyper-v and SR-IOV in OpnSense support?
Post by: bimbar on January 21, 2025, 01:23:48 PM
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.
Title: Re: Hyper-v and SR-IOV in OpnSense support?
Post by: bandit8623 on January 27, 2025, 05:07:45 AM
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.
Title: Re: Hyper-v and SR-IOV in OpnSense support?
Post by: pchealing on February 14, 2025, 04:11:44 PM
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...
Title: Re: Hyper-v and SR-IOV in OpnSense support?
Post by: bandit8623 on March 03, 2025, 01:14:51 AM
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..