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

Failed to get an IP via DHCP!

Scheduled Pinned Locked Moved Solved
FOG Problems
6
39
20.8k
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
    last edited by Apr 14, 2016, 1:04 PM

    first I have to get this out of the way: Ugh! this has a realtek lan adapter!!

    As for your kernels. I see you are running a trunk version. What I would like you to do is manually register this device in FOG. Then schedule a image deployment to this system, BUT make sure you select a debug deployment. This will push the bzImage to the client and the target will boot but drop you at a command prompt.

    From there lets use some hardware diagnostics commands to see what network adapter is built in.

    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!

    J 1 Reply Last reply Apr 14, 2016, 1:22 PM Reply Quote 1
    • J
      jes6309 @george1421
      last edited by Apr 14, 2016, 1:22 PM

      @george1421 Ok I’ve taken these steps, but when the laptop boots to the network, it gets up to “init.xz… ok” and just stops.

      G 1 Reply Last reply Apr 14, 2016, 1:36 PM Reply Quote 0
      • G
        george1421 Moderator @jes6309
        last edited by Apr 14, 2016, 1:36 PM

        @jes6309 (A bit confused now). In your OP you said that when you selected full registration you were getting the “Sending discover…” this should be the FOS kernel running with the virtual hard drive but not able to get a dhcp address. But when you do a debug deploy the system is freezing after the kernel gets the FOS virtual hard drive (init.xz)?

        This is a bit inconsistent.

        Thinking <…>

        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!

        J 1 Reply Last reply Apr 14, 2016, 1:55 PM Reply Quote 0
        • J
          jes6309 @george1421
          last edited by Apr 14, 2016, 1:55 PM

          @george1421 hmmmm

          idk if this will help, but when I run Kernel Update (after having fixed the credentials as per Wayne) it gets stuck on “Moving to TFTP server…”. If I close out of the operation and attempt to run Kernel Update again, I receive the “Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 144, Message: ftp_put(/var/www/html/fog/service/ipxe/bzImage): failed to open stream: No such file or directory.” error. On the fog server, if i check /var/www/html/fog/service/ipxe, “bzImage” is nowhere to be found. Note, it was present before attempting the kernel update. It’s as if the kernel update operation is just deleting the bzImage directory rather than actually updating it. I feel like these bizarre errors I’m getting when booting my client to fog and/or registering it as a host has got to be related to a bad kernel, or, after “updating”, a missing kernel.

          I’m just at loss for a fix.

          G 2 Replies Last reply Apr 14, 2016, 1:57 PM Reply Quote 0
          • G
            george1421 Moderator @jes6309
            last edited by Apr 14, 2016, 1:57 PM

            @jes6309 ok that is now understandable. I missed the part about the failed update. Let me see if I can get the url to manually download the kernels.

            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 @jes6309
              last edited by Apr 14, 2016, 2:01 PM

              @jes6309

              Execute the following commands on the fog server

              cd /var/www/html/fog/service/ipxe
              
              wget https://fogproject.org/inits/init.xz
              wget https://fogproject.org/inits/init_32.xz
              wget https://fogproject.org/kernels/bzImage
              wget https://fogproject.org/kernels/bzImage32
              

              This will download the latest (current) kernel and inits.

              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!

              J 2 Replies Last reply Apr 14, 2016, 2:12 PM Reply Quote 1
              • J
                jes6309 @george1421
                last edited by Apr 14, 2016, 2:12 PM

                @george1421 Ok that got me past “init.xz… ok”

                However, I’m getting the “Sending discover…” message again. This is with the debug deploy task scheduled.

                G 1 Reply Last reply Apr 14, 2016, 2:18 PM Reply Quote 0
                • G
                  george1421 Moderator @jes6309
                  last edited by Apr 14, 2016, 2:18 PM

                  @jes6309 Good that should eventually time out (I think) and drop you to the linux shell.

                  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!

                  J 1 Reply Last reply Apr 14, 2016, 2:25 PM Reply Quote 0
                  • J
                    jes6309 @george1421
                    last edited by Apr 14, 2016, 2:18 PM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • J
                      jes6309 @george1421
                      last edited by jes6309 Apr 14, 2016, 8:39 AM Apr 14, 2016, 2:25 PM

                      @george1421 Yup!

                      [Thu Apr 14 root@fogclient /]# is what I am seeing. What commands did you want me to run?

                      I went ahead and ran lshw -short and ethernet controller listed is “RTL8101E/RTL8102E PCI Express Fast Ethernet Controller”

                      G 1 Reply Last reply Apr 14, 2016, 2:55 PM Reply Quote 0
                      • G
                        george1421 Moderator @jes6309
                        last edited by george1421 Apr 14, 2016, 8:57 AM Apr 14, 2016, 2:55 PM

                        @jes6309 OK that is what I expected. I need to ping the @Developers to see if that hardware is in the current FOS kernel since I haven’t seen that one before. We actually need to get the device id. There is a linux command (thinking lspci) that will display the vendor and hardware ID or we can get the same information from a windows system.

                        <edit> I just checked and its lspci -k I’m suprised that my fog server running centos 7 doesn’t have lspci
                        ref: https://wiki.fogproject.org/wiki/index.php/Troubleshooting_Driver_Issues
                        </edit>

                        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!

                        J 1 Reply Last reply Apr 14, 2016, 3:02 PM Reply Quote 1
                        • J
                          jes6309 @george1421
                          last edited by Apr 14, 2016, 3:02 PM

                          @george1421 Ok here is the info I believe you are looking for:

                          Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)

                          Subsystem: Hewlett-Packard Company Device 8137

                          Kernel driver in use: r8169

                          G 1 Reply Last reply Apr 14, 2016, 3:07 PM Reply Quote 0
                          • G
                            george1421 Moderator @jes6309
                            last edited by george1421 Apr 14, 2016, 9:09 AM Apr 14, 2016, 3:07 PM

                            @jes6309 There is actually numbers like 8086:1502 that we’ll be looking for. The first group is vendor and the second is hardware id.

                            lspci -n then you will need to find the network adapter from the description

                            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!

                            J 1 Reply Last reply Apr 14, 2016, 3:11 PM Reply Quote 1
                            • J
                              jes6309 @george1421
                              last edited by Apr 14, 2016, 3:11 PM

                              @george1421 Ok, I think its 10ec:8136

                              1 Reply Last reply Reply Quote 1
                              • S
                                Sebastian Roth Moderator
                                last edited by Apr 15, 2016, 9:42 AM

                                @jes6309 As you can see here this NIC model is supported since kernel version 2.6.x and upwards. So it should not be a driver issue! As well, “Sending discovery…” actually means that we found a network interface and try to get an IP for it via DHCP. So it could be:

                                • Layer 1 issue like cable (you already checked that)
                                • Spanning tree issue (make sure you have RSTP or configured “port fast”)
                                • Auto-negotiation issue (try configuring static speed instead of auto-negotiation for that port)
                                • Ethernet energy saving (see if your switch has EEE/802.3az feature and disable if possible)

                                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

                                J W 3 Replies Last reply Apr 15, 2016, 11:46 AM Reply Quote 3
                                • J
                                  jes6309 @Sebastian Roth
                                  last edited by Apr 15, 2016, 11:46 AM

                                  @Sebastian-Roth I will start looking into these things, but if a switch configuration was causing the issue, wouldn’t I have run into the problem before upgrading to trunk? Never had these issues occur on the normal version of fog.

                                  Thanks!

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by Sebastian Roth Apr 15, 2016, 6:03 AM Apr 15, 2016, 12:03 PM

                                    @jes6309 said:

                                    if a switch configuration was causing the issue, wouldn’t I have run into the problem before upgrading to trunk? Never had these issues occur on the normal version of fog.

                                    Good point! Looking at if from this side only the last two bullet points seem to possibly cause the issue. Newer linux kernel with newer driver for the NIC might have a auto-negotiation problem or is now able to put the NIC in energy saving mode… and doing it wrong. Please check those two first.

                                    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

                                    J 1 Reply Last reply Apr 15, 2016, 1:22 PM Reply Quote 1
                                    • W
                                      Wayne Workman @Sebastian Roth
                                      last edited by Wayne Workman Jun 11, 2016, 12:12 PM Apr 15, 2016, 12:04 PM

                                      @Sebastian-Roth said in Failed to get an IP via DHCP!:

                                      @jes6309 As you can see here this NIC model is supported since kernel version 2.6.x and upwards. So it should not be a driver issue! As well, “Sending discovery…” actually means that we found a network interface and try to get an IP for it via DHCP. So it could be:

                                      • Layer 1 issue like cable (you already checked that)
                                      • Spanning tree issue (make sure you have RSTP or configured “port fast”)
                                      • Auto-negotiation issue (try configuring static speed instead of auto-negotiation for that port)
                                      • Ethernet energy saving (see if your switch has EEE/802.3az feature and disable if possible)

                                      wiki worthy

                                      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
                                      • J
                                        jes6309 @Sebastian Roth
                                        last edited by Apr 15, 2016, 1:22 PM

                                        @Sebastian-Roth Thanks! Setting static speed and enabling port-fast worked! I am now able to successfully register the host.

                                        1 Reply Last reply Reply Quote 1
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Apr 15, 2016, 1:51 PM

                                          @jes6309 Can you please verify if it is static speed or port-fast that make it work in your case? We have seen more auto-negotiation issues with newer kernels lately. I am a bit concerned about this! Are we able to fix this from our side (kernel parameter or whatever)??

                                          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

                                          J 1 Reply Last reply Apr 15, 2016, 2:25 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 2 / 2
                                          2 / 2
                                          • First post
                                            20/39
                                            Last post

                                          155

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project