[Bug 295301] bhyve: "Assertion failed" on launching X11 in a NetBSD 11.0 RC4 VM

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 15 May 2026 12:17:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295301

            Bug ID: 295301
           Summary: bhyve: "Assertion failed" on launching X11 in a NetBSD
                    11.0 RC4 VM
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: 9vlc@proton.me

When launching X11 (whether as normal user or root) on a NetBSD (11.0 RC4)
virtual machine, bhyve throws the following error:

Assertion failed: (error == 0), function modify_bar_registration, file
/usr/src/usr.sbin/bhyve/pci_emul.c, line 708.
Abort trap
134

The following bhyve cmdline was used:
bhyve -DSH \
        -c 1 -m 4g \
        -l bootrom,/usr/local/share/edk2-bhyve/BHYVE_UEFI_CODE.fd \
        -s 0,hostbridge -s 31,lpc \
        \
        -s 1:0,ahci-hd,disk.img \
        -s 2:0,virtio-net,tap0 \
        \
        -s 5:0,fbuf,tcp=0.0.0.0:5900,wait \
        \
        fbtest

Initially discovered with -DSHAwx (x2APIC working via a custom EDK2 build) and
-c 2

Tested on FreeBSD 15.0-RELEASE and 15.1-BETA2
This happens regardless of the EDK2 version

-- 
You are receiving this mail because:
You are the assignee for the bug.