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

    PXEboot with Netgear router

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    22
    8.8k
    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.
    • george1421G
      george1421 Moderator @gabbas
      last edited by george1421

      @gabbas Well unless I missed something, this entire config file is commented out. So I can guess it doesn’t work as you need it. Let me grab a demo one.

      Lets start with this one. Update the 192.168.1.24 address to match your fog server IP address. Move the other config file out of the dnsmasq directory and save this one as ltsp.conf and then restart dnsmasq. FWIW: This config file is only for bios based computer, if you want uefi we need to change a few things. Dual booting may require you update dnsmasq to version 2.76.

      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      
      # Disable re-use of the DHCP servername and filename fields as extra
      # option space. That's to avoid confusing some old or broken DHCP clients.
      dhcp-no-override
      
      # The boot filename, Server name, Server Ip Address
      dhcp-boot=undionly.kpxe,,192.168.112.24
      
      # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
      pxe-prompt="Booting FOG Client", 1
      
      dhcp-range=192.168.112.24,proxy
      

      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!

      G 1 Reply Last reply Reply Quote 0
      • G
        gabbas @george1421
        last edited by

        @gabbas Many thanks for your quick response…I have made the changes but getting the error when try to restart dnsmasq:

        fog@fog:/etc/dnsmasq.d$ sudo nano ltsp.conf
        fog@fog:/etc/dnsmasq.d$ ls
        ltsp.conf  ltsp.conf.save  README
        fog@fog:/etc/dnsmasq.d$ sudo service dnsmasq restart
         * Restarting DNS forwarder and DHCP server configuration syntax check[fail]
        fog@fog:/etc/dnsmasq.d$
        
        
        G 1 Reply Last reply Reply Quote 0
        • G
          gabbas @gabbas
          last edited by

          @gabbas I think ltsp.conf.save should be removed, right? as its the same as lstfp.conf…

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

            @gabbas For dnsmasq, you need to move all files you don’t want it to look at out of its config directory. If its there it will read it.

            As for the syntax error tail /var/log/messages to see what it didn’t like.

            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!

            G 1 Reply Last reply Reply Quote 0
            • G
              gabbas @george1421
              last edited by

              @george1421 Yes…after removing the other files ,dnsmaq restarted okay…

              fog@fog:/etc/dnsmasq.d$ sudo service dnsmasq restart
               * Restarting DNS forwarder and DHCP server dnsmasq                   [ OK ]
              fog@fog:/etc/dnsmasq.d$ ls
              ltsp.conf  README
              fog@fog:/etc/dnsmasq.d$
              
              G 1 Reply Last reply Reply Quote 0
              • G
                gabbas @gabbas
                last edited by

                @gabbas but I am getting the same message “No boot file received” …I really appreciate your assistance.

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

                  @gabbas OK now that we (think) we know you have a good configuration file.

                  The next steps are to:

                  1. Install tcpdump on your FOG server.
                  2. Run the following command on the fog server: tcpdump -w output.pcap port 67 or port 68 or port 69 or port 4011
                  3. Pxe boot the target computer until you reach the error.
                  4. Back on the tcpdump command press ctrl-c to exit it out.
                  5. Post the pcap file here for review.

                  That pcap file will tell us what is going down the wire.

                  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!

                  G 2 Replies Last reply Reply Quote 0
                  • G
                    gabbas @george1421
                    last edited by

                    @george1421 Many thanks…will update the results here later on when.

                    1 Reply Last reply Reply Quote 0
                    • G
                      gabbas @george1421
                      last edited by

                      @george1421 said in PXEboot with Netgear router:

                      tcpdump -w output.pcap port 67 or port 68 or port 69 or port 4011

                      Hi george, When I run the above command on fog, i get nothing apart from: (I also boot the target machine at the same time):

                      fog@fog:~$  tcpdump -w output.pcap port 67 or port 68 or port 69 or port 4011   tcpdump:
                      fog@fog:~$
                      
                      george1421G 1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @gabbas
                        last edited by george1421

                        @gabbas You might have to do sudo before the tcpdump. But if the fog server can hear the dhcp request it should put what it hears in the output.pcap file.

                        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!

                        G 1 Reply Last reply Reply Quote 0
                        • G
                          gabbas @george1421
                          last edited by

                          @george1421 Can you please see the file attached…Many thanks…I know I am bothering you too much…much appreciated.0_1488316537931_issue.pcap

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

                            @gabbas I’m sorry to tell you this but there are no dhcp packets in that capture. But there are others. SO I can tell you did not use the tcpdump command as I posted. That command should have only included the dhcp discussions.

                            Also just to reconfirm the dhcp server, fog server, and pxe booting computer are on the same IP subnet, right?

                            We are here to help, so it is no bother. I can tell you if it was a bother, I would not be here. I know we can get this worked out if we can get a solid dhcp packet capture.

                            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!

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              gabbas @george1421
                              last edited by

                              @george1421 Thanks. Yes I conform fog server, router and pxe client are on the same subnet…(192.168.1.0/24). I ran the tcpdump command as you posted…but nothing happens…see the out put when I run this command:

                              fog@fog:~$ sudo tcpdump -w output.pcap port 67 or port 68 or port 69 or port 4011
                              [sudo] password for fog:
                              fog@fog:~$ ifconfig
                              

                              Does router’s IP address need to be put somewhere?

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

                                @gabbas Are you running that tcpdump command as root or the fog user?

                                If what you are seeing is true (the content of the output.pcap) file being 0 bytes then that also indicates that your fog server isn’t seeing any dhcp requests so dnsmasq will never send out the dhcp option 67 file name.

                                I can tell you that the command I posted does work, so I’m not sure why its not capturing things in your environment.

                                One idea, does your FOG server have more than 1 ethernet adapter?

                                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!

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  gabbas @george1421
                                  last edited by

                                  @george1421 Yes I also tried to run as root. The client only has 1 NIC…I dont know what’s really missing…

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

                                    @gabbas Something seems to be wrong here with tcpdump on your FOG server. After starting it you should see at least one or two lines of information. Something like this:

                                    fog@fog:~$ sudo tcpdump -w output.pcap port 67 or port 68 or port 69 or port 4011
                                    [sudo] password for fog:
                                    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
                                    listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
                                    

                                    The command sits there and waits. Leave it like this and fire up your client till you see the error message on the client. Then stop tcpdump (Ctrl+c) and upload the output.pcap file to the forums.

                                    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

                                    G 1 Reply Last reply Reply Quote 1
                                    • G
                                      gabbas @Sebastian Roth
                                      last edited by

                                      @Sebastian-Roth …I think something is missing in my configuration…Good thing is we are getting a server soon so that will take care of DHCP…I will update the outcome here asap…many thanks…You guys are great…I have Fog setup (which I manage in out department at a university) and it works there like a charm without an issue…I dont know why its not working here…But I will figure it out…(with your assistance…)

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

                                      160

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project