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

pxe booting using dhcp from home router

Scheduled Pinned Locked Moved Solved
FOG Problems
5
9
1.4k
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.
  • M
    Mr_____T
    last edited by Jul 15, 2024, 1:07 AM

    Greetings,

    I spent several hours d.d.going/googling for an answer and now I’m posting here. I just installed the latest version of fog via git running under proxmox 8.x. I set it up to use my Verizon home router G3100 as the dhcp server.

    I am able to get an ip for a client. The dhcpd logs on the G3100 say as much. But that is all the pxe boot screen of my lenovo w540 just times-out and returns to the boot menu. I tried running wireshark (I either have not set up a proper condition or I am misapplying wireshark here) on one of my hosts to see if traffic was occurring between the dhcp server and fog w/o any success. I tried booting an ipxe iso via ventoy and got some data (ip address of the client, but no info regarding the pxe server.

    I need some suggestions regarding troubleshooting. I am not sure if my home router requires modification or what. I have experience using the linux command line but my knownledge of pxe and dhcp is incompleted.

    TIA

    T G 2 Replies Last reply Jul 15, 2024, 10:17 AM Reply Quote 0
    • T
      Tom Elliott @Mr_____T
      last edited by Jul 15, 2024, 10:17 AM

      @Mr_____T
      https://forums.fogproject.org/topic/12796/installing-dnsmasq-on-your-fog-server

      https://docs.fogproject.org/en/latest/installation/network-setup/proxy-dhcp/

      Might be good to start 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! 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

      M 1 Reply Last reply Jul 15, 2024, 10:21 PM Reply Quote 0
      • G
        george1421 Moderator @Mr_____T
        last edited by Jul 15, 2024, 10:34 AM

        @Mr_____T I agree with Tom. Many soho routers will put thier IP address as the {next-server} value instead of the FOG server’s IP address even if there is a spot to configure the {next-server} / dhcp option 66 value.

        With wireshark you should be able to capture the DORA (discover, offer, request, ack/nak) process since its transmitted with broadcast messages. So any computer connected to the same subnet as the target computer should be able to detect this messaging. In wireshark you can set a capture filter of port 67 or port 68 or use a display filter of bootp. Once wireshark is setup and you have the filter applied you should see at least 4 packets that align with the DORA communications. Look at the OFFER packet coming from your authorized dhcp server. (hopefully there is only one offer packet, or you might have a rouge dhcp server breaking the process). In the offer packet, look at the dhcp header fields there should be two if interest {next-server} and {boot-file}, if they exists and are correct look in the dhcp options section for options 66 (boot-server) and dhcp options 67 (boot-file). Both sets of fields need to be properly filled out.

        If your dhcp server is setting itself there and you can’t change the values then as Tom suggested we use dnsmasq to configure a proxy-dhcp configuration to override what the client is being told from your main dhcp server in regards to boot file and boot 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!

        M C 2 Replies Last reply Jul 16, 2024, 1:08 AM Reply Quote 0
        • M
          Mr_____T @Tom Elliott
          last edited by Jul 15, 2024, 10:21 PM

          @Tom-Elliott

          Thanks for your suggestions. I will get at it tonight.

          1 Reply Last reply Reply Quote 0
          • M
            Mr_____T @george1421
            last edited by Mr_____T Jul 15, 2024, 7:09 PM Jul 16, 2024, 1:08 AM

            @george1421

            Thanks for your reply. I searched through my home router (Verizon G3100) and was unable to find where I would set the ‘next server’. However, following @Tom-Elliott 's instructions, I got a client started. It failed on the second partition. I don’t have the particulars, but this is much further along that I could’ve imaged last week. I am off the bed for now ( I have a fog server at work running on proxmox as well that may need my attention tomorrow). Not solved but close.

            Tx again

            J G 2 Replies Last reply Jul 16, 2024, 12:18 PM Reply Quote 0
            • J
              JJ Fullmer Testers @Mr_____T
              last edited by Jul 16, 2024, 12:18 PM

              @Mr_____T I would also agree with @Tom-Elliott that the proxy dhcp with dnsmasq is the way to go. Especially with a router from your isp like that, it’s unlikely you’d be able to set those settings. I have seen the needed DHCP options on my Asus router at home but haven’t played with that just yet.

              If you get us the particulars on that failure (error message, deploy or capture, os being deployed/captured, etc) we will gladly help with that too.

              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

              1 Reply Last reply Reply Quote 0
              • G
                george1421 Moderator @Mr_____T
                last edited by Jul 16, 2024, 10:18 PM

                @Mr_____T If you have a router that can’t be managed or doesn’t support pxe booting, then dnsmasq is the best answer.

                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
                • C
                  Cire3 @george1421
                  last edited by Jul 18, 2024, 4:08 AM

                  @george1421 Every time I think I’m a nerd, I see George break down a setting in a 3 paragraphs, dissecting it in the craziest detail.

                  You guys rock. That level of detail is seriously helpful. Allowing us to learn other things in the process to help us later. When I see that effort to help someone, I just like to call it out !

                  I’m the kind of guy that needs to take everything apart to see how it all works. You guys definitely help to paint the picture.

                  1 Reply Last reply Reply Quote 2
                  • M
                    Mr_____T
                    last edited by Dec 3, 2024, 3:11 PM

                    This thread is quite old. Just here to mark it solved. I did manage to set my isp’s router as the dhcp server and successfully captured an image.
                    Thanks for all your suggestions and help.

                    1 Reply Last reply Reply Quote 0
                    • [[undefined-on, M Mr_____T, Dec 3, 2024, 3:14 PM]]
                    • 1 / 1
                    • First post
                      Last post

                    151

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project