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

Need help making my own Debian 9 FOG server!

Scheduled Pinned Locked Moved Solved
General
5
48
14.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.
  • U
    unknownhost99 @george1421
    last edited by Dec 12, 2017, 3:09 PM

    @george1421 i typed vi /etc/dnsmasq.d and /etc/dnsmasq/itsp.conf nothing comes up (im sorry if i seem retarded i cant stress how new i am to linux)

    G 1 Reply Last reply Dec 12, 2017, 3:21 PM Reply Quote 0
    • G
      george1421 Moderator @unknownhost99
      last edited by Dec 12, 2017, 3:21 PM

      @unknownhost99 ok lets backup here.

      The config file from my post needs to be placed in a file called ltsp.conf (as a standard) The location of the config files for dnsmasq is typically in a directory called /etc/dnsmasq.d

      Navigate to that directory and do an ls -la to see all files in that directory. If there are any that end in .conf remove them. Create a new file called ltsp.conf in that directory with the following command vi /etc/dnsmasq.d/ltsp.conf and then paste in the contents of my config file. Make sure you replace <fog_server> with the IP address of the your fog server.

      Save an exit vi

      Then from the linux command prompt key in dnsmasq -v to ensure you have version 2.76 or later installed. If that returns a successful response then start the service. It appears based on your previous error message that debian 9 is systemd compliant so once dnsmasq is installed you should be able to key in the following commands.

      systemctl enable dnsmasq
      then (re)start the service
      systemctl restart dnsmaq

      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!

      U 1 Reply Last reply Dec 13, 2017, 10:51 AM Reply Quote 0
      • U
        unknownhost99 @george1421
        last edited by Dec 13, 2017, 10:51 AM

        @george1421 i did vi /etc/dnsmasq.d/ltsp.conf and there also was no .conf file except a file called dnsmasq.conf.example Though when i try to save/write the config file it says:‘’ /etc/dnsmasq.d/ltsp.conf’’ E212 Can’t open file for writing

        G 1 Reply Last reply Dec 13, 2017, 10:54 AM Reply Quote 0
        • G
          george1421 Moderator @unknownhost99
          last edited by Dec 13, 2017, 10:54 AM

          @unknownhost99 You may have to use sudo vi /etc/dnsmasq.d/ltsp.conf to get the proper rights to create the file, if you didn’t switch user to root.

          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!

          U 1 Reply Last reply Dec 13, 2017, 11:19 AM Reply Quote 0
          • U
            unknownhost99 @george1421
            last edited by Dec 13, 2017, 11:19 AM

            @george1421 well i still got the same error but now that i kept looking i found it says there is no dnsmasq.d directory to begin with

            G 1 Reply Last reply Dec 13, 2017, 11:25 AM Reply Quote 0
            • G
              george1421 Moderator @unknownhost99
              last edited by george1421 Dec 13, 2017, 5:26 AM Dec 13, 2017, 11:25 AM

              @unknownhost99 Did you install dnsmasq from your distribution’s repo? I don’t know debian so I can’t give you the exact commands to install (I’m a rhel guy). But /etc/dnsmasq.d is the default configuration directory.

              Can you confirm that dnsmasq is installed by running this command sudo dnsmasq -v ? It should respond with something that looks like this:

              Dnsmasq version 2.76  Copyright (c) 2000-2016 Simon Kelley
              Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
              

              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!

              U 1 Reply Last reply Dec 13, 2017, 11:48 AM Reply Quote 0
              • U
                unknownhost99 @george1421
                last edited by Dec 13, 2017, 11:48 AM

                @george1421 it is fine i have unsinstalled it and did the install without uefi support and it went without a hitch

                G 1 Reply Last reply Dec 13, 2017, 12:32 PM Reply Quote 0
                • G
                  george1421 Moderator @unknownhost99
                  last edited by Dec 13, 2017, 12:32 PM

                  @unknownhost99 said in Need help making my own Debian 9 FOG server!:

                  install without uefi support

                  I don’t understand this, what do you mean you installed without uefi support. What version did you install? Again the command I posted sudo dnsmasq -v will indicate the version.

                  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!

                  U 1 Reply Last reply Dec 13, 2017, 1:31 PM Reply Quote 0
                  • U
                    unknownhost99 @george1421
                    last edited by Dec 13, 2017, 1:31 PM

                    @george1421
                    https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq i used this one before the uefi support one

                    G 1 Reply Last reply Dec 13, 2017, 1:39 PM Reply Quote 0
                    • G
                      george1421 Moderator @unknownhost99
                      last edited by Dec 13, 2017, 1:39 PM

                      @unknownhost99 So problem solved??

                      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!

                      U 1 Reply Last reply Dec 15, 2017, 10:58 AM Reply Quote 0
                      • U
                        unknownhost99 @george1421
                        last edited by Dec 15, 2017, 10:58 AM

                        @george1421 well not yet but i am getting closer to the end some problems with the dhcp when trying the PXE boot to the fog this is my log when i use pxe boot any idea what the problem might be
                        0_1513335532145_e9a6dcc9-1e84-4e17-b098-450dac46e490-image.png

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Dec 15, 2017, 11:11 AM

                          @unknownhost99 Well, the output looks ok on first sight. What exactly is the issue? What do you see on the client? Timeout/error!?!

                          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

                          U 1 Reply Last reply Dec 15, 2017, 11:18 AM Reply Quote 0
                          • U
                            unknownhost99 @Sebastian Roth
                            last edited by Dec 15, 2017, 11:18 AM

                            @sebastian-roth no dhcp offers were recieed it says

                            G 1 Reply Last reply Dec 15, 2017, 11:34 AM Reply Quote 0
                            • G
                              george1421 Moderator @unknownhost99
                              last edited by Dec 15, 2017, 11:34 AM

                              @unknownhost99 Who’s ltsp.conf file are you using? The reason why I ask is I see a tags: entry for enp4s0.

                              If you can place the fog server and pxe booting client on the same subnet the follow the instructions here to collect a pcap file of the pxe booting process. https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue

                              Upload the pcap to a google drive or dropbox like system and share the link with us. There is something unexpected going on 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!

                              U 1 Reply Last reply Dec 15, 2017, 1:39 PM Reply Quote 1
                              • U
                                unknownhost99 @george1421
                                last edited by Dec 15, 2017, 1:39 PM

                                @george1421 this is my pcap file https://drive.google.com/open?id=1TvJgG3kwDhArrjIqz_uiybfPZASLDlz8
                                and this is the config file i currently use hope it helps.

                                # Don't function as a DNS server:
                                port=0
                                
                                # Log lots of extra information about DHCP transactions.
                                log-dhcp
                                
                                # Dnsmasq can also function as a TFTP server. You may uninstall
                                # tftpd-hpa if you like, and uncomment the next line:
                                # enable-tftp
                                
                                # Set the root directory for files available via FTP.
                                tftp-root=/tftpboot
                                
                                # The boot filename, Server name, Server Ip Address
                                dhcp-boot=undionly.kpxe,,x.x.x.x
                                
                                # rootpath option, for NFS
                                #dhcp-option=17,/images
                                
                                # kill multicast
                                #dhcp-option=vendor:PXEClient,6,2b
                                
                                # 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
                                
                                # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
                                pxe-prompt="Press F8 for boot menu", 3
                                
                                # 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 from network", undionly
                                
                                # A boot service type of 0 is special, and will abort the
                                # net boot procedure and continue booting from local media.
                                #pxe-service=X86PC, "Boot from local hard disk", 0
                                
                                # If an integer boot service type, rather than a basename is given, then the
                                # PXE client will search for a suitable boot service for that type on the
                                # network. This search may be done by multicast or broadcast, or direct to a
                                # server if its IP address is provided.
                                # pxe-service=x86PC, "Install windows from RIS server", 1
                                
                                # This range(s) is for the public interface, where dnsmasq functions
                                # as a proxy DHCP server providing boot information but no IP leases.
                                # Any ip in the subnet will do, so you may just put your server NIC ip here.
                                # Since dnsmasq is not providing true DHCP services, you do not want it
                                # handing out IP addresses.  Just put your servers IP address for the interface
                                # that is connected to the network on which the FOG clients exist.
                                # If this setting is incorrect, the dnsmasq may not start, rendering
                                # your proxyDHCP ineffective.
                                dhcp-range=10.0.0.10,proxy
                                
                                # This range(s) is for the private network on 2-NIC servers,
                                # where dnsmasq functions as a normal DHCP server, providing IP leases.
                                # dhcp-range=192.168.0.20,192.168.0.250,8h
                                
                                # For static client IPs, and only for the private subnets,
                                # you may put entries like this:
                                # dhcp-host=00:20:e0:3b:13:af,10.160.31.111,client111,infinite```
                                G 1 Reply Last reply Dec 15, 2017, 1:54 PM Reply Quote 0
                                • G
                                  george1421 Moderator @unknownhost99
                                  last edited by george1421 Dec 15, 2017, 7:56 AM Dec 15, 2017, 1:54 PM

                                  @unknownhost99 Ok I see immediately what is wrong. Your dhcp server (what ever it is) is not responding to the target computer. I only see dnsmasq responding with the next server and boot file name. dnsmaq is working perfectly. The issue is that the target computer is not being offered an IP address (or any network IP information) it doesn’t know what to do.

                                  In a perfectly working setup with dnsmasq, you should see one discover packet from the target computer and then two offer packets. One from your dhcp server and one from dnsmasq. You can view this if you load wireshark on a windows or linux computer and view the pcap you sent.

                                  A perfect dhcp/pxe booting sequence is this.
                                  Cli: Discover
                                  DHCP: Offer
                                  DNSMASQ: Offer
                                  Cli: Request
                                  DHCP: ACK
                                  Cli: Chat with DNSMASQ
                                  Cli: tftp download from FOG server.

                                  Also realize that your ltsp.conf file will only support bios (legacy) booting computers. Uefi computers will fail to boot. Just be aware of this fact. There is nothing wrong with your config file, it just doesn’t have the bits for uefi booting.

                                  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!

                                  U 1 Reply Last reply Dec 15, 2017, 2:07 PM Reply Quote 0
                                  • U
                                    unknownhost99 @george1421
                                    last edited by Dec 15, 2017, 2:07 PM

                                    @george1421 we know we are looking into the dhcp which currently run by a router so if anything still goes wrong then ill update it here thanks!

                                    G 1 Reply Last reply Dec 15, 2017, 2:33 PM Reply Quote 0
                                    • G
                                      george1421 Moderator @unknownhost99
                                      last edited by Dec 15, 2017, 2:33 PM

                                      @unknownhost99 Now in your final configuration, will the pxe booting clients be on a different subnet than your fog/dnsmasq server? If so then you need to add your fog server as the very last server in your dhcp-relay/dhcp-helper list so that your dnsmasq server will see the pxe boot requests on other subnets.

                                      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!

                                      U 1 Reply Last reply Dec 18, 2017, 10:08 AM Reply Quote 0
                                      • U
                                        unknownhost99 @george1421
                                        last edited by Dec 18, 2017, 10:08 AM

                                        @george1421 me and my boss went over the whole prgress and its working much better now although now when trying to boot from ipxe we get:
                                        TFTP
                                        file not found
                                        and then it exitst the pxe boot

                                        G 1 Reply Last reply Dec 18, 2017, 10:38 AM Reply Quote 0
                                        • G
                                          george1421 Moderator @unknownhost99
                                          last edited by Dec 18, 2017, 10:38 AM

                                          @unknownhost99 Please create another pcap so we can see what the client is seeing. We found a misplaced space some times causes pxe boot to fail. The PXE roms some times are not very smart.

                                          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!

                                          U 1 Reply Last reply Dec 18, 2017, 12:41 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          2 / 3
                                          • First post
                                            25/48
                                            Last post

                                          162

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project