Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2025 15:56:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 290232] vmrun.sh should not require firmware for FreeBSD virtual machines (amd64)
Message-ID:  <bug-290232-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290232

            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 w=
as
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 t=
hat
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/d1bd541b385d49d2ae3a8bad9df7277=
9b606e208/share/examples/bhyve/vmrun.sh#L281-L287
[3]
https://github.com/freebsd/freebsd-src/blob/d1bd541b385d49d2ae3a8bad9df7277=
9b606e208/share/examples/bhyve/vmrun.sh#L352-L359

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-290232-27103>