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

    Impossible to boot on PXE......

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    pxe fog debian 8 dhcp 66 & 67
    7
    41
    26.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.
    • JJ FullmerJ
      JJ Fullmer Testers
      last edited by

      I would firstly strongly recommend upgrading to trunk. It includes the latest version of ipxe which alone could fix the issue.
      But I have a few other ideas from my tests of difficult networks that I’ve gotten FOG working on.

      So if I understand correctly you already have reserved ips on your windows dhcp for the hosts you are testing. Does FOG also have a reserved IP address in the dhcp? Something I’ve had good luck with is giving FOG a reservation on the DHCP server (On the same subnet as the computers it’s imaging, even if you have seperate subnets for servers and workstations) and a DNS entry too and then set option 66 with the FQDN (Fully Qualified Domain Name/Hostname.domain). This could be part of the issue here, but since you’re getting as far as you are it probably isn’t, but it could help since it may help the with getting the dhcp address.

      So in summary of that idea

      • Give FOG a dhcp reservation
      • Give FOG a dns reservation
      • Set Option 66 to hostname

      Now A separate idea, even though you do have the dhcp method working. If it continues to give you grief you can give proxy dhcp via dnsmasq a try. I’ve had luck with it in environments that don’t like being edited. You typically don’t want to use poth the dhcp option and dnsmasq, however in some harder to modify network configurations, it is helpful to have both running. But I’ve also seen where one breaks the other, so just be aware of that when trying. So if you try this method, I would try unsetting option 66 and 67. And if it doesn’t work try setting the options again.

      I put some information about configuring dnsmasq in a post in this thread
      https://forums.fogproject.org/topic/6262/tftp-problems/43

      There is also more information in the wiki
      https://wiki.fogproject.org/wiki/index.php/ProxyDHCP_/dnsmasq-_DRAFT
      https://wiki.fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/Using_FOG_with_no_DHCP_server

      Hopefully that’s helpful in some way.

      Have you tried the FogApi powershell module? It's pretty cool IMHO
      https://github.com/darksidemilk/FogApi
      https://fogapi.readthedocs.io/en/latest/
      https://www.powershellgallery.com/packages/FogApi
      https://forums.fogproject.org/topic/12026/powershell-api-module

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

        Interesting post! Great that you got it as far as iPXE being loaded from TFTP. iPXE itself does another round of DHCP to be able to communicate and load things like the kernel or menu via HTTP. You wonder why this is not working if DHCP does work on the first run before iPXE. Spanning tree settings on your switch might be an issue here. But quite often this would cause an issue earlier on already. But you can still try setting “port fast” on this switch port where your client is connected. Newer versions of iPXE are better at handling this. But not the one coming with FOG 1.2.0 AFAIK.

        I really love diving into a PCAP dump as this is right down to the details. I don’t need to guess what’s going on. I just see it. I am more than happy to have a look if you upload a PCAP file! Wireshark filter bootp && tftp is great for this (or port 67 or port 68 or port 69 if you are using tcpdump)…

        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

        arnaudrigoleA Wayne WorkmanW 2 Replies Last reply Reply Quote 3
        • arnaudrigoleA
          arnaudrigole @JJ Fullmer
          last edited by arnaudrigole

          @Arrowhead-IT @Sebastian-Roth @george1421

          Ok, il will upgrade to trunk to test

          Thanks for ur help, i will try to set up the first solution and i come back to say you whats up
          i’ll try to capture with wireshark before i do this modifications

          Regards

          1 Reply Last reply Reply Quote 2
          • C
            cschneider.tech @arnaudrigole
            last edited by

            @arnaudrigole said:

            Hi,

            Thanks for your fast response!!!

            10.1.18.180 (fog server IP) is defined on option 66
            undionly.kpxe is defined on option 67

            The reason why those options are not defined directly is not simple…
            Orange, our service provider for IP phones, used our DHCP options to load the AASTRA phones firmware by PXE, to simplify the configuration…
            Then, these reboot on dedicated voice vlan… (F*CK)… so i’m forced to find a solution to skirt this… Precision : i havent used FOG as DHCP server, did i had to?

            When i boot on NIC; thats steps are displayed:
            1/ Initializing and establishing link…
            2/ CLIENT MAC ADDR: XXXXXXXXXXX GUID XXXXXXXXXX
            CLIENT IP : 10.1.19.233 MASK 255.255.0.0
            GATEWAY X.X.X.X

            3/ PXE-E32: TFTP open timeout
            4/ PXE-M0F: Exiting Intel Boot Agent

            Selected boot device failed, press any key to reboot…

            Did this problem get solved? If so, how? I am having the EXACT same problem even after upgrading to build 6064 😞

            1 Reply Last reply Reply Quote 0
            • arnaudrigoleA
              arnaudrigole
              last edited by

              i’ll work on it tomorrow, i’ll come back with pcap file but i need to move my machines on a cisco manageable switch to setup the port mirroring, before setup the trunk to resolve (?) the problem.

              I will give you the status here
              Thanks for your precious help

              Regards

              1 Reply Last reply Reply Quote 0
              • arnaudrigoleA
                arnaudrigole @Sebastian Roth
                last edited by arnaudrigole

                @Sebastian-Roth

                Hi !

                I just registered two wireshark sessions, the first (OPX390.pcapng) is the one which have the problem i mentioned previously,

                the second (E5410) is another one which try to contact the IP 10.1.18.180 while the FOG server IP is configured to 10.1.11.170 (i updated option 66 in DHCP)

                Re-Edit: for the second problem, i think its about fog configuration, because i defined 10.1.18.180 while i installed fog. I modified the “FOG_WOL_HOST” to “10.1.11.170”, and “FOG_TFTP_HOST” , but the problem persists:
                http://10.1.18.180/fog/service/ipxe/boot.php … connection reset (http://ipxe.org/0f0c6039) Could not boot: connection reset

                Opx390:(3kb)
                https://owncloud.lesrigole.fr/index.php/s/IPr0bf63jsRfkeV/download
                E5410:(5mb???)
                https://owncloud.lesrigole.fr/index.php/s/0oKDyDCtCaelCDu/download
                Edit: Deleted because contains too much private informations…

                @Arrowhead-IT @george1421
                Now i’ll configure the trunk to try to resolve the problem

                Thanks for your help! 🙂
                Arnaud

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

                  @arnaudrigole There is not much information in OPX390.pcapng. I see three DHCP discovery packets (probably from this machine) but nothing else related to DHCP or PXE booting. So this does not look like the boot process is being captured. As well I see “MSFT 5.0” being set as vendor class identifier in thos DHCP discovery packets. Is it windows asking for an IP address? Anyhow. This is not helpful, sorry.

                  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

                  arnaudrigoleA 1 Reply Last reply Reply Quote 0
                  • arnaudrigoleA
                    arnaudrigole @Sebastian Roth
                    last edited by arnaudrigole

                    @Sebastian-Roth

                    Thanks for your reply!

                    Ok, i used filters “tftp && bootp” however …? Which one i must use to do a better capture ?

                    MSFT 5.0 ? Strange… i just set up “MAC Adress” “is equal :” in my dhcp strategy as you can see:
                    alt text

                    Any idea for my second problem?
                    I re-ran the installfog.sh , defined IP to 10.1.11.170, IP of the storage node and i looked at all parameters on FOG interface > FOG Configuration > FOG Settings

                    And my PC still try to open http://10.1.18.180/fog/service/ipxe/boot.php… ?

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

                      @george1421 said:

                      But the filter you should use in wireshark is " bootp || tftp".

                      wiki

                      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
                      • Wayne WorkmanW
                        Wayne Workman @arnaudrigole
                        last edited by

                        @arnaudrigole said:

                        And my PC still try to open http://10.1.18.180/fog/service/ipxe/boot.php… ?

                        Look for FOG Configuration -> FOG Settings -> Web Server -> FOG_WEB_HOST

                        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/

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

                          Also, this might be a good time to introduce this: http://sourceforge.net/p/fogupdateip/code/HEAD/tree/

                          Works great on CentOS 7 and Fedora 23 Server.

                          It basically allows your FOG server to be assigned any IP from a pre-existing DHCP server, and it auto-configures the server and dnsmasq for you every time the ip changes.

                          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 1
                          • arnaudrigoleA
                            arnaudrigole @Wayne Workman
                            last edited by arnaudrigole

                            @Wayne-Workman

                            Hi !
                            Thanks for your reply!
                            value in “FOG_WEB_HOST” is the true ip… no problem.

                            I’ll update to trunk today
                            does FogUpdateIP works on Debian 8 jessie?

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

                              @arnaudrigole For your second issue take a look at /tftpboot/default.ipxe on your FOG server and edit as needed.

                              Thanks Wayne, I must have been half asleep when writing the post about wireshark filters. Sure it ought to be bootp || tftp (not &&)!! Can you please try again? Keep your wireshark ready, set with those filters, then bootup the client (cold boot!) and see if you get more packets.

                              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

                              arnaudrigoleA 2 Replies Last reply Reply Quote 0
                              • arnaudrigoleA
                                arnaudrigole @Sebastian Roth
                                last edited by

                                @Sebastian-Roth

                                Ok, i go on it and i’ll post the reply fast

                                1 Reply Last reply Reply Quote 0
                                • arnaudrigoleA
                                  arnaudrigole @Sebastian Roth
                                  last edited by arnaudrigole

                                  @Sebastian-Roth
                                  Ok, after i’ve edited “default.ipxe” it works, my PC boot on pxe interface
                                  i tried to upload the image of PC

                                  So: I created a task to upload the current image from the PC to my FOG server, it begins, then it reboot after 1 minute without error message, i’ll post a pcap too.
                                  Edit: Here is the pcap, protected by pw i’ll send you in private
                                  https://owncloud.lesrigole.fr/index.php/s/m2EChdbHuTdo3fW/authenticate

                                  EDIT IMPORTANT: I defined the storage type in my image settings to “multiple partition image / not resizable” and it seems working; partclone is currently running on my computer.

                                  For the first problem, here is the pcap file i recaptured with filter bootp || tftp
                                  https://owncloud.lesrigole.fr/index.php/s/sq6LM3uo0OWzYwW/download

                                  Really appreciate your active help, from all you

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

                                    @arnaudrigole said:

                                    does FogUpdateIP works on Debian 8 jessie?

                                    No, not yet anyway. I need to build a Debian server to mess around with.

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

                                      @arnaudrigole As I already explained things usually should go like this: PC boots, NIC sends PXE DHCP discovery and gets back PXE information (next-server and filename). Then it loads the file via TFTP and executes it. FOG uses iPXE as a second stage. So far so good. From what I can see in the PCAP file this is perfectly happening for you. Cannot see any issues there. But then I see four DHCP requests from iPXE (which was loaded and executed as a first stage). But there is NO response from the DHCP server.

                                      Either the DHCP server does not like the DHCP request (maybe some DHCP option that iPXE is sending) but I kind of doubt this as others seam to be able to use windows DHCP server without a problem.
                                      Or it could be because of spanning tree (STP). The NIC is reset a couple of times while this PXE process is going on. If your switch has STP enabled but port fast is not used this might cause exactly the issue you see: https://wiki.fogproject.org/wiki/index.php/STP/Portfast/RSTP/FMSTP

                                      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

                                      arnaudrigoleA 1 Reply Last reply Reply Quote 2
                                      • E
                                        EAHarvey
                                        last edited by

                                        So it times out on the TFTP part? Change from undionly.kpxe to undionly.kkpxe

                                        1 Reply Last reply Reply Quote 0
                                        • arnaudrigoleA
                                          arnaudrigole @Sebastian Roth
                                          last edited by

                                          @Wayne-Workman
                                          It will be helpful 🙂

                                          @Sebastian-Roth
                                          There is no spanning-tree in our configuration actually, i tried to boot with 2 differents computers (Latitude E5510 and Opx390) on the same port to do the packet captures. The first arrives to boot then find the pxe file, and upload its image, but the second has no response from DHCP ? That’s strange ^^ Both have the same configuration in dhcp strategy, i’ll try to erase/recreate the host on it

                                          @EAHarvey
                                          Hello!
                                          What does it change??

                                          E 1 Reply Last reply Reply Quote 0
                                          • E
                                            EAHarvey @arnaudrigole
                                            last edited by

                                            @arnaudrigole When i was having tftp timeouts this is what I changed to make it work. The iPXE is the open source PXE boot environement that FOG uses. Let me see exactly what the difference is between kpxe vs kkpxe. @Senior-Developers may be able to shed a bit more light. I would love to know exactly also.

                                            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post

                                            197

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project