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
Thanks for the report. This was indeed an oversight in the change you linked.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f19f17b3af675fbbc1244b66bbd8fb4a9836cb02 commit f19f17b3af675fbbc1244b66bbd8fb4a9836cb02 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-10-16 14:48:39 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-10-16 14:50:33 +0000 vmrun.sh: Don't require firmware on amd64 unless -E was specified PR: 290232 Reported by: David Marker <dave@freedave.net> Fixes: aa34b1d20e44 ("vmrun.sh: Add arm64 support") MFC after: 3 days share/examples/bhyve/vmrun.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6c5540eebcf25e3f81c3ec9bfa762390d2a86885 commit 6c5540eebcf25e3f81c3ec9bfa762390d2a86885 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-10-16 14:48:39 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-10-19 13:55:06 +0000 vmrun.sh: Don't require firmware on amd64 unless -E was specified PR: 290232 Reported by: David Marker <dave@freedave.net> Fixes: aa34b1d20e44 ("vmrun.sh: Add arm64 support") MFC after: 3 days (cherry picked from commit f19f17b3af675fbbc1244b66bbd8fb4a9836cb02) share/examples/bhyve/vmrun.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
A commit in branch releng/15.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7cd9d3fe838c0ff77e4de9c1570856f261d96f18 commit 7cd9d3fe838c0ff77e4de9c1570856f261d96f18 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-10-16 14:48:39 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-10-19 23:50:44 +0000 vmrun.sh: Don't require firmware on amd64 unless -E was specified Approved by: re (cperciva) PR: 290232 Reported by: David Marker <dave@freedave.net> Fixes: aa34b1d20e44 ("vmrun.sh: Add arm64 support") MFC after: 3 days (cherry picked from commit f19f17b3af675fbbc1244b66bbd8fb4a9836cb02) (cherry picked from commit 6c5540eebcf25e3f81c3ec9bfa762390d2a86885) share/examples/bhyve/vmrun.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
This will be fixed in 15.0, thanks for the report.