OPNsense Forum

English Forums => General Discussion => Topic started by: ranceh on February 03, 2022, 04:26:48 pm

Title: using OPNsense as a netboot server
Post by: ranceh on February 03, 2022, 04:26:48 pm
Due to limited hardware I'm interested in using OPNSense as a netboot pxe server instance.

So the dhcp config sets opnsense as the next server and the tftp service is enabled from plugins and running.

I can use syslinux to build something but it seems that the netboot.xyz project has done nearly everything I would do, and a few things I dont need to do.

my clients are strictly pxe, so somehow I'd have to chainload ipxe from pxe, then use ipxe to load the netboot.xyz project.

My problem seems to be discussed here:  https://ipxe.org/howto/chainloading.

I don't understand how to take the section on "breaking the loop with the DHCP server" and implement it in OPNsense.

I was able to recompile the code and embed a script, but that only works for the bios side of things.  When I tried to do the same for the uefi boot file, things broke.

Any tips or pointers on how to do what the article suggests in the way of modifying the dhcp server would be helpful.
Title: Re: using OPNsense as a netboot server
Post by: tadchilly on May 19, 2023, 07:47:20 pm
Did you ever figure this out?

Edit: Nevermind. my setup is working great!   8)

For anyone else comes across this and wants to try, I followed this tutorial:
https://forum.opnsense.org/index.php?topic=25003

And I'm loading this file (downloaded to /usr/local/tftp/):
https://boot.netboot.xyz/ipxe/netboot.xyz.efi

instead of `pxelinux.0` (although it's good to have syslinux available in case you want to switch for some reason), but netboot.xyz is the cat's meow!