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

    Cannot get iPXE to connect to FOG Server

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    31
    5.1k
    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.
    • RAVR
      RAV @george1421
      last edited by

      @george1421 " dhcp server, dhcp options 66 should be the ip address of your fog server, and dhcp option 67 should be undionly.kpxe for a bios based computer or ipxe.efi for a uefi based computer."

      Can you tell me how to go about doing this?

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

        @rav So just to be clear on this.

        You are running fog on an isolated network. Is that correct?

        When you installed FOG did you tell the installer to install the DHCP server?

        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!

        RAVR 1 Reply Last reply Reply Quote 0
        • RAVR
          RAV @george1421
          last edited by

          @george1421 I believe I did make that choice, yes. I was following a guide. And it is on an isolated network.

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

            @rav Ok lets assume yes.

            The following command will tell if the dhcp server is running in memory.

            ps -aux | grep isc This should return 2 lines. One of the lines will be the grep process and the second should be the process running the isc-dhcp server.

            Another check we can do is see if the config file exists and is populated.

            See if this file exists /etc/dhcp/dhcpd.conf

            It should be populated with something that looks like this: https://wiki.fogproject.org/wiki/index.php/BIOS_and_UEFI_Co-Existence#Example_1

            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!

            RAVR 1 Reply Last reply Reply Quote 0
            • RAVR
              RAV @george1421
              last edited by

              @george1421 So, I actually had to manually create that /etc/dhcp/dhcpd.conf file. Which tells me the DHCP probably wasn’t set up correctly from the beginning, I’m guessing.

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

                @rav Does your fog server have internet access? Possibly by a management interface? If yes then you can manually install the dhcp server. The config is as I pointed out before.

                https://www.linuxfordevices.com/tutorials/ubuntu/dhcp-server-on-ubuntu

                You will want to create your dhcp pool on the same subnet as imaging network interface.

                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!

                RAVR 1 Reply Last reply Reply Quote 0
                • RAVR
                  RAV @george1421
                  last edited by

                  @george1421 Okay, I went about creating the DHCP server. What should I do next?

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

                    @rav If you are using the config file from the web site, updated the scope in that config file to match the imaging subnet. Once that is set, I would restart the isc-dhcp server, then place an operating windows computer on that imaging subnet. Use ipconfig to confirm a windows computer can pull the IP address and ping the fog server. IF that all passes, then you should be able to pxe boot because the isc-dhcp config will / should point towards the fog server for pxe booting.

                    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!

                    RAVR 1 Reply Last reply Reply Quote 0
                    • RAVR
                      RAV @george1421
                      last edited by

                      @george1421 Have I done this right? I’m still getting “No DHCP or proxyDHCP offers were received.”

                      0807f6a6-6963-4e5a-8820-bd71f54ff3b2-image.png

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

                        @rav How about you share your dhcp config with my using a file share site so I can look at the entire config. Also provide the output of this command ip a s and the subnet you need for this dhcp server. I think that will be the shortest path to done.

                        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!

                        RAVR 2 Replies Last reply Reply Quote 0
                        • RAVR
                          RAV @george1421
                          last edited by

                          @george1421 said in Cannot get iPXE to connect to FOG Server:

                          Also provide the output of this command ip a s and the subnet you need for this dhcp server.

                          I’m not sure how to do this. Do I put “ip a s” at the end of the code?

                          george1421G 1 Reply Last reply Reply Quote 0
                          • RAVR
                            RAV @george1421
                            last edited by

                            @george1421 Here is the file

                            https://www.filemail.com/d/pdetayjztgbfuae

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

                              @rav said in Cannot get iPXE to connect to FOG Server:

                              Do I put “ip a s” at the end of the code?

                              Sorry I should have been more clear. On the fog server linux console run that command. It will list out the network adapters configured in your computer.

                              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!

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

                                @rav The config file you provided is for the dhcp client (app that runs on your computer that contacts the dhcp server). the file we are looking for is this: /etc/dhcp/dhcpd.conf

                                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!

                                RAVR 1 Reply Last reply Reply Quote 0
                                • RAVR
                                  RAV @george1421
                                  last edited by

                                  @george1421 Here’s a screenshot 5d176766-0667-453d-8da0-192546d31398-image.png

                                  1 Reply Last reply Reply Quote 0
                                  • RAVR
                                    RAV @george1421
                                    last edited by

                                    @george1421 https://www.filemail.com/d/kzauwhyfwzicdfr Sorry, here’s the correct file.

                                    george1421G 2 Replies Last reply Reply Quote 0
                                    • george1421G
                                      george1421 Moderator @RAV
                                      last edited by

                                      @rav OK let me work on the file and get it back to you. The short answer is the network defined in the dhcp server is not the same as your fog server network interface.

                                      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!

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

                                        @rav ok here is the updated file: https://drive.google.com/file/d/1_pJWzun8R5v-PdMWk0j_l1dt8qEZzpjC/view?usp=sharing

                                        What I did here is I see your fog server is at 192.168.5.234. In the config file I set the next server value to 192.168.5.234 The boot file is set dynamically by the config file. The dhcp range (what the isc dhcp server will hand out) is 192.168.5.10 to 192.168.5.200.

                                        replace the existing config file with this one.

                                        At the fog server’s command prompt (su to root to do this).

                                        Issue these commands.
                                        First to stop and then restart the isc-dhcp server (this will load in the new config file)
                                        systemctl restart isc-dhcp-server

                                        wait about 10 seconds

                                        Now lets get the status of the dhcp server.
                                        systemctl status isc-dhcp-server

                                        Hopefully somewhere in the wall of text it will say running.

                                        Now lets ensure that the dhcp server will startup at boot time.
                                        systemctl enable isc-dhcp-server

                                        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!

                                        RAVR 1 Reply Last reply Reply Quote 0
                                        • RAVR
                                          RAV @george1421
                                          last edited by

                                          @george1421 Gotcha. That makes sense. Thank you for your help!!

                                          1 Reply Last reply Reply Quote 0
                                          • RAVR
                                            RAV @george1421
                                            last edited by

                                            @george1421 Okay, I did the three commands you listed, but I think it failed on the second command. I would send you a log but I don’t know how to generate one from the terminal other than to copy and paste, and when I do that it doesn’t catch all the lines completely.

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

                                            163

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project