[Bug 290232] vmrun.sh should not require firmware for FreeBSD virtual machines (amd64)
Date: Tue, 14 Oct 2025 15:56:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290232
            Bug ID: 290232
           Summary: vmrun.sh should not require firmware for FreeBSD
                    virtual machines (amd64)
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: dave@freedave.net
First, this is in a script in `/usr/share/examples`. I don't know if these have
any stability guarantees (my expectation is they don't).
Filing this so others that hit same issue can find easy workaround.
review D44933 [1] changed `vmrun.sh` so that you must have firmware. That was
not the case before to boot FreeBSD virtual machines.
Here is the error you will see (for those googling):
Error: Firmware file /usr/local/share/uefi-firmware/BHYVE_UEFI.fd doesn't
exist.
       Try: pkg install edk2-bhyve
The lines causing this are around 281-287 [2] and check for firmware. But that
check is way before where you would have run without caring about firmware
around lines 352-359 [3].
On amd64 you can just comment out the test for firmware to get around this.
[1] https://github.com/freebsd/freebsd-src/commit/aa34b1d
[2]
https://github.com/freebsd/freebsd-src/blob/d1bd541b385d49d2ae3a8bad9df72779b606e208/share/examples/bhyve/vmrun.sh#L281-L287
[3]
https://github.com/freebsd/freebsd-src/blob/d1bd541b385d49d2ae3a8bad9df72779b606e208/share/examples/bhyve/vmrun.sh#L352-L359
-- 
You are receiving this mail because:
You are the assignee for the bug.