Set host to always boot from ipxe entry


  • Is it possible to set a particular host to always boot from a particular custom ipxe menu entry?

    For example, I am still experimenting with rancherOS and fog

    And in some cases, I want a particular machine to always boot ipxe as a worker node.


  • @george1421 I think that may work, it might be just as easy to implement a feature as well for the web interface, just brainstorming here. But my assumption was that after registering a host, I would be able to log into the fog web interface and assign which menu entry would be default for a host.

    I will experiment with both the method you describe, and perhaps a feature as described above in the web interface and see if I can’t get it to work.

  • Moderator

    @uberthoth I’m not sure I understand your use case here, but fog is configured to only have one default entry and to to treat all hosts the same.

    With that said you may be able to insert a custom of iPXE menu in the boot chain for fog.

    When FOG pxe boot a target computer it transfers fog custom ipxe boot loader to the target computer. That custom ipxe boot loader (undionly.kpxe or ipxe.efi) has a script built in to contact the fog server and load a ipxe script called default.ipxe. That script is in the /tftpboot directory on the fog server. If you were to write your own version of the default.ipxe file, matching a list of mac addresses and booting your custom ipxe menu from there, then if no mac address matches then continue on with the normal fog booting process. That would let you insert a custom ipxe menu in front of the FOG pxe booting process. That should work.

302
Online

8.2k
Users

15.1k
Topics

141.9k
Posts