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

Problems with Optiplex 5260 in an advanced PXE environment

Scheduled Pinned Locked Moved
General Problems
3
24
3.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.
  • G
    george1421 Moderator @Sebastian Roth
    last edited by Oct 17, 2018, 3:41 PM

    @Sebastian-Roth OK I have a bit more understanding what is going on here.

    The OP has 2 iPXE boot servers. He has a main one that does other things already. He has setup a chain statement in his main pxe boot server to load boot.php from the FOG server. So the booting process is still under control of the iPXE kernel running from the primary pxe boot server (not-FOG server). If he updates his dhcp server to point to the FOG server this Optiplex 5260 pxe boots correctly. If he chain loads from his main pxe boot server to fog it fails. According to the OP the chain loading works with other hardware, just not with this specific model.

    From his existing iPXE boot server he is using this command to chain: chain http://x.x.x.x/fog/service/ipxe/boot.php?mac=${net0/mac}

    The version of iPXE running on his main pxe boot server is 1.0.0 1b104 (pretty old).

    For bios based systems the OPs using pxelinux.0 for uefi based systems its ipxe.efi (on the main pxe boot server).

    So to make this work, we need to get his main pxe boot server to load the proper iPXE kernels from the FOG server to support iPXE booting or possibly replace the iPXE boot kernels on the primary PXE boot server with the newer ones from the FOG server. The only question is if the built in iPXE script in the FOG iPXE kernels would cause his main pxe boot server problems.

    I know I talked in a circle here. I needed to get everything down in one place do see if we can come up with a solution.

    At this time I don’t feel its a FOG component level issue, but the OPs environment.

    One possible solution would be to use the FOG server as the main pxe boot server and then just migrate the menus from the existing main server to the FOG server.

    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 0
    • G
      george1421 Moderator
      last edited by george1421 Oct 17, 2018, 9:54 AM Oct 17, 2018, 3:54 PM

      Please understand I’m not faulting anything at the moment. What we have is a puzzle and I’m trying to find all of the bits that makeup this environment. I think there is a solution here, we just need to find the right combination.

      Looking back over our chat session the OP kept saying iPXE but my intuition was telling me syslinux. Then I looked back for the dhcp config file posted.

      option tftp-server-name “172.16.0.8”;
      option root-path “/data/tftpboot/”;
      next-server 172.16.0.8;
      filename “pxelinux.0”;
      
          if option arch = 00:06 {
                  filename "efi32/syslinux.efi";
          } else if option arch = 00:07 {
      filename “efi64/syslinux.efi”;
                  filename "ipxe.efi";
          } else if option arch = 00:09 {
      filename “efi64/syslinux.efi”;
          } else {
                  filename "pxelinux.0";
          }
      }
      

      There may be some formatting errors above that chat did to the config file, but I can clearly see syslinux kernels being called. The OP also made reference to pxelinux.cfg in the chat. Which again is a syslinux thing.

      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!

      G 1 Reply Last reply Oct 17, 2018, 7:41 PM Reply Quote 0
      • G
        george1421 Moderator @george1421
        last edited by Oct 17, 2018, 7:41 PM

        @george1421 OK this problem is making my head explode.

        In your main pxe boot server, I assume you have a menu entry that points to the FOG server. The issue we have is we need to replace the in memory iPXE kernel with the FOG iPXE kernels (like what you did when you changed the dhcp option 66 and 67).

        So in your main pxe boot server for the menu entry for FOG see if this replaces iPXE with FOG’s iPXE.

        :call_fog
        set next-server <fog_server_ip>
        iseq ${platform} efi && set filename ipxe.efi || set filename undionly.kpxe
        chain tftp://${next-server}/${filename}
        

        That should chain load the fog iPXE kernel. There is an embedded script in the FOG iPXE kernel here: https://github.com/FOGProject/fogproject/blob/master/src/ipxe/src/ipxescript

        Its a generic script, the only thing we have to pay attention to is line 29.

        chain tftp://${next-server}/default.ipxe ||
        

        What that script will do is again acquire the pxe boot server {next-server} from dhcp, which will point back to your main pxe boot server, but ignores dhcp option 67 and calls default.ipxe. On your main dhcp server you need to create a new text file called default.ipxe and in it place this script

        #!ipxe
        chain tftp://<fog_server_ip>/default.ipxe
        

        That should call the fog based ipxe boot script, you will be running under the FOG iPXE kernel done by the fist chain, and the second chain will jump you into the FOG iPXE menu.

        Will it work?? Maybe /maybe not but it sounds good on paper.

        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 0
        • P
          pbriec @pbriec
          last edited by Oct 18, 2018, 9:51 AM

          Hi @george1421, thanks for taking time to solve this problem

          here is my lan where x=0 for site1 and x=4 for site2. They have both the same configuration.

          my DHCP/DNS server are 172.16.x.3
          my FileServer/TFTPBOOT are 172.16.x.5
          my FOG Server are 172.16.x.8

          :call_fog
          set next-server 172.16.4.8
          iseq ${platform} efi && set filename ipxe.efi || set filename undionly.kpxe
          chain tftp://${next-server}/${filename}
          

          here is the output from my vm when i hit the new item call_fog
          0_1539856086302_pxe.jpg

          thanks
          Pierre

          G 2 Replies Last reply Oct 18, 2018, 10:38 AM Reply Quote 0
          • G
            george1421 Moderator @pbriec
            last edited by george1421 Oct 18, 2018, 4:39 AM Oct 18, 2018, 10:38 AM

            @pbriec Oh we are very close. I see it’s doing very much like we need.

            1. I see that its using an updated (different) ipxe kernel since the build number has changed (960d1) and it has all of the proper modules (DNS, FTP, HTTP…) That tells me you have the FOG iPXE kernel running (goal 1).
            2. Its chain loading from your main pxe boot server to the fog server (tftp://172.16.4.5 -> 172.16.4.8) So its making it to your FOG server (goal 2).

            The issue is its not supplying the needed parameters along the way. I think we need to adjust the default.ipxe on your main server to detect the required parameters. We should review the embedded ipxe script from the github site to see what is missing. https://github.com/FOGProject/fogproject/blob/master/src/ipxe/src/ipxescript

            The problem is very close to a solution since we are getting all of the bits in place to make this 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!

            1 Reply Last reply Reply Quote 0
            • G
              george1421 Moderator @pbriec
              last edited by Oct 18, 2018, 11:27 AM

              @pbriec Would you post the content of /tftpboot/default.ipxe from your FOG server? The more I look at this setup the more I think it should work as we configured it. I have to be missing something…

              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!

              P 1 Reply Last reply Oct 18, 2018, 11:55 AM Reply Quote 0
              • P
                pbriec @george1421
                last edited by Oct 18, 2018, 11:55 AM

                @george1421
                only that

                #!ipxe
                chain tftp://172.16.4.8/default.ipxe
                
                G 1 Reply Last reply Oct 18, 2018, 12:07 PM Reply Quote 0
                • G
                  george1421 Moderator @pbriec
                  last edited by george1421 Oct 18, 2018, 6:08 AM Oct 18, 2018, 12:07 PM

                  @pbriec Just for clarification, this file is from the FOG Server and not your main pxe boot server? We need this chain command file on your primary pxe boot server only.

                  You should not have touched this file, its created by the fog installer. If your post is accurate that explains why we received that error message.

                  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!

                  G 1 Reply Last reply Oct 18, 2018, 12:09 PM Reply Quote 0
                  • G
                    george1421 Moderator @george1421
                    last edited by Oct 18, 2018, 12:09 PM

                    @george1421 The default.ipxe file on the FOG server should look like this:

                    #!ipxe
                    cpuid --ext 29 && set arch x86_64 || set arch ${buildarch}
                    params
                    param mac0 ${net0/mac}
                    param arch ${arch}
                    param platform ${platform}
                    param product ${product}
                    param manufacturer ${product}
                    param ipxever ${version}
                    param filename ${filename}
                    param sysuuid ${uuid}
                    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                    :bootme
                    chain http://<fog_server_ip>/fog/service/ipxe/boot.php##params
                    

                    where <fog_server_ip> is the physical IP address of your fog server on your imaging network.

                    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 0
                    • P
                      pbriec
                      last edited by Oct 18, 2018, 12:50 PM

                      good job! you are the best.

                      it seems to work with my VM. I will try with the Opliplex 5260 very soon. I’m not on the same working place today.

                      thanks
                      Pierre

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        24/24
                        Last post

                      169

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project