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

Chainload PXE from iPXE

Scheduled Pinned Locked Moved
FOG Problems
4
12
6.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.
  • E
    eric0626
    last edited by Mar 25, 2016, 4:38 PM

    Hello all! Happy Easter!! šŸ˜„
    Does anyone know if it is possible to chainload PXE from iPXE?
    I just setup a new FOG 1.2.0 server (svn 6917), and I have an existing FOG 0.32 server.
    I want to chainload the 0.32 menu from the new 1.2.0 server’s menu because I have customized the 0.32 menu to do a lot of different stuff (tools, ISOs, live linux, Windows installers, etc.), and it will take me sometime to figure out how to customize them on the new 1.2.0 menu.

    Here’s my chainload configuration on the 1.2.0 menu, but it doesn’t work. It comes up with an error ā€œunable to locate configuration fileā€.
    0_1458922093777_upload-5d8f5c74-ec52-430e-be42-f8120f7420ae
    0_1458923828868_upload-b459a7b9-58ad-4e5c-8e37-7663f10c0802

    Anyone has any ideas? Any help will be appreciated.
    😁

    1 Reply Last reply Reply Quote 0
    • Q
      Quazz Moderator
      last edited by Quazz Mar 25, 2016, 10:45 AM Mar 25, 2016, 4:44 PM

      You have to chain the pxelinux.0 file, not the configuration file itself.

      And your default file should be in the pxelinux.cfg folder which should reside at the root of your tftp directory

      E 1 Reply Last reply Mar 25, 2016, 4:48 PM Reply Quote 0
      • E
        eric0626 @Quazz
        last edited by Mar 25, 2016, 4:48 PM

        Hi @Quazz, thanks for your reply.
        So could you please tell me how i should change the config parameters? 😬

        Q 1 Reply Last reply Mar 25, 2016, 4:54 PM Reply Quote 0
        • Q
          Quazz Moderator @eric0626
          last edited by Mar 25, 2016, 4:54 PM

          @eric0626 If the PXE is located on the same server all you should need is

          chain pxelinux.0
          

          If it’s located on another server then

          chain tftp://10.2.5.239/pxelinux.0
          

          Should work.

          Assuming your tftp directory is /tftpboot you will need the following:

          /tftpboot/pxelinux.0
          /tftpboot/pxelinux.cfg/default (<- config file)

          And of course other relevant PXE files.

          E 1 Reply Last reply Mar 25, 2016, 5:08 PM Reply Quote 1
          • T
            Tom Elliott
            last edited by Mar 25, 2016, 4:57 PM

            I feel this needs to be added.

            Your 1.2.0 server doesn’t have a /tftpboot/pxelinux.cfg folder, and it does not have pxelinux.0 readily available. You should change your DHCP Option 66/67 (next-server/filename) settings to look at the 1.2.0 ip and filename undionly.kpxe (or undionly.kkpxe).

            From there, the chain should be able to happen pretty easily.

            I’d more recommend you to upgrade to trunk where you can actually create your own menu items that display on the first menu page.

            https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_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

            E 1 Reply Last reply Mar 25, 2016, 5:11 PM Reply Quote 0
            • T
              Tom Elliott
              last edited by Mar 25, 2016, 4:59 PM

              Grrrr,
              You’re not running 1.2.0, you’re running Trunk version 6917. This is important. 1.2.0 was the last stable release. Trunk (at least in my eye’s) is NOT 1.2.0 (rev 6917). It’s Trunk version 6917.

              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 1
              • E
                eric0626 @Quazz
                last edited by eric0626 Mar 25, 2016, 11:27 AM Mar 25, 2016, 5:08 PM

                @Quazz
                that doesn’t work. It comes up with the exact same error. 😣
                any ideas on what else i can try? Thanks!

                1 Reply Last reply Reply Quote 0
                • E
                  eric0626 @Tom Elliott
                  last edited by Mar 25, 2016, 5:11 PM

                  Hi @Tom-Elliott Thanks for your reply.
                  I have changed the DHCP options already. I’m able to boot to the new FOG server ( trunk 6917), but I can’t figure out how to chainload the 0.32 menu from there. Do you have any ideas? 😃

                  1 Reply Last reply Reply Quote 0
                  • G
                    george1421 Moderator
                    last edited by Mar 25, 2016, 6:48 PM

                    IMO, you would be better off (now that you are on the trunk release) to just use the native trunk tools for creating your custom menu. Its quite easy now (as compared to hand editing the config files) and can all be done via the gui. Instead of putting effort into making the older way work, focus those efforts on the recommended and supported solution moving forward.

                    I wrote a tutorial that may be of some use on how to boot a MDT iso image from the new FOG menu.
                    https://forums.fogproject.org/topic/6284/booting-mdt-2013-litetouch-with-fog/8

                    There is also a geat wiki page with more helpful hints.https://wiki.fogproject.org/wiki/index.php/Include_any_ISO_in_the_FOG_Bootmenu

                    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!

                    E 1 Reply Last reply Mar 25, 2016, 7:20 PM Reply Quote 2
                    • E
                      eric0626 @george1421
                      last edited by Mar 25, 2016, 7:20 PM

                      Hi @george1421 thanks for your suggestion!!
                      I may have to go that route if I can’t figure it out!! 😄

                      1 Reply Last reply Reply Quote 0
                      • G
                        george1421 Moderator
                        last edited by Mar 25, 2016, 7:35 PM

                        One last bit of info that my be useful. If you DO decide to move to the trunk way of managing the boot menu. Using this url may help you with your porting of the 0.32 menus over to the trunk method.

                        http://<fog_server_IP>/fog/service/ipxe/boot.php

                        If you key that into your browser, you can get an idea of when you change field X in the web gui it has impact Y in the boot menu. Once you figure out what fields do what in the boot menu, your configuration will be more understandable. Best of luck.

                        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 1
                        • E
                          eric0626
                          last edited by Mar 25, 2016, 7:59 PM

                          Hello ALLLLLLLLLL!
                          I did it!!! šŸ˜† šŸ˜† šŸ˜†
                          The problem was when the client executes the chain command, it sends another request to the DHCP server, and it points the client back to the same iPXE server because that’s what the DHCP server has.

                          The solution is to explicitly specify the PXE server with command ā€œset net0/next-server iPXE-server-ipā€.
                          Please see below for my screenshot.
                          0_1458935856581_upload-77255287-209f-40df-bbc4-b1e534ccd24a

                          Thank you guys for all the help!!! šŸ˜€

                          1 Reply Last reply Reply Quote 2
                          • 1 / 1
                          1 / 1
                          • First post
                            3/12
                            Last post

                          171

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright Ā© 2012-2024 FOG Project