Skip to content

OPNsense fails to boot on Gen 2 Hyper-V VM after upgrade #269

@Go0nNow

Description

@Go0nNow

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

I have encountered this bug periodically for years, and unfortunately I can't pinpoint a specific version when it began occurring, but it was before OPNsense 25.5.

Steps to reproduce the behavior:

  1. Install OPNsense on a generation 2 Hyper-V VM.
  2. Update to latest OPNsense release.
  3. Reboot.
  4. When rebooting, the VM will intermittently fail to boot.

Expected behavior

Normal system boot up without freezing during startup.

Screenshot of console output during boot. Bootup halts at this point and requires reset.
Image

Troubleshooting notes:

  • Amount of RAM or CPU cores assigned does not seem to matter. Tested with 1 core, 512 MB RAM as well as 4 cores, 4096 MB RAM
  • Reverting to a previous ZFS snapshot before upgrade typically works around the issue, but booting from kernel.old does not make a difference. In other words, the issue seems to be tied to a file or configuration setting that is contained within the filesystem.
  • Upgrading the snapshot has caused the issue to reoccur, in my experience.
  • Once the VM begins exhibiting this behavior, the only definitive way to fix it permanently in my experience has been to reinstall OPNsense from installation media. Oddly, when the reinstalled system is upgraded for the first time, the issue does not seem to reoccur.
  • I believe it is this FreeBSD bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264267
  • I also found this similar bug, but in my own troubleshooting I was not able to find a correlation between the console or comconsole variables and the boot behavior: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268736

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 25.7.7-amd64
Intel Xeon CPU E5-2667 v2
Hyper-V guest VM on Windows Server 2022
PHY NICs: Mellanox ConnectX-3 Pro

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportCommunity support or awaiting triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions