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

    Fog Setup with Exsiting DHCP Server onsite with no Bootp

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    24
    4.3k
    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.
    • T
      TechWiz
      last edited by TechWiz

      Hi @Sebastian-Roth

      Thanks in Advance for your assistance

      My Config

      Clean install Ubunthu 16.04 lts with latest updates
      Fog v 1.5.5

      I need to deploy Images on sites with soho routers that can provide dhcp only no bootp features

      What will your ideal fog config with dnsmasq look like to be able to function in environments like this.

      Regards

      1 Reply Last reply Reply Quote 0
      • T
        TechWiz
        last edited by

        Installed a lab system

        with dnsmasq

        0_1543240854956_5b52ba1a-4ae7-4f53-bc5d-9a44678b830e-image.png

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

          Quick start here: https://forums.fogproject.org/topic/12706/changing-ip-s-on-a-portable-fog-server/8

          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
          • george1421G
            george1421 Moderator @TechWiz
            last edited by

            @TechWiz make sure you are using dnsmasq 2.76 or later dnsmasq -v

            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
            • T
              TechWiz
              last edited by

              Thanks George during the install i also disabled the dhcp feature of fog is that correct?

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

                @TechWiz said in Fog Setup with Exsiting DHCP Server onsite with no Bootp:

                Thanks George during the install i also disabled the dhcp feature of fog is that correct?

                Yes correct. The error we see in the picture shows that you have an older dnsmasq version which appends .0 to the end of the filename. Maybe update to Ubuntu 18.04 or set a link: ln -s /tftpboot/undionly.kpxe /tftpboot/undionly.kpxe.0

                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

                1 Reply Last reply Reply Quote 0
                • T
                  TechWiz
                  last edited by

                  @Sebastian-Roth said in Fog Setup with Exsiting DHCP Server onsite with no Bootp:

                  ln -s /tftpboot/undionly.kpxe /tftpboot/undionly.kpxe.0

                  I will test both options

                  Thanks for your support

                  Blessings

                  1 Reply Last reply Reply Quote 0
                  • T
                    TechWiz
                    last edited by

                    @TechWiz said in Fog Setup with Exsiting DHCP Server onsite with no Bootp:

                    ln -s /tftpboot/undionly.kpxe /tftpboot/undionly.kpxe.0

                    I have done ln -s /var/lib/tftpboot/undionly.kpxe /var/lib/tftpboot/undionly.kpxe.0

                    Testing now…

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      TechWiz @TechWiz
                      last edited by

                      @TechWiz

                      Still the same error

                      Install ubuntu 18.04 Lts now

                      1 Reply Last reply Reply Quote 0
                      • T
                        TechWiz
                        last edited by

                        Will Update shortly

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

                          @TechWiz said in Fog Setup with Exsiting DHCP Server onsite with no Bootp:

                          /var/lib/tftpboot/

                          Why /var/lib/tftpboot/??? FOG changes the config to point to /tftpboot!! Did you modify the path in the config by hand?

                          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

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

                            @TechWiz What version of dnsmaq is installed? Use this command from the linux command prompt sudo dnsmasq -v It needs to be version 2.76 or later.

                            Also if you use dnsmaq then you need to disable isc-dhcp server if you had FOG installer enable it.

                            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
                            • T
                              TechWiz
                              last edited by

                              Hi George

                              I am installing a clean ubuntu 18.04 lts now with latest update, the fog 1.5.5 will disbale or select no for fog dncp option is that correct with you sir?

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

                                @TechWiz You don’t need to reinstall the entire system if you did select to install isc-dhcp server. You would simply just tell the service to stop and then update the .fogsettings file so the next time you run the installer it doesn’t enable it again for you.

                                But to answer your question, correct answer NO to install dhcp server option. Then install dnsmasq using the quick start guide I provided.

                                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!

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  TechWiz @george1421
                                  last edited by

                                  @george1421

                                  I will do so ubuntu 18.04 almost done, thanks again

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    TechWiz
                                    last edited by Sebastian Roth

                                    Hi George

                                    Can I use your config just as is just change the ip address, regards

                                    # 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
                                    
                                    # The boot filename, Server name, Server Ip Address
                                    dhcp-boot=undionly.kpxe,,<fog_server_IP>
                                    
                                    # 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
                                    
                                    # inspect the vendor class string and match the text to set the tag
                                    dhcp-vendorclass=BIOS,PXEClient:Arch:00000
                                    dhcp-vendorclass=UEFI32,PXEClient:Arch:00006
                                    dhcp-vendorclass=UEFI,PXEClient:Arch:00007
                                    dhcp-vendorclass=UEFI64,PXEClient:Arch:00009
                                    
                                    # Set the boot file name based on the matching tag from the vendor class (above)
                                    dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,,<fog_server_IP>
                                    dhcp-boot=net:UEFI,ipxe.efi,,<fog_server_IP>
                                    dhcp-boot=net:UEFI64,ipxe.efi,,<fog_server_IP>
                                    
                                    # 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
                                    
                                    # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
                                    # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
                                    # This option is first and will be the default if there is no input from the user.
                                    pxe-service=X86PC, "Boot to FOG", undionly.kpxe
                                    pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi
                                    pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi
                                    
                                    dhcp-range=<fog_server_ip>,proxy
                                    
                                    george1421G 1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by

                                      @TechWiz Yes should be fine. Just give it a try and see what you get.

                                      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

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        TechWiz
                                        last edited by

                                        Hi George

                                        I need assistance to setup dnsmasq in ubuntu 18

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

                                          @TechWiz How should we possibly help you if you don’t tell us where exactly you are stuck and need help with.

                                          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

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

                                            @TechWiz Did you get dnsmasq installed? If so just save my config file in /etc/dnsmasq.d as ltsp.conf. Be sure to update the ltsp.conf file with the IP address of your fog server. Once that is done start dnsmasq using sudo systemctl start dnsmasq and then sudo systemctl enable dnsmasq to start the service at each reboot. Confirm that its running by issuing the following command ps aux|grep dnsmasq. It should show you that dnsmasq is running in memory. sudo systemctl status dnsmasq will also do that for you , but the output is a bit verbos.

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            281

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project