• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • R
    RAV
    last edited by RAV Jul 25, 2022, 8:40 AM Jul 25, 2022, 1:42 PM

    “Cannot get iPXE to connect to FOG Server”

    Hello, I’m very inexperienced with this so I apologize if I explain any of this incorrectly or awkwardly.

    Long story short: I was grandfathered into FOG from a previous employee. He left us no documentation as to how he set it up or how it operates. Recently, our FOG server broke somehow; it gives the “Database connection unavailable” result. I’ve been trying to just recreate a new FOG from scratch. I’ve come to a wall: I cannot figure out how to get the PXE part to recognize the FOG’s IP address. I get the error “PXE E51: No DHCP or proxyDHCP offers were received.”

    Explain to me like the only thing I know how to do is open the Linux terminal and write “sudo -i”, because that’s about all I can do on my own.

    G T 2 Replies Last reply Jul 25, 2022, 7:49 PM Reply Quote 0
    • G
      george1421 Moderator @RAV
      last edited by Jul 25, 2022, 7:49 PM

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

      I get the error “PXE E51: No DHCP or proxyDHCP offers were received.”

      This specific error is related to your infrastructure and not FOG (at the moment).

      The error is telling you that your dhcp server either didn’t respond to the target computer, or your dhcp server responded but it didn’t provide the proper pxe boot info.

      What device is your dhcp server?

      Is the imaging network part of your business network or is your imaging network isolated, where FOG is your dhcp server?

      On your 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.

      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!

      R 2 Replies Last reply Jul 28, 2022, 2:28 PM Reply Quote 0
      • T
        Trev-lchs @RAV
        last edited by Jul 26, 2022, 2:56 PM

        @rav Can I just please add, if you are setting it up for UEFI, you must when adding the DHCP option to the new policy, you must put the Fog IP address in Option 66. You might think you don’t need to, as you already have it in for the BIOS booting. But if you are adding a policy for UFEI you must add the fog server address into option 66 for tftp server, otherwise the UFEI client does not know where to get the IPXE.EFI file (or whichever file you specify in option 67) from.

        This is not in the WIKI and is a step that is often missed. Especially by me.

        R 1 Reply Last reply Jul 28, 2022, 1:39 PM Reply Quote 2
        • R
          RAV @Trev-lchs
          last edited by Jul 28, 2022, 1:39 PM

          @trev-lchs Can you tell me what the commands are to do this? Or maybe a guide on how to do this? I’m not sure where to begin.

          T 1 Reply Last reply Jul 28, 2022, 1:50 PM Reply Quote 0
          • T
            Trev-lchs @RAV
            last edited by Jul 28, 2022, 1:50 PM

            @rav https://wiki.fogproject.org/wiki/index.php/BIOS_and_UEFI_Co-Existence Hi Rav, follow this, but please add the fog server IP to option 66. Also if you have subnets to need to complete this on each subnet scope on the dhcp server, also if you have 2 DHCP servers you must do it on each one and on each subnet

            R 1 Reply Last reply Jul 28, 2022, 2:07 PM Reply Quote 1
            • R
              RAV @Trev-lchs
              last edited by Jul 28, 2022, 2:07 PM

              @trev-lchs I typed all of this and I’m not sure what I need to change:

              subnet … {
              authoritative;
              …
              }
              …

              class “pxeclient” {
              match if substring (option vendor-class-identifier, 0, 9) = “PXEClient”;

              if substring (option vendor-class-identifier, 15, 5) = "00000" {
                  # BIOS client 
                  filename "undionly.kpxe";
              }
              elsif substring (option vendor-class-identifier, 15, 5) = "00006" {
                  # EFI client 32 bit
                  filename   "ipxe32.efi";
              }
              else {
                  # default to EFI 64 bit
                  filename   "ipxe.efi";
              }
              

              }

              T 1 Reply Last reply Jul 28, 2022, 2:11 PM Reply Quote 0
              • T
                Trev-lchs @RAV
                last edited by Jul 28, 2022, 2:11 PM

                @rav Sorry Rav my experience is with windows servers Maybe @george1421 will be better equipped to help you with this one.

                R 1 Reply Last reply Jul 28, 2022, 2:13 PM Reply Quote 1
                • R
                  RAV @Trev-lchs
                  last edited by Jul 28, 2022, 2:13 PM

                  @trev-lchs Ohh, okay, that makes sense. A windows server would have made this a lot easier I think, haha. I appreciate the help though 🙂

                  T 1 Reply Last reply Jul 28, 2022, 2:28 PM Reply Quote 0
                  • T
                    Trev-lchs @RAV
                    last edited by Jul 28, 2022, 2:28 PM

                    @rav I was assuming you were setting this up on a windows network, with an Microsoft windows domain. So is your DHCP server a linux box then?

                    R 1 Reply Last reply Jul 28, 2022, 2:32 PM Reply Quote 0
                    • R
                      RAV @george1421
                      last edited by Jul 28, 2022, 2:28 PM

                      @george1421 I run an Ubuntu server on VirtualBox and we use this as part of our imaging process in my job. It’s isolated on a computer that’s not regulated by my company, so it’s free to do whatever without blocks or firewalls.

                      I’m not sure how to change the dhcp options on my server.

                      1 Reply Last reply Reply Quote 0
                      • R
                        RAV @Trev-lchs
                        last edited by Jul 28, 2022, 2:32 PM

                        @trev-lchs Yes, this is a linux/ubuntu server setup on VirtualBox

                        1 Reply Last reply Reply Quote 0
                        • R
                          RAV @george1421
                          last edited by Aug 1, 2022, 3:44 PM

                          @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?

                          G 1 Reply Last reply Aug 1, 2022, 4:00 PM Reply Quote 0
                          • G
                            george1421 Moderator @RAV
                            last edited by Aug 1, 2022, 4:00 PM

                            @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!

                            R 1 Reply Last reply Aug 1, 2022, 4:15 PM Reply Quote 0
                            • R
                              RAV @george1421
                              last edited by Aug 1, 2022, 4:15 PM

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

                              G 1 Reply Last reply Aug 1, 2022, 4:22 PM Reply Quote 0
                              • G
                                george1421 Moderator @RAV
                                last edited by Aug 1, 2022, 4:22 PM

                                @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!

                                R 1 Reply Last reply Aug 1, 2022, 4:28 PM Reply Quote 0
                                • R
                                  RAV @george1421
                                  last edited by Aug 1, 2022, 4:28 PM

                                  @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.

                                  G 1 Reply Last reply Aug 1, 2022, 6:02 PM Reply Quote 0
                                  • G
                                    george1421 Moderator @RAV
                                    last edited by Aug 1, 2022, 6:02 PM

                                    @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!

                                    R 1 Reply Last reply Aug 1, 2022, 6:40 PM Reply Quote 0
                                    • R
                                      RAV @george1421
                                      last edited by Aug 1, 2022, 6:40 PM

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

                                      G 1 Reply Last reply Aug 1, 2022, 7:13 PM Reply Quote 0
                                      • G
                                        george1421 Moderator @RAV
                                        last edited by Aug 1, 2022, 7:13 PM

                                        @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!

                                        R 1 Reply Last reply Aug 4, 2022, 6:51 PM Reply Quote 0
                                        • R
                                          RAV @george1421
                                          last edited by Aug 4, 2022, 6:51 PM

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

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

                                          G 1 Reply Last reply Aug 4, 2022, 7:04 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            14/31
                                            Last post

                                          168

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project