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

    Network Boot forgets Ethernet card exists after booting

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    pxe
    6
    13
    3.4k
    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.
    • KarloK
      Karlo
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Based on your tcpdump your pxe server is being handed information by the pxelinux.0 file, not ipxe. This would be, from my understanding, passing to an ipxe.lkrn file.

        The pxelinux.cfg is the indicator to me for this.

        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

        L 1 Reply Last reply Reply Quote 0
        • L
          lukebarone @Tom Elliott
          last edited by

          @Tom-Elliott OK, I can find the ipxe.krn file (not ipxe.lkrn) in my /tftpboot folder. Assuming this is correct, why will the FOG menu not appear? Is there more work I can trace back to help?

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

            I think the problem is we need to see what the DHCP is actually handing out.

            From what I can see, it’s pointing at pxelinux.0.

            pxelinux.0 is passing to ipxe.krn. The ipxe.krn has an embedded script that is told to look at the default.ipxe file.

            pxelinux.0, when initially loaded, looks for the “uuid” first, and on down until there’s nothing found and then it tries default. Default is what’s handing out the data back to the client machine (telling it to load ipxe.krn).

            If your dhcp is handing out undionly.kpxe as your original post suggests, then you’re not looking at the right place because your clients are definitely NOT looking at what you think they’re looking at.

            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

            L 1 Reply Last reply Reply Quote 0
            • L
              lukebarone @Tom Elliott
              last edited by

              @Tom-Elliott Well, this is awkward…

              Captured a tcpdump from the DHCP server, and you’re right! It’s dishing out pxelinux.0, not what I specified in the /etc/dhcp/dhcpd.conf file! More investigating on my part now… Thanks for the direction to look in!

              1 Reply Last reply Reply Quote 0
              • L
                lukebarone
                last edited by lukebarone

                OK, I got it to use the correct filename. Now, the machines start the booting from the network, and when iPXE loads (1.0.0+ 26050), it goes to:

                Configuring (net0 <MAC Address>)...... No configuration methods succeeded
                Configuring (net0 <MAC Address>)...... OK
                iPXE>
                

                The advantage now is that the correct MAC address is attempting to boot; the unfortunate part is that the FOG menu is still not coming up 😞

                I also tried with a “dumb switch” just before the computers in question - no change. I know that STP is disabled on all my switches leading back to the FOG Server (when Googling other forums, this came up quite a bit to check for).

                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @lukebarone
                  last edited by Wayne Workman

                  @lukebarone It’s dropping you to an ipxe shell.

                  So, you said previously that you had the correct file configured in dhcpd.conf, however later found that this wasn’t the case. What did you find? What did you change? Do you have more than one DHCP server? What was nextserver configured as (option 066 in windows) ?

                  Can you post your dhcpd.conf file here so I can look through it for issues?

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    lukebarone @Wayne Workman
                    last edited by

                    @Wayne-Workman Here it is:

                    authoritative;
                    option domain-name "sd57.lan";
                    option domain-name-servers 192.168.0.1,199.175.16.2;
                    option netbios-name-servers 192.168.0.3;
                    option local-pac-server code 252 = text;
                    option domain-search "sd57.bc.ca", "sd57.lan";
                    option routers 192.168.31.254;
                    
                    ddns-updates           on;
                    ddns-update-style      interim;
                    ignore                 client-updates;
                    update-static-leases   on;
                    
                    default-lease-time 3600;  #1 Hr
                    max-lease-time 28800;
                    log-facility local7;
                    
                    include "/etc/dhcp/ddns.key";
                    
                    zone sd57.lan. {
                      primary 127.0.0.1;
                      key DDNS_UPDATE;
                    }
                    
                    zone 0.168.192.in-addr.arpa. {
                      primary 127.0.0.1;
                      key DDNS_UPDATE;
                    }
                    
                    subnet 192.168.0.0 netmask 255.255.224.0 {
                    	authoritative;
                    	ddns-domainname "cla.sd57.bc.ca";
                    	next-server 192.168.0.4;	# FOG Server
                    #	filename "ipxe.pxe";
                    #	filename "intel.pxe";
                    #	filename "pxelinux.0";
                    	filename "undionly.kpxe";	# The closest thing I have to something working
                    #	filename "undionly.pxe";
                    	range 192.168.1.1 192.168.8.254;
                    	option subnet-mask 255.255.224.0;
                    	option broadcast-address 192.168.31.255;
                    	option routers 192.168.31.254;
                    	option netbios-name-servers 192.168.0.3;
                    	option netbios-node-type 8;
                    }
                    
                    Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman @lukebarone
                      last edited by Wayne Workman

                      @lukebarone You’re missing all the pxe options in the configuration. Below is what the fog installer puts at the top of the dhcpd.conf file. Put this at the top of the file and then give dhcpd a restart.

                      option space PXE;
                      option PXE.mtftp-ip    code 1 = ip-address;
                      option PXE.mtftp-cport code 2 = unsigned integer 16;
                      option PXE.mtftp-sport code 3 = unsigned integer 16;
                      option PXE.mtftp-tmout code 4 = unsigned integer 8;
                      option PXE.mtftp-delay code 5 = unsigned integer 8;
                      option arch code 93 = unsigned integer 16; # RFC4578
                      

                      Also towards the bottom of your configuration, the below lines are redundant, as you have it set globally already.

                      option routers 192.168.31.254;
                      option netbios-name-servers 192.168.0.3;
                      

                      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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

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

                        @lukebarone What kind of DHCP server/software are we talking about here. The config snippet you posted is partly DHCP and partly DNS (zone ...). I am not aware of any software being able to handle this kind of config. dnsmasq can do DHCP and DNS but has a different config syntax as far as I remember.

                        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

                        L Q 2 Replies Last reply Reply Quote 1
                        • L
                          lukebarone @Sebastian Roth
                          last edited by lukebarone

                          @Sebastian-Roth Using isc-dhcp-server on a separate Debian Jessie server (192.168.0.1)

                          @Wayne-Workman I’ll give that a try and report back. Because I never installed FOG’s DHCP server, I never knew about those lines.


                          Edit: I got this working. Issue with the switch, and I’m guessing, Auto-Negotiation. Turned it down to 100M Full Duplex, and it worked on the next boot! No change with the extra lines added to DHCP though.

                          1 Reply Last reply Reply Quote 0
                          • Q
                            Quazz Moderator @Sebastian Roth
                            last edited by

                            @Sebastian-Roth According to this discussion (http://serverfault.com/questions/806875/how-to-tell-isc-dhcp-correct-zone-for-reverse-zone-ddns-update) it has to do with reverse dns lookups

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

                            239

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project