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..

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...
after a reboot my vm in hyper-v stopped booting today.  was after a server 2025 update.  all my other vms boot fine though.  annoying

Really Hyper-V has never been interested in creating compatibility with freeBSD. Hyper-V for tinkering is fine, but that is the reason it is hardly ever in my experience used in industry.
Don't bother with Hyper-v for anything but clicking around to learn some concepts. But you might as well learn with something you can use and rely on. Proxmox, Xen, etc. Even VirtualBox will be better for this.

June 03, 2025, 06:23:04 AM #7 Last Edit: June 03, 2025, 06:25:53 AM by bandit8623
Quote from: cookiemonster on June 02, 2025, 11:04:13 AMReally Hyper-V has never been interested in creating compatibility with freeBSD. Hyper-V for tinkering is fine, but that is the reason it is hardly ever in my experience used in industry.
Don't bother with Hyper-v for anything but clicking around to learn some concepts. But you might as well learn with something you can use and rely on. Proxmox, Xen, etc. Even VirtualBox will be better for this.

proxmox doesnt support hardware raid which is still faster. i just loaded up my 2nd baremetal system for opnsense.   btw hyper-v was working fine for 6 months.  most likely a server 25 update.  what i get for using latest greatest :)  some things proxmox is still not as good for though