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

    FOG server Withou dhcp services

    Scheduled Pinned Locked Moved Solved
    Tutorials
    2
    17
    1.2k
    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.
    • E
      errbravosix @george1421
      last edited by

      @george1421

      Thanks a lot to reply, i will continue searching for some solution, strange is, when i enable the true dhcp on my pfsense, everthing works fine.

      per hour without dhcp just work on legacy no problem, i will try discover whats is cause.

      Thank you so much, if you have any idea, please send a message.

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

        @errbravosix said in FOG server Withou dhcp services:

        enable the true dhcp on my pfsense, everthing works fine

        This is because pfsense is filling out both the bootp and dhcp parts for pxe booting.

        dhcp just work on legacy no problem

        This can be explained because the legacy bios firmware is probably only looking at the bootp fields and not only looking at dhcp fields for pxe boot info.

        The issue “I think” is specifically with dnsmasq and its configuration. There is something missing to tell it to also send dhcp fields and not just boot fields. I’ve just not used dnsmasq this way before I don’t know off the top of my head the 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!

        E 1 Reply Last reply Reply Quote 0
        • E
          errbravosix @george1421
          last edited by

          @george1421

          I understand your point.

          So i will continue looking for a solution.

          Can we leave this post open for now? Maybe someone can help at some point.

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

            @errbravosix said in FOG server Withou dhcp services:

            dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,172.16.1.15
            dhcp-boot=net:UEFI,ipxe.efi,172.16.1.15
            dhcp-boot=net:UEFI64,ipxe.efi,172.16.1.15

            In your LTSP.conf Update this section to:

            dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,172.16.1.15,172.16.1.15
            dhcp-boot=net:UEFI,ipxe.efi,172.16.1.15,172.16.1.15
            dhcp-boot=net:UEFI64,ipxe.efi,172.16.1.15,172.16.1.15
            

            Lets see if that gives you a successful pxe boot.

            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!

            E 2 Replies Last reply Reply Quote 0
            • E
              errbravosix @george1421
              last edited by

              @george1421

              I will try here, just a moment.

              thanks

              1 Reply Last reply Reply Quote 0
              • E
                errbravosix @george1421
                last edited by

                @george1421
                I do what do you want.

                but dhcp-proxy stops delivery ip to vm with UEFI.

                when i remove your changes, delivery dhcp-proxy works fine, but we go back to zero blue screen nothing happens.

                legacy still works with your changes, and without your changes.

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

                  @errbravosix The more research I do the more I’m thinking that your config file should just work.

                  I did put together an alternate configuration for dnsmasq. As long as the dnsmasq server is running on the fog server this config should also justwork.

                  # 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
                  
                  # inspect the vendor class string and match the text to set the tag
                  dhcp-match=set:efi-x86_64,option:client-arch,7
                  dhcp-match=set:efi-x86_64,option:client-arch,9
                  dhcp-match=set:efi-x86,option:client-arch,6
                  dhcp-match=set:bios,option:client-arch,0
                  
                  # Set the boot file name based on the matching tag from the vendor class (above)
                  dhcp-boot=tag:efi-x86_64,ipxe.efi
                  dhcp-boot=tag:efi-x86,i386-efi/ipxe.efi
                  dhcp-boot=tag:bios,undionly.kpxe
                  
                  # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
                  pxe-prompt="Buscando Servidor de Imagens", 5
                  
                  # 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 (BIOS)",undionly.kpxe
                  pxe-service=X86-64_EFI,"Boot to FOG (EFI)",ipxe.efi
                  pxe-service=BC_EFI,"Boot to FOG (EFI)",ipxe.efi
                  
                  dhcp-range=172.16.1.50,172.16.1.52,255.255.255.0
                  

                  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!

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    errbravosix @george1421
                    last edited by george1421

                    @george1421

                    Hey boss

                    I use your config file and, nothing happens.

                    but i found on the network two more lines of parameter codes.

                    When i add this lines, its work fine, sounds good.

                    They are:

                    # TFTP IP is required on all dhcp-boot lines (unless dnsmasq itself acts as tftp server?)
                    pxe-service=tag:!ipxe-ok,X86PC,PXE,undionly.kpxe,172.16.1.15
                    pxe-service=tag:!ipxe-ok,IA32_EFI,PXE,snponlyx32.efi,172.16.1.15
                    pxe-service=tag:!ipxe-ok,BC_EFI,PXE,snponly.efi,172.16.1.15
                    pxe-service=tag:!ipxe-ok,X86-64_EFI,PXE,snponly.efi,172.16.1.15
                    

                    And:

                    #set ipxe-ok tag if we have correct combination
                    # http && menu && iscsi ((pxe && bzimage) || efi)
                    tag-if=set:ipxe-ok,tag:ipxe-http,tag:ipxe-menu,tag:ipxe-iscsi,tag:ipxe-pxe,tag:ipxe-bzimage
                    tag-if=set:ipxe-ok,tag:ipxe-http,tag:ipxe-menu,tag:ipxe-iscsi,tag:ipxe-efi
                    

                    After add these lines everthing WORKS SO GOOD.

                    Change Status to SOLVED, in Gods Name.

                    Thanks a lot man, for all help you give to me.

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

                      @errbravosix Would you provide a complete ltsp.conf file because what you provided here shouldn’t have fixed the problem directly,

                      BUT from the original config, if you would have modified it to this for the pxe-service section:

                      pxe-service=X86PC,"Boot to FOG (BIOS)",undionly.kpxe,172.16.1.15
                      pxe-service=X86-64_EFI,"Boot to FOG (EFI)",ipxe.efi,172.16.1.15
                      pxe-service=BC_EFI,"Boot to FOG (EFI)",ipxe.efi,172.16.1.15
                      

                      Then that config should have worked. dnsmasq is a bit cryptic with its optional parameters I do have to say.

                      BUT I can say if you have it working then its working so no need to change anything. Good job finding the solution.

                      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!

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        errbravosix @george1421
                        last edited by

                        @george1421

                        Yes, I changed it, exactly as you just mentioned, and it still didn’t work, it worked fine when I added those two lines of code I mentioned earlier.

                        Anyway, thank you very much for your help and attention.

                        1 Reply Last reply Reply Quote 0
                        • [[undefined-on, george1421G george1421, ]]
                        • [[undefined-on, george1421G george1421, ]]
                        • 1 / 1
                        • First post
                          Last post

                        259

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project