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

    DHCP problems on storage nodes

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    62
    15.1k
    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
      last edited by

      The error message is a bit confusing, but when we typically see this, is when the FOS client can’t reach the FOG server, or the fog server IP address has been changed since FOG was installed.

      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!

      Greg PlamondonG 1 Reply Last reply Reply Quote 0
      • Greg PlamondonG
        Greg Plamondon Testers @george1421
        last edited by

        @george1421
        What files do i need to check and make sure they are pointing to the proper IP or hostname?

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

          @greg-plamondon I thought I had a tutorial on this but I guess not.

          In the fog configuration there are 2 places (I think, pretty sure)
          In the storage node configuration there is 1 place
          and then in the linux console, /tftpboot/default.ipxe

          But if you have changed the IP address there is another process to fix it. You correct the top 3 and then ensure the IP address is set correctly in /opt/fog/.fogsettings file then rerun the fog installer to fix the rest of the bits.

          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!

          Greg PlamondonG 1 Reply Last reply Reply Quote 0
          • Greg PlamondonG
            Greg Plamondon Testers @george1421
            last edited by Sebastian Roth

            @george1421
            I checked the storage node and its looks correct:

            #!ipxe
            cpuid --ext 29 && set arch x86_64 || set arch i386
            params
            param mac0 ${net0/mac}
            param arch ${arch}
            param platform ${platform}
            param product ${product}
            param manufacturer ${product}
            param ipxever ${version}
            param filename ${filename}
            isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
            isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
            :bootme
            chain http://10.21.40.39/fog/service/ipxe/boot.php##params
            

            the fogserver was installed with this IP.

            george1421G 1 Reply Last reply Reply Quote 0
            • Greg PlamondonG
              Greg Plamondon Testers
              last edited by

              Just a heads up… I wasn’t having this issue until I recently updated, but I cannot remember what build I was on.

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

                @greg-plamondon Well if you look at your first post (second picture) FOS is getting an IP address of 10.21.100.115 but then it restarts. There should have been another message between the adding dns 192.168.10.3 and the udhcpc restarted message, saying that it couldn’t reach the fog server. Maybe that message only appears in debug mode, or your kernel logging level is wrong.

                So it looks like you have scheduled a capture or deploy with this system? If so lets key in the following url into a browser replacing <mac> with the real mac address of this computer

                http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=c0:3f:d5:9d:e9:50

                That should give you the ipxe menu for this boot process. I’m interested in the kernel parameters being sent to FOS. They will be displayed when you key that url in.

                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
                  last edited by george1421

                  ok looking at your first picture a bit more where / why are these two IP addresses in play here

                  10.21.40.39
                  192.168.10.238

                  I would expect to see one address for your fog server, unless you have a storage node 10.21.40.39 and the master fog server at 192.168.10.238

                  Additionally during dhcp discovery on FOS its posting dns servers in the 192.168.10.x range with the target computer being given an IP address in the 10.21.100.x range. WTF??

                  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!

                  Greg PlamondonG 1 Reply Last reply Reply Quote 0
                  • Greg PlamondonG
                    Greg Plamondon Testers @george1421
                    last edited by Greg Plamondon

                    @george1421

                    10.21.40.39 is the storage node for that location.
                    192.168.10.238 is the main fog server that is the management interface.

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

                      @greg-plamondon ok run the query I posted in red below against your fog master server.

                      I did amend my previous post with the WTF comment. You have Ip addresses all over the place.

                      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!

                      Greg PlamondonG 1 Reply Last reply Reply Quote 0
                      • Greg PlamondonG
                        Greg Plamondon Testers @george1421
                        last edited by

                        @george1421
                        run it from the client i am trying to image? or from any workstation?

                        george1421G 1 Reply Last reply Reply Quote 0
                        • Greg PlamondonG
                          Greg Plamondon Testers
                          last edited by

                          #!ipxe
                          set fog-ip 192.168.10.238
                          set fog-webroot fog
                          set boot-url http://${fog-ip}/${fog-webroot}
                          cpuid --ext 29 && set arch x86_64 || set arch i386
                          goto get_console
                          :console_set
                          colour --rgb 0x00567a 1 ||
                          colour --rgb 0x00567a 2 ||
                          colour --rgb 0x00567a 4 ||
                          cpair --foreground 7 --background 2 2 ||
                          goto MENU
                          :alt_console
                          cpair --background 0 1 ||
                          cpair --background 1 2 ||
                          goto MENU
                          :get_console
                          console --picture http://10.21.40.39/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
                          :MENU
                          menu
                          colour --rgb 0x00567a 0 ||
                          cpair --foreground 1 1 ||
                          cpair --foreground 0 3 ||
                          cpair --foreground 4 4 ||
                          item --gap Host is registered as PC3181!
                          item --gap -- -------------------------------------
                          item fog.local Boot from hard disk
                          item fog.memtest Run Memtest86+
                          item fog.keyreg Update Product Key
                          item fog.deployimage Deploy Image
                          item fog.multijoin Join Multicast Session
                          item fog.quickdel Quick Host Deletion
                          item fog.sysinfo Client System Information (Compatibility)
                          item fog.iso Boot from ISO CD
                          item fog.Nuke Fast wipe Hard Disk
                          choose --default fog.local --timeout 5000 target && goto ${target}
                          :fog.local
                          chain -ar ${boot-url}/service/ipxe/grub.exe --config-file="rootnoverify (hd0);chainloader +1" || goto MENU
                          :fog.memtest
                          kernel http://10.21.40.39/fog/service/ipxe/memdisk initrd=http://10.21.40.39/fog/service/ipxe/memtest.bin iso raw
                          initrd http://10.21.40.39/fog/service/ipxe/memtest.bin
                          boot || goto MENU
                          :fog.keyreg
                          login
                          params
                          param mac0 ${net0/mac}
                          param arch ${arch}
                          param username ${username}
                          param password ${password}
                          param keyreg 1
                          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                          param sysuuid ${uuid}
                          :fog.deployimage
                          login
                          params
                          param mac0 ${net0/mac}
                          param arch ${arch}
                          param username ${username}
                          param password ${password}
                          param qihost 1
                          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                          param sysuuid ${uuid}
                          :fog.multijoin
                          login
                          params
                          param mac0 ${net0/mac}
                          param arch ${arch}
                          param username ${username}
                          param password ${password}
                          param sessionJoin 1
                          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                          param sysuuid ${uuid}
                          :fog.quickdel
                          login
                          params
                          param mac0 ${net0/mac}
                          param arch ${arch}
                          param username ${username}
                          param password ${password}
                          param delhost 1
                          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                          param sysuuid ${uuid}
                          :fog.sysinfo
                          kernel http://10.21.40.39/fog/service/ipxe/bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://192.168.10.238/fog/ consoleblank=0 rootfstype=ext4 storage=10.21.40.39:/images/ storageip=10.21.40.39 loglevel=4 mode=sysinfo
                          imgfetch http://10.21.40.39/fog/service/ipxe/init_32.xz
                          boot || goto MENU
                          :fog.iso
                          menu passwd 707376
                          :MENU
                          menu
                          item --gap -- ---------------- iPXE boot menu ----------------
                          item CENTOS6532 CentOS-6.5 Net Install 32BIT
                          item CENTOS6564 CentOS-6.5 Net Install 64BIT
                          item CENTOS7MIN64 CentOS-7.0 Minimal 64BIT
                          item CENTOS7NET64 CentOS-7.0 Net Install 64BIT
                          item KaliLinux Kali Linux 2016 64BIT
                          item RocksCluster Rocks Cluster 64BIT
                          item SpinRite6 SprinRite 6
                          item return return to previous menu
                          choose --default return --timeout 5000 target && goto ${target}
                          :CENTOS6532
                          initrd http://${fog-ip}/ISO/CentOS-6.5-i386-netinstall.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :CENTOS6564
                          initrd http://${fog-ip}/ISO/CentOS-6.5-x86_64-netinstall.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :CENTOS7MIN64
                          initrd http://${fog-ip}/ISO/CentOS-7.0-1406-x86_64-Minimal.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :CENTOS7NET64
                          initrd http://${fog-ip}/ISO/CentOS-7.0-1406-x86_64-NetInstall.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :KaliLinux
                          initrd http://${fog-ip}/ISO/kali-linux-2016.2-amd64.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :RocksCluster
                          initrd http://${fog-ip}/ISO/RocksCluster.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :SpinRite6
                          initrd http://${fog-ip}/ISO/SpinRite6.iso
                          chain memdisk iso raw ||
                          goto MENU
                          :return
                          chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
                          prompt
                          goto MENU
                          autoboot
                          param sysuuid ${uuid}
                          :fog.Nuke
                          kernel http://10.21.40.39/fog/service/ipxe/bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://192.168.10.238/fog/ consoleblank=0 rootfstype=ext4 storage=10.21.40.39:/images/ storageip=10.21.40.39 loglevel=4 capone=1 mode=wipe wipemode=fast mac=00:00:00:00:00:00
                          imgfetch http://10.21.40.39/fog/service/ipxe/init_32.xz
                          boot || goto MENU
                          :bootme
                          chain -ar http://10.21.40.39/fog/service/ipxe/boot.php##params ||
                          goto MENU
                          autoboot```
                          1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @Greg Plamondon
                            last edited by

                            @greg-plamondon as long as you still have the job scheduled from any computer that can reach the master fog server.

                            also just because your network is a bit more complex than it appears on the surface. You are sure that the 10.21.100.x subnet can physically reach the master fog server at 192.168.10.238. I’m going to say yes because we see that in the pxe booting process. But during FOS startup it has to be able to connect via http to the fog 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!

                            Greg PlamondonG 1 Reply Last reply Reply Quote 0
                            • Greg PlamondonG
                              Greg Plamondon Testers @george1421
                              last edited by

                              @george1421
                              oops i canceled the job…

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

                                @greg-plamondon if you are going to reschedule the job, tick the check box that says debug and then pxe boot the target computer. Let see if that gives us any new info.

                                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!

                                Greg PlamondonG 1 Reply Last reply Reply Quote 0
                                • Greg PlamondonG
                                  Greg Plamondon Testers @george1421
                                  last edited by george1421

                                  @george1421

                                  #!ipxe
                                  set fog-ip 192.168.10.238
                                  set fog-webroot fog
                                  set boot-url http://${fog-ip}/${fog-webroot}
                                  kernel http://10.21.40.39/fog/service/ipxe/bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://192.168.10.238/fog/ consoleblank=0 rootfstype=ext4 mac=c0:3f:d5:9d:e9:50 ftp=10.21.40.39 storage=10.21.40.39:/images/ storageip=10.21.40.39 osid=9 irqpoll hostname=PC3181 chkdsk=0 img=Win10x64-1703-R1 imgType=n imgPartitionType=all imgid=124 imgFormat=0 PIGZ_COMP=-6 adon=1 addomain="MTSTRANS.COM" adou="" aduser="Administrator" adpass="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" isdebug=yes type=down
                                  imgfetch http://10.21.40.39/fog/service/ipxe/init_32.xz
                                  boot
                                  
                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by

                                    @Greg-Plamondon Take a look at the Storage Settings in your FOG web UI. I am fairly sure you’ll find the old IP there.

                                    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

                                    george1421G Greg PlamondonG 2 Replies Last reply Reply Quote 0
                                    • george1421G
                                      george1421 Moderator @Sebastian Roth
                                      last edited by

                                      @sebastian-roth Am I missing something, what he just posted looks correct with a master fog server and a storage node.

                                      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 @Greg Plamondon
                                        last edited by

                                        @greg-plamondon This looks right.

                                        So a little bit more background on this. Are all target computers at this location doing this or only just this one computer?

                                        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!

                                        Greg PlamondonG 1 Reply Last reply Reply Quote 0
                                        • Greg PlamondonG
                                          Greg Plamondon Testers @george1421
                                          last edited by

                                          @george1421

                                          Its doing this at all locations. I have 30 locations

                                          1 Reply Last reply Reply Quote 0
                                          • Greg PlamondonG
                                            Greg Plamondon Testers @Sebastian Roth
                                            last edited by

                                            @sebastian-roth

                                            alt text

                                            Sorry it took so long it takes a good 5 minutes for the page to display.

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

                                            154

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project