• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Automate iPXE Menu Selection

    Scheduled Pinned Locked Moved
    General
    2
    4
    657
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      londonfog
      last edited by

      Hi There,

      I’m looking to automate PXE installs on headless servers in a datacenter. But I am not sure how I can automate selecting the image in the list - I am using ipxe menus and not a static captured image

      Is there a way I can drop to a pxe shell via keystrokes to then chainload the server + proper image? Maybe I’m asking for too much…

      Any help would be appreciated.

      Thanks!

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @londonfog
        last edited by

        @londonfog So if you are running headless how are you selecting the image to restore?

        Are you using FOG as a backup tool instead of a one to many deployment (just trying to understand a use case)

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        L 1 Reply Last reply Reply Quote 0
        • L
          londonfog @george1421
          last edited by

          @george1421 I’m using fog to netboot and run an autoinstall ubuntu 20.04(there may be better tools for this, but FOG is what we use, so I was trying to leverage it). But I actually found out a way to use selenium to screen scrape and use a hotkey to select the ipxe menu item to launch and essentially everything relatively autonomously. Reason for this is so a tech can ran a python script to configure a new server for that location and not have to manually do really anything other than plug it in.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @londonfog
            last edited by george1421

            @londonfog Just wondering out loud but if that python script can hit the FOG API, and register that new host and then select image deploy when the target computer boots up for the first time and it pxe boots, it will boot right into imaging. So if you already have the image defined, then you would create one curl api call to register the new server’s name and mac address with fog, then a second curl api call to deploy your image.

            ref: https://forums.fogproject.org/topic/11184/api-powershell-create-host-and-deploy-task-script

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            305

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project