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

    How to edit the pxe boot menu in FOG 1.2.0

    Scheduled Pinned Locked Moved
    FOG Problems
    8
    15
    15.7k
    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.
    • sarge_212S
      sarge_212
      last edited by

      Hey all,

      I am quite the noob on setting up FOG. I did get it to install on a VM in CentOS 7 and it is running. I was able to upload an image successfully, which I’m sure I can deploy. However, my conundrum lies in the fact that I do not know how to change the menu when it first boots. Is there a way to customize the boot menu? I have looked on google but thought I’d ask some of you seasoned FOG users. I’m sure its simple, I just am not finding it. Thanks!

      1 Reply Last reply Reply Quote 0
      • D
        domii666
        last edited by

        fogsettings, advanced menü.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          [quote=“domii666, post: 42414, member: 24204”]fogsettings, advanced menü.[/quote]
          Only if you have upgraded to a SVN version, right?? Version 1.2.0 does not come with cumstomizable menu afaik!

          You could edit the PHP files to change the menu (ugly) or try upgrading ([url]http://www.fogproject.org/wiki/index.php/Upgrade_to_trunk[/url]). But be warned that this is not a stable release and might break things.

          If you only want to remove some of the options from the menu you probably are best of with editing ‘/var/www/fog/lib/fog/BootMenu.class.php’ until the new version of FOG is being released.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            what are you wanting to change?

            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
            • sarge_212S
              sarge_212
              last edited by

              Okay, so the boot menu is just php? That is what I was confused about. @junkhacker: I wanted to add a few more options for different images to the menu and change the background to a company background. I’ll look at the file Uncle Frank posted. Thanks and I do appreciate any responses, was just afk.

              1 Reply Last reply Reply Quote 0
              • JunkhackerJ
                Junkhacker Developer
                last edited by

                in the newer dev versions of fog, you can edit the boot menu right from the web interface (i’m running svn 2948 as a production server and have had no problems, ymmv). changing the background is as simple as changing the file at <web-root>/fog/service/ipxe/bg.png

                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
                • C
                  ChrisJ
                  last edited by

                  Anyone got any examples of how to add a iso or even just the existing Clam AV scan to the boot menu via the new web interface? I’ve searched but can’t find at the moment (because I’m manually AV checking the machines that didn’t have AV when I started here last month…)

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url]

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 1
                    • C
                      ChrisJ
                      last edited by

                      [quote=“Uncle Frank, post: 42587, member: 28116”]There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url][/quote]

                      Thanks. That worked. Got the AVG ISO booting now.
                      If anyone is interested In Fog 1.2.0, in the fog configuration in the advanced config options text box I have this :

                      menu
                      item --gap – ---------------- iPXE boot menu ----------------
                      item AVG AVG Antivirus scan
                      item Sophos Sophos Antivirus scan
                      item shell ipxe shell
                      item return return to previous menu
                      choose --default AVG --timeout 5000 target && goto ${target}

                      :AVG
                      initrd http://${fog-ip}/${fog-webroot}/iso/avg_arl_cdi_all_120_141126a8645.iso
                      chain memdisk iso raw ||
                      goto MENU

                      :Sophos
                      initrd http://${fog-ip}/${fog-webroot}/iso/sophosbootable.iso
                      chain memdisk iso raw ||
                      goto MENU

                      :shell
                      shell ||
                      goto MENU

                      :return
                      chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
                      prompt
                      goto MENU

                      autoboot[/CODE]

                      Next task is to customise that iso so its got up to date definitions, sets the network and proxy appropriately and has 2 options “scan” and “custom” where scan just gets on with it (if nothing is selected) without asking loads of questions and custom gives access to the original ARL menu…

                      Scott BS 1 Reply Last reply Reply Quote 1
                      • C
                        chriscarman
                        last edited by

                        This example is really helpful, thanks! Is there any way to move one of the advanced items onto the main boot menu and make it the default? I work at a school district that has to implement online standardized testing in the spring, and we’ve been playing with booting an Ubuntu Live image over the network with our FOG server so that we don’t have to install any software on our Windows PCs. It would be great if we could make the Ubuntu image the default in the main menu instead of booting to hard drive, because it would automate the process a lot across our six buildings.

                        JunkhackerJ 1 Reply Last reply Reply Quote 0
                        • JunkhackerJ
                          Junkhacker Developer @chriscarman
                          last edited by

                          @chriscarman this can be done in the trunk version of fog from the web interface

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

                          C 1 Reply Last reply Reply Quote 1
                          • C
                            chriscarman @Junkhacker
                            last edited by

                            @Junkhacker Awesome, thanks for the quick reply! We use fog on a daily basis in our district and I’d love to avoid downtime. How stable is the trunk version? If I upgrade to trunk, can I walk it back to 1.2.0 if there’s a problem, or would it be better to set up a separate fog server with the trunk version that we can swap in when we do online testing and need the network image booting? Sorry for being a little off-topic!

                            1 Reply Last reply Reply Quote 0
                            • JunkhackerJ
                              Junkhacker Developer
                              last edited by

                              downgrades are not supported, i’m afraid, so make backups and be prepared to roll back to them. but, I’ve been using the trunk version 4384 (SVN 3877) in production at work for over 2 months without any problems.

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

                              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman @Junkhacker
                                last edited by

                                @Junkhacker said:

                                downgrades are not supported, i’m afraid, so make backups and be prepared to roll back to them. but, I’ve been using the trunk version 4384 (SVN 3877) in production at work for over 2 months without any problems.

                                I can vouch for SVN revision 4103. I’ve been using it on the work production server for… over a month for sure. But, I’ve also been playing a lot with the very latest on a test server at work, and I use the latest at home on my personal fog server. It seems like it’s pretty solid right now for Red Hat based distros like CentOS 7 and Fedora 21.

                                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!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                1 Reply Last reply Reply Quote 0
                                • Scott BS
                                  Scott B @ChrisJ
                                  last edited by

                                  @ChrisJ said:

                                  [quote=“Uncle Frank, post: 42587, member: 28116”]There are a couple of examples here in the forums. e.g.: [url]http://fogproject.org/forum/threads/boot-menu-iso-file-size.12442/[/url][/quote]

                                  Thanks. That worked. Got the AVG ISO booting now.
                                  If anyone is interested In Fog 1.2.0, in the fog configuration in the advanced config options text box I have this :

                                  menu
                                  item --gap – ---------------- iPXE boot menu ----------------
                                  item AVG AVG Antivirus scan
                                  item Sophos Sophos Antivirus scan
                                  item shell ipxe shell
                                  item return return to previous menu
                                  choose --default AVG --timeout 5000 target && goto ${target}

                                  :AVG
                                  initrd http://${fog-ip}/${fog-webroot}/iso/avg_arl_cdi_all_120_141126a8645.iso
                                  chain memdisk iso raw ||
                                  goto MENU

                                  :Sophos
                                  initrd http://${fog-ip}/${fog-webroot}/iso/sophosbootable.iso
                                  chain memdisk iso raw ||
                                  goto MENU

                                  :shell
                                  shell ||
                                  goto MENU

                                  :return
                                  chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
                                  prompt
                                  goto MENU

                                  autoboot[/CODE]

                                  Next task is to customise that iso so its got up to date definitions, sets the network and proxy appropriately and has 2 options “scan” and “custom” where scan just gets on with it (if nothing is selected) without asking loads of questions and custom gives access to the original ARL menu…

                                  Very helpful @ChrisJ, thank you!

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

                                  192

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project