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

How to modify the ipxe menu to directly deploy a fog image

Scheduled Pinned Locked Moved
Tutorials
2
8
1.2k
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.
  • H
    Hubi
    last edited by Nov 27, 2019, 2:57 PM

    I would like some help to modify my ipxe menu on fog. In order to directly launch a fog image.
    I did not find much on the web …
    Thanks in advance

    J 1 Reply Last reply Nov 27, 2019, 3:06 PM Reply Quote 0
    • J
      Junkhacker Developer @Hubi
      last edited by Nov 27, 2019, 3:06 PM

      @Hubi could you provide more details on exactly what you’re trying to do and what you’re trying to achieve? there are multiple ways of doing things that match what you describe, and some of them can have very bad consequences if done without understanding the goal and environment. i wouldn’t want to give you instructions on how to reimage every computer when they boot without an understanding that it’s what you actually want…

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      1 Reply Last reply Reply Quote 0
      • H
        Hubi
        last edited by Hubi Nov 27, 2019, 9:23 AM Nov 27, 2019, 3:22 PM

        @Junkhacker The objective is that my fog server can capture images. And that the first option of the ipxe menu deploys a fog image chosen upstream. So I record a fog image, and I quickly deploy this image on hundreds of computers just by pressing F12 each time

        J 1 Reply Last reply Nov 27, 2019, 3:41 PM Reply Quote 0
        • J
          Junkhacker Developer @Hubi
          last edited by Nov 27, 2019, 3:41 PM

          @Hubi that sounds like fog’s normal mode of operation though

          you schedule an imaging task telling what hosts to be re-imaged with what image, and on the next boot they do it

          what am i missing here?

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          H 1 Reply Last reply Nov 27, 2019, 3:51 PM Reply Quote 0
          • H
            Hubi @Junkhacker
            last edited by Nov 27, 2019, 3:51 PM

            @Junkhacker

            Okay, maybe I wasn’t clear.
            The objective is to directly master a computer, without having to record it in fog.
            Typically I want to initialize fog so that it deploys an image directly when I boot in pxe without the anregistered, without authenticating myself to select the image.
            So even if fog doesn’t know the computer it directly starts the deployment of the image, and the only operation I have to do on the machine is to start it in pxe

            J 1 Reply Last reply Nov 27, 2019, 4:07 PM Reply Quote 0
            • J
              Junkhacker Developer @Hubi
              last edited by Nov 27, 2019, 4:07 PM

              @Hubi ok, that’s a little different. i haven’t touched it in a long time, but we have a plugin called “capone” that does exactly that. i’m not sure if it’s been updated or supported. i just tried to activate it on my dev server and it didn’t work, but that might just be my dev server being a little borken (i’ll leave that typo, it seems fitting).

              if the plugin doesn’t work, it can still be done with adding a custom ipxe menu item and setting it as the default for unregistered hosts.

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              H 1 Reply Last reply Nov 27, 2019, 4:16 PM Reply Quote 0
              • H
                Hubi @Junkhacker
                last edited by Nov 27, 2019, 4:16 PM

                @Junkhacker
                Thank you for answering me so far
                Yes I want to do it by modifying the ipxe menu.
                The problem is that I couldn’t find a tutorial, or documentation to change the menu order and add a line to the menu to deploy an FOG image without a password .
                Can you redirect me to this tutorial and/or documentation ?

                J 1 Reply Last reply Nov 27, 2019, 4:33 PM Reply Quote 0
                • J
                  Junkhacker Developer @Hubi
                  last edited by Junkhacker Nov 27, 2019, 10:34 AM Nov 27, 2019, 4:33 PM

                  @Hubi i’m pretty sure there’s references on how to do it on the forums, but here’s how i’ve done it in the advanced menu. it will take just a little modification to put this into the ipxe menu entries instead, but it should give you a pretty good idea of where to start

                  :Win7SP1x64
                  kernel bzImage root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp web=${fog-ip}/fog/ consoleblank=0 loglevel=4 type=down img=Win7SP1x64 ftp=${fog-ip} imgType=n imgPartitionType=all osid=5 storage=${fog-ip}:/images/ capone=1
                  imgfetch init.xz
                  boot ||
                  goto MENU
                  

                  signature:
                  Junkhacker
                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

                  148

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project