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

    connection timed out chainloading failed

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    25
    4.6k
    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
      geardog
      last edited by geardog

      Fog 1.5.9 on ubu 20.04.1 VM not handling dhcp, using dnsmasq

      I feel like the flaw is the tftp:// ip address showing the gateway, but fog settings shows the correct ip of fog.

      I’m close to having it up again, but … any help would be great !

      d0360782-6df0-46d2-a310-b1c21c90d047-image.png

      38e78eef-72f5-46c4-ae6a-9fd91d8d404d-image.png

      fog-service-output.txt

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

        @geardog Looks a bit like the actual DHCP server also hands out some PXE booting information that would overwrite the information you send via dnsmasq DHCP proxy.

        So question is, what kind of DHCP server is handing out the IPs.

        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

        G 1 Reply Last reply Reply Quote 0
        • G
          geardog @Sebastian Roth
          last edited by geardog

          @sebastian-roth Ah, I’m using clearOS, but I’ve left the tftp line blank, thinking it would be disabled.

          I tried pointing it at fog, at one point, but it didn’t seem to behave so I cleared the line.

          Just now I entered fog ip in the router’s tftp direction field. The client instead of attempting to boot from fog immediately gives a “media test failure” when trying to pxe boot.

          clearOS dhcp.conf (the quotes are surely wrong, but it’s in the api)
          61a7b803-e0c8-48cd-a938-a7b9a01e100b-image.png

          Clearing the field again takes me back to the start of the post and gives me the posted error. I’m not seeing anything screwy in the clearOS router, as running.

          clearOS dhcp.conf
          4369cbef-b33d-4602-be4f-b1bd881cf45a-image.png

          clearOS dnsmasq.conf
          d9e22649-4ea2-4750-8f52-1a6746b8442d-image.png

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

            @geardog In that case we’ll probably need to look at the actual packets on the wire: https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue

            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
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              Had a look at the PCAP and we clearly see the clearOS dnsmasq sending next server information in the DHCP offer/ack packet body. I think it shouldn’t do that in this setup because it’s confusing clients that receive the IP from DHCP and PXE boot information from the proxy DHCP.

              Maybe this is just the default behavior of dnsmasq even if it’s not setup as DHCP proxy or full PXE bootp service. Not sure.

              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

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Sebastian Roth
                last edited by george1421

                @sebastian-roth Would you send me a link to the pcap? I have ubuntu 20.04 running in my lab and have dnsmasq running because my router does the same thing. I can compare it to what I get here. It sends itself as the next server for bootp. dnsmasq (proxydhcp) should override any settings for both bootp and dhcp pxe booting.

                One check is to see if at the end of the dora process the target computer reaches out to the fog server on udp port 4011. If that dialog is not happening then the target computer will go with what is in the OFFER packet.

                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
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth

                  @george1421 said in connection timed out chainloading failed:

                  dnsmasq (proxydhcp) should override any settings for both bootp and dhcp pxe booting.

                  It kind of does as we see in the screenshot that PXE ROM is actually able to find and load the iPXE binary. Though it seems like iPXE is getting confused by the clearOS dnsmasq (not in proxy mode) sending “Next Server IP” in the DHCP body and therefore wants to load default.ipxe from the wrong IP.

                  One check is to see if at the end of the dora process the target computer reaches out to the fog server on udp port 4011. If that dialog is not happening then the target computer will go with what is in the OFFER packet.

                  Yes it does on the first DORA round (PXE ROM) but not on the second round (iPXE).

                  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

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @Sebastian Roth
                    last edited by george1421

                    @sebastian-roth said in connection timed out chainloading failed:

                    sending “Next Server IP” in the DHCP body and therefore wants to load default.ipxe from the wrong IP.

                    So from the pxe rom perspective dnsmasq is working as intended. Well then the FOG iPXE script is at fault (not laying actual blame here). It is responsible for taking over once iPXE starts. We may need to look at this exception case here to see if there is a weakness in the script.

                    My initial concern was that dnsmasq was behaving in an unexpected way causing the initial pxe boot to fail. That is why I wanted to see the pcap.

                    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
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @george1421 said in connection timed out chainloading failed:

                      Well then the FOG iPXE script is at fault (not laying actual blame here). It is responsible for taking over once iPXE starts. We may need to look at this exception case here to see if there is a weakness in the script.

                      Good point. Now that I think about it a little more I have a faint memory of trying to detect such a situation in the iPXE script but failed. Though I don’t remember the details but it might be iPXE just not using the information from the proxy DHCP in case it receives next server from the other one. Not sure though.

                      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
                      • G
                        geardog @geardog
                        last edited by

                        Thank you guys. If there is anything I can do to facilitate the big brains, let me know.
                        George, should I email you the PCAP?

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @geardog
                          last edited by

                          @geardog said in connection timed out chainloading failed:

                          George, should I email you the PCAP?

                          Sebastian was able to explain what he saw well enough to understand where the problem is and isn’t.

                          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
                            geardog
                            last edited by

                            While it was discussed that fog may be the issue, talking to Sebastian had me thinking there was some debate.

                            Here is the clearOS side.
                            https://www.clearos.com/clearfoundation/social/community/clearos-dnsmasq-seems-to-step-on-other-nextserver-broadcasts

                            His tcp dump isn’t showing a next server broadcast. I’m feeling like I may have done something wrong. hmm

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

                              @geardog Interesting that Nick doesn’t see the next server filed being populated. I am wondering if it’s just something tcpdump doesn’t print on the console? So can you please run tcpdump -i enp5s0 port 67 or port 68 -e -n -vv (maybe need a different network interface name) on your clearOS while PXE booting a machine? Post output here so we can all compare to what Nick posted in the other forum.

                              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

                              G 1 Reply Last reply Reply Quote 0
                              • G
                                geardog @Sebastian Roth
                                last edited by geardog

                                @sebastian-roth said in connection timed out chainloading failed:

                                tcpdump -i enp5s0 port 67 or port 68 -e -n -vv

                                No mention of next server.

                                [root@Clear0 etc]# tcpdump -i enp17s0f0 port 67 or port 68 -e -n -vv
                                tcpdump: listening on enp17s0f0, link-type EN10MB (Ethernet), capture size 262144 bytes
                                11:24:14.566873 1c:6f:65:83:a0:95 > Broadcast, ethertype IPv4 (0x0800), length 590: (tos 0x0, ttl 20, id 1, offset 0, flags [none], proto                                                                                                    UDP (17), length 576)
                                    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 1c:6f:65:83:a0:95, length 548, xid 0x6783a095, secs 8,                                                                                                    Flags [Broadcast] (0x8000)
                                          Client-Ethernet-Address 1c:6f:65:83:a0:95
                                          Vendor-rfc1048 Extensions
                                            Magic Cookie 0x63825363
                                            DHCP-Message Option 53, length 1: Discover
                                            Parameter-Request Option 55, length 36:
                                              Subnet-Mask, Time-Zone, Default-Gateway, Time-Server
                                              IEN-Name-Server, Domain-Name-Server, RL, Hostname
                                              BS, Domain-Name, SS, RP
                                              EP, RSZ, TTL, BR
                                              YD, YS, NTP, Vendor-Option
                                              Requested-IP, Lease-Time, Server-ID, RN
                                              RB, Vendor-Class, TFTP, BF
                                              Option 128, Option 129, Option 130, Option 131
                                              Option 132, Option 133, Option 134, Option 135
                                            MSZ Option 57, length 2: 1260
                                            GUID Option 97, length 17: 0.49.67.54.70.54.53.56.51.65.48.57.53.255.255.255.255
                                            ARCH Option 93, length 2: 0
                                            NDI Option 94, length 3: 1.2.1
                                            Vendor-Class Option 60, length 32: "PXEClient:Arch:00000:UNDI:002001"
                                11:24:14.567192 00:15:17:c4:a9:92 > Broadcast, ethertype IPv4 (0x0800), length 366: (tos 0xc0, ttl 64, id 2182, offset 0, flags [none], pr                                                                                                   oto UDP (17), length 352)
                                    172.17.17.1.bootps > 255.255.255.255.bootpc: [bad udp cksum 0xbe6f -> 0x1006!] BOOTP/DHCP, Reply, length 324, xid 0x6783a095, secs 8,                                                                                                    Flags [Broadcast] (0x8000)
                                          Your-IP 172.17.17.191
                                          Server-IP 172.17.17.1
                                          Client-Ethernet-Address 1c:6f:65:83:a0:95
                                          Vendor-rfc1048 Extensions
                                            Magic Cookie 0x63825363
                                            DHCP-Message Option 53, length 1: Offer
                                            Server-ID Option 54, length 4: 172.17.17.1
                                            Lease-Time Option 51, length 4: 43200
                                            RN Option 58, length 4: 21600
                                            RB Option 59, length 4: 37800
                                            Domain-Name Option 15, length 22: "xxx"
                                            Domain-Name-Server Option 6, length 12: 172.17.17.16,172.17.17.17,172.17.17.1
                                            Default-Gateway Option 3, length 4: 172.17.17.1
                                            BR Option 28, length 4: 172.17.17.255
                                            Subnet-Mask Option 1, length 4: 255.255.255.0
                                11:24:14.574606 00:15:5d:02:0a:16 > Broadcast, ethertype IPv4 (0x0800), length 374: (tos 0xc0, ttl 64, id 10347, offset 0, flags [none], p                                                                                                   roto UDP (17), length 360)
                                    172.17.17.82.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 332, xid 0x6783a095, secs 8, Flags [Broadcast] (0                                                                                                   x8000)
                                          Server-IP 172.17.17.82
                                          Client-Ethernet-Address 1c:6f:65:83:a0:95
                                          file "undionly.kpxe"[|bootp]
                                11:24:14.575555 00:15:5d:02:0a:16 > Broadcast, ethertype IPv4 (0x0800), length 374: (tos 0xc0, ttl 64, id 10348, offset 0, flags [none], p                                                                                                   roto UDP (17), length 360)
                                    172.17.17.82.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 332, xid 0x6783a095, secs 8, Flags [Broadcast] (0                                                                                                   x8000)
                                          Server-IP 172.17.17.82
                                          Client-Ethernet-Address 1c:6f:65:83:a0:95
                                          file "undionly.kpxe"[|bootp]
                                11:24:22.585346 1c:6f:65:83:a0:95 > Broadcast, ethertype IPv4 (0x0800), length 590: (tos 0x0, ttl 20, id 2, offset 0, flags [none], proto                                                                                                    UDP (17), length 576)
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by

                                  @geardog said in connection timed out chainloading failed:

                                  No mention of next server.

                                  So I would expect tcpdump to just not print it on the direct verbose text output. We did see it in the PCAP file. Or you have played with things so much that clearOS doesn’t send it anymore. But then I would expect the PXE boot to work just fine (with dnsmasq on the FOG server).

                                  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

                                  G 2 Replies Last reply Reply Quote 0
                                  • G
                                    geardog @Sebastian Roth
                                    last edited by

                                    @sebastian-roth
                                    No adjustments have been made. I was waiting for this to play out.

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      geardog @Sebastian Roth
                                      last edited by

                                      @sebastian-roth

                                      so a montage of my poking around
                                      In short, after chainloading fails and I run config, there is no proxydhcp listed
                                      when I run dhcp net0 from shell
                                      I then get fog popping up in proxydhcp with the correct ip

                                      What does this mean?

                                      1.jpg
                                      3.jpg
                                      7.jpg
                                      8.jpg
                                      net0
                                      9.jpg
                                      11.jpg
                                      12.jpg
                                      net0
                                      13-.jpg
                                      proxydhcp
                                      15.jpg

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

                                        @geardog said in connection timed out chainloading failed:

                                        In short, after chainloading fails and I run config, there is no proxydhcp listed
                                        when I run dhcp net0 from shell
                                        I then get fog popping up in proxydhcp with the correct ip

                                        So it looks like proxydhcp is not set on the first round of DHCP done by iPXE. Quite strange. Could you please verify by printing the variable when you get to the iPXE shell right after chainloading fails:

                                        iPXE> echo ${proxydhcp/next-server}
                                        ...
                                        iPXE> dhcp net0
                                        ...
                                        iPXE> echo ${proxydhcp/next-server}
                                        ...
                                        

                                        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

                                        G 1 Reply Last reply Reply Quote 0
                                        • G
                                          geardog @Sebastian Roth
                                          last edited by geardog

                                          @sebastian-roth

                                          aye, confirmed
                                          20210310_145208.jpg
                                          sticky slash key

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

                                            @geardog I am at a loss on why it would not populate the proxydhcp information on the first (successful) round of DHCP. May it’s something to do with timing. We have iPXE binaries that wait for 10 seconds before it does DHCP. Find those in /tftpboot/10secdelay/ directory on your FOG server. Either modify your dnsmasq configuration to point to the iPXE binary in that subdirectory or rename the one in /tftpboot/ and copy the delay binary there for testing.

                                            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

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

                                            256

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project