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

    Dnsmasq bios and uefi

    Scheduled Pinned Locked Moved Solved
    General
    6
    46
    26.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.
    • Tom ElliottT
      Tom Elliott @xutianhong
      last edited by

      @xutianhong and what does your grub line look like?

      I would imagine it needs to look at the config file directly.

      I don’t know if it can be done in dnsmasq but possibly:
      pxe-service=BC_EFI,"BC_EFI","grub/grub-x86_64.efi --config-file=grub/efidefault",192.168.136.226

      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

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

        @xutianhong I have to ask are you using FOG or are you using FOG for pxe only, or are you not using fog and have a question about pxe booting?

        I would ask why you do it this way? I would not use grub but the iPXE menu instead.

        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!

        xutianhongX 1 Reply Last reply Reply Quote 0
        • xutianhongX
          xutianhong @george1421
          last edited by

          @george1421 im not using FOG. only question about pxe booting. use this cuz cobbler default env. im not add/del extra file to it. if default can work. i dont want change any thing.😥

          george1421G Tom ElliottT 2 Replies Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @xutianhong
            last edited by george1421

            @xutianhong OK understand, I was confused because I think you use FOG and doing this.

            You can still do what you want if you look at it a bit differently. FOG uses a pxe boot loader called iPXE. That is similar to syslinux and grub. But iPXE is very feature rich.

            You can do what you are looking for if you know how to program your config menus.

            Here is my dnsmasq config file

            # 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
            

            You replace the <fog_server_ip> with your address of your tftp 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!

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @xutianhong
              last edited by

              @xutianhong So are you using FOG and Cobbler together, or only came upon the post from a google search about a dnsmasq question? (I’m still willing to try to help, but this should be clear.)

              I don’t know you’re native language so I can’t really provide a translation to try to make this a little easier for you.

              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

              xutianhongX 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                I found this, maybe it can help?
                https://github.com/openSUSE/kiwi/wiki/Setup-PXE-boot-with-EFI-Using-GRUB2

                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

                1 Reply Last reply Reply Quote 0
                • xutianhongX
                  xutianhong @Tom Elliott
                  last edited by

                  @Tom-Elliott @george1421 thank you, im came up upon the post from a google search about dnsmasq&pxe boot question.
                  this is not wok. screen show uefi setting menu. not grub> yet.

                  pxe-service=BC_EFI,"BC_EFI",grub/grub-x86_64.efi --config-file=grub/efidefault,192.168.136.226
                  

                  this website advice used in my first post. but static network setting not useful.
                  https://github.com/openSUSE/kiwi/wiki/Setup-PXE-boot-with-EFI-Using-GRUB2

                  thank you @george1421 i tried ipxe, found it’s very powerful. i was working on it to try combine with cobbler.
                  but it’s looks like redhat 7.3 have a kernel bug for ipxe uefi boot. http://forum.ipxe.org/showthread.php?tid=8243&pid=13314#pid13314
                  finally solved.

                  i come from China.:bow_tone2: u know chinese? 😉
                  thank you for ur help. both.~ 谢谢

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @xutianhong
                    last edited by

                    @xutianhong I don’t know Chinese, but google has an awesome translate feature. It’s not perfect I understand, but should be clear enough to give an understanding of what we are trying to say.

                    我不懂中文,但google有一个很棒的翻译功能。 这是不完美的我明白,但应该清楚,以了解我们正在试图说的话

                    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

                    xutianhongX 1 Reply Last reply Reply Quote 0
                    • xutianhongX
                      xutianhong @Tom Elliott
                      last edited by

                      @Tom-Elliott google translate was good. 🙂 if have any problem, can i ask here again?

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

                        @xutianhong I’m glad you have it working. Tom and I are very skilled with FOG. Since fog is built using many other linux parts we know those parts too. iPXE is a great tool if you want to use it.

                        FOG also has a great pxe boot menu tool built in. I know some people install FOG just for pxe booting and don’t use FOG for computer imaging purposes.

                        You may ask a question here, we will help if possible.

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

                        162

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project