That sure is possible in bhyve(8) (example options: 34.10.1. Setting Up the PXE Environment, 34.10.2. Configuring the DHCP Server ).How much control do we have over dhcp in bhyve?
Can I make it pass PXE options?
Jan 14 21:32:14 ***** pkg[15079]: edk2-bhyve upgraded: g202308_5 -> g202508
Perhaps I misunderstand the issue, but I could find no mention of an (built-in) "in-bhyve dhcp server" in either the documentation or the source code.how do I configure the in-bhyve dhcp server
Unfortunately all my attempts to do PXE boot in bhyve have failed. Bhyve only has uefi now, and it doesn't contain any PXE implementation. You can bring up iPXE, but that one refuses to accept dhcp reply network packages for reasons unknown.
This issue was bothering me for some time now, but I hadn't the time to test. Since sysutils/edk2 was upgraded from tianocore version g202308_5 to g202508, PXE booting was possible no more.I was able to run a PXE / dhcp server and clients, but since sysutils/edk2 (amd64) was upgraded [1] from version g202308_5 , there is no PXE boot option in tianocore anymore [2].
# bhyve .... -o bootrom=/tmp/usr/local/share/edk2-bhyve/BHYVE_UEFI.fd <vm_name>
...
-l bootrom,/tmp/usr/local/share/edk2-bhyve/BHYVE_UEFI.fd \
loader="uefi"
...
bhyve_options="-l bootrom,/tmp/usr/local/share/edk2-bhyve/BHYVE_UEFI.fd"