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

    IPXE Advanced Menu or Memdisk Problem

    Scheduled Pinned Locked Moved
    General
    6
    26
    20.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.
    • JunkhackerJ
      Junkhacker Developer
      last edited by

      well, now that you have a basic idea how the ipxe menu system works, i suggest going over to ipxe.org to get more information about your specific boot needs

      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
      • A
        Andy Morris
        last edited by

        I have the same issue with the Advanced Menu. If i choose the Advanced Menu it just flashes, the screen turns blue and has the default menu back on the screen. I had this working in version 1.0.1 and had to update to the latest 1.1.0 trunk to get my snapins to work. Not sure where to go from here. Any ideas?

        1 Reply Last reply Reply Quote 0
        • A
          Andy Morris
          last edited by

          here is my code…

          :MENU
          menu
          item --gap – ---------------- iPXE boot menu ----------------
          item WIN7PE64BIT Win7 64bit Recovery Console
          item WIN7PE32BIT Win7 32bit Recovery Console
          item BOOTCD Hirens BootCD
          item shell ipxe shell
          item return return to previous menu
          choose --default WIN7PE64BIT --timeout 5000 target && goto ${target}

          :WIN7PE64BIT
          initrd [url]http://${boot-url}/MenuItems/Win7-64bit/7rd64.iso[/url]
          chain [url]http://${boot-url}/MenuItems/Win7-64bit/memdisk[/url] iso raw
          goto MENU

          :WIN7PE32BIT
          initrd [url]http://${boot-url}/MenuItems/Win7-32bit/7rd32.iso[/url]
          chain memdisk iso raw ||
          goto MENU

          :BOOTCD
          initrd [url]http://${boot-url}/MenuItems/bootcd/bootcd14.iso[/url]
          chain memdisk iso raw ||
          goto MENU

          :ipxedemo
          chain [url]http://boot.ipxe.org/demo/boot.php[/url] ||
          goto MENU

          :shell
          shell ||
          goto MENU

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

          autoboot

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            the ${boot-url} parameter already sets the http part of the url. So try this below:

            menu
            item --gap – ---------------- iPXE boot menu ----------------
            item WIN7PE64BIT Win7 64bit Recovery Console
            item WIN7PE32BIT Win7 32bit Recovery Console
            item BOOTCD Hirens BootCD
            item shell ipxe shell
            item return return to previous menu
            choose --default WIN7PE64BIT --timeout 5000 target && goto ${target}

            :WIN7PE64BIT
            initrd ${boot-url}/MenuItems/Win7-64bit/7rd64.iso
            chain ${boot-url}/MenuItems/Win7-64bit/memdisk iso raw
            goto MENU

            :WIN7PE32BIT
            initrd ${boot-url}/MenuItems/Win7-32bit/7rd32.iso
            chain memdisk iso raw ||
            goto MENU

            :BOOTCD
            initrd ${boot-url}/MenuItems/bootcd/bootcd14.iso
            chain memdisk iso raw ||
            goto MENU

            :ipxedemo
            chain http://boot.ipxe.org/demo/boot.php ||
            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]

            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
            • Tom ElliottT
              Tom Elliott
              last edited by

              Ahhhh,

              Yeah, it fails loading the console picture.

              This is now fixed in SVN. Please update and sorry about that.

              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
              • A
                Andy Morris
                last edited by

                That worked!!! Thanks a ton!

                Andy

                1 Reply Last reply Reply Quote 0
                • A
                  Andy Morris
                  last edited by

                  Is there anyway to add the password option to these advanced items like in version .32?

                  Thanks,
                  Andy Morris

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    Yes, and no.

                    The password “options” are no longer using md5pass as they once where.

                    The easiest method would be to add login prompts.

                    I don’t know much more about all the details you’d need though.

                    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
                    • A
                      Andy Morris
                      last edited by

                      Just wanted to protect the items like it did in .32. I will take a look.
                      Thanks,

                      Andy

                      1 Reply Last reply Reply Quote 0
                      • A
                        Andy Morris
                        last edited by

                        That works!! Thanks again.

                        1 Reply Last reply Reply Quote 0
                        • E
                          Eli Kelly
                          last edited by

                          I’m still experiencing Advanced Menu selection issue mentioned by Danny and Andy. Screen flickers and default menu appears with blue background.

                          Tested with svn 1783 and 1799

                          I will update the subversion again now to see if there is any difference.

                          I’ve been using Junkhackers sample code from [URL=‘http://fogproject.org/forum/threads/fog-0-33b-edit-pxe-menu.10403/#post-26419’]this post[/URL]

                          menu
                          item --gap – ---------------- iPXE boot menu ----------------
                          item ipxedemo ipxe online boot demo
                          item shell ipxe shell
                          item return return to previous menu
                          choose --default return --timeout 5000 target && goto ${target}

                          :ipxedemo
                          chain [url]http://boot.ipxe.org/demo/boot.php[/url] ||
                          goto MENU

                          :shell
                          shell ||
                          goto MENU

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

                          autoboot[/FONT]

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

                            check for typo’s and/or hidden symbols from copying and pasting. ipxe is very picky
                            [url]http://www.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options[/url]

                            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
                            • E
                              Eli Kelly
                              last edited by

                              Hmm… I’ve tried clearing the field and retyping from scratch and still the same issue persists.

                              I also tried just typing basic commands in the field:

                              [CODE]echo hello world[/CODE]
                              [CODE]shell[/CODE]

                              I even tried to change the background to something obvious…
                              [CODE]cpair --foreground 3 --background 6 0[/CODE]

                              No matter what I put in the Advance Menu Code field the result is still a blue background with the default menu list

                              As expected if I leave the field blank the Advance Menu option is not listed on the default menu. Same result with svn 1801. Perhaps I will roll up my sleeves and dig into /var/www/html/fog/service/ipxe/advanced.php

                              Appreciate any guidance.

                              Thanks

                              Eli

                              1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott
                                last edited by

                                [quote=“Eli Kelly, post: 29865, member: 1152”]Hmm… I’ve tried clearing the field and retyping from scratch and still the same issue persists.

                                I also tried just typing basic commands in the field:

                                [CODE]echo hello world[/CODE]
                                [CODE]shell[/CODE]

                                I even tried to change the background to something obvious…
                                [CODE]cpair --foreground 3 --background 6 0[/CODE]

                                No matter what I put in the Advance Menu Code field the result is still a blue background with the default menu list

                                As expected if I leave the field blank the Advance Menu option is not listed on the default menu. Same result with svn 1801. Perhaps I will roll up my sleeves and dig into /var/www/html/fog/service/ipxe/advanced.php

                                Appreciate any guidance.

                                Thanks

                                Eli[/quote]

                                I’d start here:
                                [code]:MENU
                                menu
                                item --gap – ---------------- iPXE boot menu ----------------
                                item ipxedemo ipxe online boot demo
                                item shell ipxe shell
                                item return return to previous menu
                                choose --default return --timeout 5000 target && goto ${target}

                                :ipxedemo
                                chain http://boot.ipxe.org/demo/boot.php ||
                                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]

                                Remove the prompt because it doesn’t know how to interpret the prompt itself is what I’m guessing. Maybe you wanted:
                                [code]
                                :return
                                chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} || prompt && goto MENU
                                [/code]

                                The || and a new line just tells iPXE to if it fails, do nothing successfully, which it’s doing, but it doesn’t know how to pass back. It could also be the :MENU setting, but that shouldn’t matter too much.

                                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
                                • E
                                  Eli Kelly
                                  last edited by

                                  My issue is fixed. I posted my update in the wrong thread. The full answer is here:
                                  [URL=‘http://fogproject.org/forum/threads/fog-0-33b-edit-pxe-menu.10403/page-2#post-30033’]http://fogproject.org/forum/threads/fog-0-33b-edit-pxe-menu.10403/page-2#post-30029[/URL]

                                  Basically my advanced.php was out of date and wasn’t being updated in svn updates. Hard coding my server IP fixed advanced menus for me.

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    Elias Santiago
                                    last edited by

                                    What does the “Exit to Hard Drive Type” do/change?

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

                                      it changes how ipxe attempts to exit and allow the computer to the hard drive. different bios may require different methods to boot properly

                                      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
                                      • 1
                                      • 2
                                      • 2 / 2
                                      • First post
                                        Last post

                                      162

                                      Online

                                      12.1k

                                      Users

                                      17.3k

                                      Topics

                                      155.3k

                                      Posts
                                      Copyright © 2012-2024 FOG Project