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

dhcp issue - Lenovo E73 - Realtek RTL8111GN

Scheduled Pinned Locked Moved
General
4
45
7.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.
  • P
    pdit
    last edited by Sebastian Roth May 2, 2019, 2:21 AM Apr 12, 2019, 8:51 PM

    FOG behaving differently on 2 different types desktops. it let me deploy image straight from fog menu on Lenovo M91p but it didn’t work on Lenovo E73. it gets IP from fog dhcp then after fog menu and selecting image to deploy it tries to get IP again and this time it fails. error “Failed to get an IP via DHCP!”

    Both known working desktops.

    Please help.

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Apr 12, 2019, 9:30 PM

      Well there’s two reasons that come to mind.

      1. You have spanning tree enabled on the network port but you are not using one of the fast spanning tree protocols like RSTP. The test for this is to place a dumb (unmanaged) switch between the pxe booting computer and the building network switch. If it boots and images correctly with the unmanaged switch in between then its a spanning tree network issue.
      2. Since its getting into the fog iPXE menu but failing when FOS starts its possible that FOS doesn’t have the network driver built in. I kind of doubt it, but its possible. FOS is the Fog Operating System (customized version of linux) that runs on the target computer to capture and deploy images.

      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
      • P
        pdit
        last edited by Apr 12, 2019, 10:01 PM

        i have isolated network setup. using dumb switch and only fog server and target computer is connected.
        it is strange that i works in one desktop but not in other.

        G 1 Reply Last reply Apr 12, 2019, 10:53 PM Reply Quote 0
        • G
          george1421 Moderator @pdit
          last edited by Apr 12, 2019, 10:53 PM

          @pdit What version of fog are you using?

          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
            pdit
            last edited by Apr 17, 2019, 9:44 PM

            Latest one.

            1 Reply Last reply Reply Quote 0
            • P
              pdit
              last edited by Apr 18, 2019, 11:36 PM

              Here is screen shot of error i am getting. It is only happening to Lenovo E73 model desktops.

              20190418_163116.jpg

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Sebastian Roth Apr 19, 2019, 2:45 AM Apr 19, 2019, 8:45 AM

                @pdit Maybe our link detection is failing on this particular NIC. But I kind of doubt this as we simply use standard Linux tools and information from the kernel to figure this out. Really sounds like a spanning tree issue. Different NICs might behave in different ways here.

                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
                • P
                  pdit
                  last edited by Apr 19, 2019, 3:54 PM

                  so what can we do ? we will need this fog server to do imaging.currently most of our desktops are E73 model.

                  G 1 Reply Last reply Apr 19, 2019, 5:09 PM Reply Quote 0
                  • G
                    george1421 Moderator @pdit
                    last edited by george1421 Apr 19, 2019, 11:09 AM Apr 19, 2019, 5:09 PM

                    @pdit what I want you to do is manually register this E73 host with the fog server. Then schedule a capture/deploy (don’t care) but before you hit the schedule task button, tick the debug checkbox then schedule the task.

                    PXE boot the target computer. After a few enter key presses you will be dropped to a linux command prompt.

                    1. Key in ip addr show. Look to see if the target computer has an IP address. If not record the name of the ethernet adapter (like eth0 or eno33, or what ever) go to the next step.

                    2. Key in /sbin/udhcpc -i $iface --now were $iface is the name of the ethernet adapter found in step one. Does this now pickup an IP address. If not then go to step 3

                    3. Key in lspci -nn |grep -i net and post the results here.

                    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
                    • P
                      pdit
                      last edited by Apr 25, 2019, 6:44 PM

                      George, I ran debug task as you requested. here is picture showing the result. It did pickup IP after step 2 so didn’t bother doing 3rd step. let me know what this means and what can i do to fix this.

                      20190425_113710.jpg

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Apr 25, 2019, 7:02 PM

                        @pdit Please do me a favor and boot up your client for another debug session. This time run cat /sys/class/net/eth0/carrier, take a picture and post here as well. This is the link detection we are using in the scripts.

                        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
                        • P
                          pdit
                          last edited by Apr 25, 2019, 7:13 PM

                          Just ran the command and it returns with nothing. here is picture.

                          20190425_120913.jpg

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Apr 25, 2019, 7:56 PM

                            @pdit Ahhhh, too bad, we can’t see the output as your screen does not seem to be properly calibrated with the resolution used by the Linux kernel. Can you try re-calibrating the display before running the command so we get all the information on the left end of the output. Otherwise we need to do some bash magic. Running the following command lines should also work if you can’t fix the display stuff:

                            linkstate=$(cat /sys/class/net/eth0/carrier)
                            [[ $linkstate -eq 1 ]] && echo "Yeah, we got link here" || echo "Tooooo bad, Linux kernel is not able to detect the link"
                            

                            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
                            • P
                              pdit
                              last edited by Apr 25, 2019, 8:48 PM

                              Sorry about the screen issue. I just calibrated it and ran command again, This time it returned with “1”

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Sebastian Roth Apr 25, 2019, 10:10 PM Apr 26, 2019, 4:08 AM

                                @pdit Ok, now we know that our link state check in the startup scripts is indeed working as well for your network card. So question remains, why does it take more than 35 seconds after boot up to change its link state to UP?

                                Sure we can adjust the wait time for you but I suspect this time to be caused by either spanning tree or energy efficency settings on your switch.

                                You said that you have an isolated setup with a dumb switch. Which switch model exactly are you using??

                                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
                                • P
                                  pdit
                                  last edited by Apr 26, 2019, 4:45 PM

                                  I use following 2 switches. I get same problem in both. but when same switches are used with in network fog server there is no problem. it only happens with one particular desktop and in isolated setup only.

                                  https://www.linksys.com/us/p/P-LGS108P/
                                  https://www.amazon.com/KEEBOX-SGE05-1000Mbps-Gigabit-Ethernet/dp/B004FM58MO/ref=sr_1_fkmrnull_2?crid=3C2KC43XR3UPQ&keywords=keebox+switch&qid=1556297026&s=gateway&sprefix=keebox+%2Caps%2C192&sr=8-2-fkmrnull

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by Apr 26, 2019, 5:29 PM

                                    @pdit The Linksys LGS108P is not a real old school dump switch. Take a look at the specs and you’ll see it does have Spanning Tree features.

                                    The KEEBOX SGE05 seems to be more of a dump one.

                                    I’ll upload modified init’s in the next hour for you. Let’s see if that is of any help to you.

                                    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 Apr 26, 2019, 6:22 PM

                                      @pdit Try those inits: https://fogproject.org/inits/delay/init.xz and https://fogproject.org/inits/delay/init_32.xz (both have the timeout increased from 35 to 120 seconds - let’s see if that works for you)

                                      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
                                      • P
                                        pdit
                                        last edited by Apr 26, 2019, 6:42 PM

                                        Please provide instructions how to do this.

                                        Tom ElliottT 1 Reply Last reply Apr 26, 2019, 6:48 PM Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott @pdit
                                          last edited by Apr 26, 2019, 6:48 PM

                                          @pdit

                                          mv /var/www/fog/service/ipxe/init{,_orig_26-APR-19}.xz
                                          mv /var/www/fog/service/ipxe/init_32{,_orig_26-APR-19}.xz
                                          wget -O /var/www/fog/service/ipxe/init.xz --no-check-certificate https://fogproject.org/inits/delay/init.xz
                                          wget -O /var/www/fog/service/ipxe/init_32.xz --no-check-certificate https://fogproject.org/inits/delay/init_32.xz
                                          

                                          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 0
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            4/45
                                            Last post

                                          217

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project