Anyone running OPNsense in bhyve? Reboot hangs

Started by Patrick M. Hausen, August 10, 2023, 01:01:49 PM

Previous topic - Next topic
August 10, 2023, 01:01:49 PM Last Edit: August 10, 2023, 01:13:42 PM by Patrick M. Hausen
Hi all,

I just installed an OPNsense 23.7 in bhyve in a TrueNAS CORE 13.0-U5.3. 2 network interfaces via PCIe passthrough and generally everything is working great.

Only minor problem: when I try to soft reboot the VM, the filesystem buffers are flushed and the last message I see is "ix1 changed state to DOWN" - then the guest system hangs until powered off from the host and powered on again. Identical for soft power off. The system shuts down but the virtual/emulated power off does not happen.

I vaguely remember that occasionally people have this problem running on real hardware too and that you can twiddle the reset method via loader.conf somehow (ACPI vs. ... what?)

All hints greatly appreciated. I'm running this on a tiny Supermicro system. That would make a great chimera for travel - TrueNAS and OPNsense all in one box.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

OK, the shutdown/poweroff could be fixed by

sysctl hw.efi.poweroff=0

Reboot still hanging.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

August 11, 2023, 09:21:39 AM #2 Last Edit: August 11, 2023, 09:55:06 AM by Patrick M. Hausen
Switching from PCIe passthrough to bridge interfaces (in TrueNAS) and VirtIO (in OPNsense) fixes the problem and seems to work well.

No tunables needed at all and with 4 cores assigned to the VM I get near gigabit speed.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)