Hello. I've been working on how to have FreeBSD 13.0 act as a Network Boot SAN by hosting iSCSI/DHCP/TFTP services. I found a means to get DHCP to identify individual clients based on MAC address and I'm able to chain-load the updated iPXE image from TFTP where each client then reads an embedded script compiled into each unique iPXE file telling it to boot to a specific iSCSI LUN. All of this has been working relatively well with the exception that the only way I found resources to make iPXE w/ embedded script was through Linux and if possible I'd like to stay on the same platform with future installments.
The script itself is a simple document containing 4~5 lines of code:
I investigated
The script itself is a simple document containing 4~5 lines of code:
#!ipxe
dhcp
set initiator-iqn iqn.2021-11.ipxe.com:lun1
sanboot iscsi:10.0.0.1::::iqn.2021-11.ipxe.com:lun1
I investigated
/usr/ports/net/ipxe
and was able to compile undionly.kpxe but no combination of make EMBED=script
or make IPXE_EMBED=script
seems to do the trick...any ideas on how this might be achievable? I have a test network that I can use for experiments.