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

pxe boot, advanced menu with login isn't working

Scheduled Pinned Locked Moved Solved
FOG Problems
advanced menu login pxe pxe menu
3
18
7.9k
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.
  • S
    Scott B
    last edited by Scott B Nov 18, 2015, 9:43 AM Nov 18, 2015, 3:26 PM

    Added a few iso files to the PXE boot menu (UBCD, Hiren, Ect) and they work great when assigned to “All Hosts”. I would like to put them under the advanced menu with login section. When I do this choosing advanced login I get the prompt to login, which I do, then I can see it loading boot.php and advanced.php. At this point it exits and boots the host’s hard drive.

    Below is what is shown from the GUI going > iPXE Menu Customization > fog.advancedlogin which as far as I know hasn’t been edited.

    login\r\nparams\r\nparam mac0 ${net0/mac}\r\nparam arch ${arch}\r\nparam username ${username}\r\nparam password ${password}\r\nparam advLog 1\r\nisset ${net1/mac} && param mac1 ${net1/mac} || goto bootme\r\nisset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    

    Here is what I’m using for one of the isos.

    :Hirens\r\ninitrd http://${fog-ip}/${fog-webroot}/isos/hirens.iso\r\nchain memdisk iso raw ||\r\nboot
    

    I don’t see anything in the apache log for this.
    SVN: 5419 currently, saw issue on the past couple as well

    T 1 Reply Last reply Nov 19, 2015, 10:46 AM Reply Quote 0
    • C
      Claude Girard
      last edited by Nov 19, 2015, 7:24 AM

      Can you verify in fog database, GLobal settings table, settingkey FOG_PXE_ADVANCED, and see if these lines are the same in database ?

      Maybe same problem than:
      https://forums.fogproject.org/topic/5752/new-client-some-snapins-doesn-t-work-ok-with-legacy-client/15

      where && become &\amp;

      I remember that advanced menu didn’t work and host booted on hard drive

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott @Scott B
        last edited by Nov 19, 2015, 10:46 AM

        @Scott-B where are the \r\n lines doing? Or was this file edited/opened by Windows?

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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

        C S 2 Replies Last reply Nov 19, 2015, 11:35 AM Reply Quote 0
        • C
          Claude Girard @Tom Elliott
          last edited by Nov 19, 2015, 11:35 AM

          @Tom-Elliott said:

          @Scott-B where are the \r\n lines doing? Or was this file edited/opened by Windows?

          Hi Tom

          I think this is because of escaped characters again.
          May I open a specific thread for these problems ?

          I have these \r\n for example in image description when I write this text on several lines, with return between each one.

          I saw escaped problems in:
          snapins fields
          PXE menu
          host or image description

          Maybe could be the same in other fields

          And what is problematic:
          french accents é, à , ê, etc …
          antislashes
          &
          Line feed and/or carriage return
          Maybe more … 😞

          Sometimes I can see that in database, but not in FOG interface (for example \r\n isn’t visible in fog interface but is in database)
          Sometimes I can see in both (for example for french accents)

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Nov 19, 2015, 12:25 PM

            I’ve updated the files now and i now replace the \r\n lines with the simple \n which will print as a “new line”.

            I also an decoding the html entities now to ensure the & is displayed as just the & symbol (or any of the encoded items are displayed as their relative symbol).

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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
            • S
              Scott B @Tom Elliott
              last edited by Nov 19, 2015, 1:25 PM

              @Tom-Elliott said:

              @Scott-B where are the \r\n lines doing? Or was this file edited/opened by Windows?

              They show up in place of spaces after making a change and then going back into the menu item. I get the thing in the host description when doing an inventory extract as well. What I put into each of my added it menu items should show up below. Each one is their own menu choice item.

              :sysrescue
              initrd http://${fog-ip}/${fog-webroot}/isos/systemrescuecd.iso
              chain memdisk iso raw ||
              boot
              
              
              :ultimate
              initrd http://${fog-ip}/${fog-webroot}/isos/ubcd535.iso
              chain memdisk iso raw ||
              boot
              
              :DBAN
              kernel ${boot_url}/fog/isos/dban/dban.bzi nuke="dwipe --autonuke" silent vga=785
              boot
              
              :Hirens
              initrd http://${fog-ip}/${fog-webroot}/isos/hirens.iso
              chain memdisk iso raw ||
              boot
              
              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Nov 19, 2015, 1:26 PM

                I saw it and fixed in in the current trunk.

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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

                S 1 Reply Last reply Nov 19, 2015, 2:03 PM Reply Quote 0
                • S
                  Scott B @Tom Elliott
                  last edited by Nov 19, 2015, 2:03 PM

                  @Tom-Elliott said:

                  I saw it and fixed in in the current trunk.

                  SVN: 5441

                  I get the login under the advanced menu, but it still just boots the first drive. Is my advanced login setup wrong somehow (I thought it was default)? Looks different to the one posted by @CLAUDE GIRARD in the link he posted.

                  login
                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  param username ${username}
                  param password ${password}
                  param advLog 1
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                  
                  T 1 Reply Last reply Nov 19, 2015, 2:06 PM Reply Quote 0
                  • T
                    Tom Elliott @Scott B
                    last edited by Nov 19, 2015, 2:06 PM

                    @Scott-B Advanced login requires you to login first. Try unchecking the advanced login checkbox and save, and see if that helps you out.

                    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    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

                    S 1 Reply Last reply Nov 19, 2015, 2:23 PM Reply Quote 0
                    • S
                      Scott B @Tom Elliott
                      last edited by Nov 19, 2015, 2:23 PM

                      @Tom-Elliott said:

                      @Scott-B Advanced login requires you to login first. Try unchecking the advanced login checkbox and save, and see if that helps you out.

                      The advanced checkbox here? If so, still there.

                      0_1447942953678_checkbox.PNG

                      0_1447942957745_checkbox2.PNG

                      T 2 Replies Last reply Nov 19, 2015, 2:25 PM Reply Quote 0
                      • T
                        Tom Elliott @Scott B
                        last edited by Nov 19, 2015, 2:25 PM

                        @Scott-B Did you create your own advanced login custom meny?

                        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        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

                        S 1 Reply Last reply Nov 19, 2015, 2:27 PM Reply Quote 0
                        • S
                          Scott B @Tom Elliott
                          last edited by Scott B Nov 19, 2015, 8:30 AM Nov 19, 2015, 2:27 PM

                          @Tom-Elliott

                          I did not (knowingly) make a custome advanced menu login. I did make an entry for each ISO.

                          0_1447943264900_checkbox3.PNG

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott @Scott B
                            last edited by Nov 19, 2015, 2:31 PM

                            @Scott-B It’s becasue the link is set to All hosts for the “show with”.

                            Please change this back to “Advanced Login Required” and you should see the proper advanced menu work.

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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

                            S 1 Reply Last reply Nov 19, 2015, 2:34 PM Reply Quote 0
                            • S
                              Scott B @Tom Elliott
                              last edited by Nov 19, 2015, 2:34 PM

                              @Tom-Elliott said:

                              @Scott-B It’s becasue the link is set to All hosts for the “show with”.

                              Please change this back to “Advanced Login Required” and you should see the proper advanced menu work.

                              Same result.

                              T 1 Reply Last reply Nov 19, 2015, 2:37 PM Reply Quote 0
                              • T
                                Tom Elliott @Scott B
                                last edited by Nov 19, 2015, 2:37 PM

                                @Scott-B What is the same result?

                                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                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

                                S 1 Reply Last reply Nov 19, 2015, 2:42 PM Reply Quote 0
                                • S
                                  Scott B @Tom Elliott
                                  last edited by Scott B Nov 19, 2015, 8:43 AM Nov 19, 2015, 2:42 PM

                                  @Tom-Elliott said:

                                  @Scott-B What is the same result?

                                  After checking box for “Advanced Login Required” > saving > booting > choosing advanced menu with login > entering login > loads default.php and advanced.php > then just moves on to the local hard disk. If there is an error between loading advanced.php and booting the loca disk, I can’t see it.

                                  T 1 Reply Last reply Nov 19, 2015, 2:47 PM Reply Quote 0
                                  • T
                                    Tom Elliott @Scott B
                                    last edited by Nov 19, 2015, 2:47 PM

                                    @Scott-B right but you don’t have anything in the advanced items. There is the login and it is working fine. But the advanced menu is its own configuration setting that you put your needs in.

                                    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    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

                                    S 1 Reply Last reply Nov 19, 2015, 2:50 PM Reply Quote 1
                                    • S
                                      Scott B @Tom Elliott
                                      last edited by Nov 19, 2015, 2:50 PM

                                      @Tom-Elliott said:

                                      @Scott-B right but you don’t have anything in the advanced items. There is the login and it is working fine. But the advanced menu is its own configuration setting that you put your needs in.

                                      Ah… okay. I thought that was just called from fog.advancedlogin.

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

                                      223

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project