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

    Joining hosts to domain?

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    25
    3.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.
    • K
      Kureebow
      last edited by

      @Sebastian-Roth I have tried removing the service and reinstalling as well as using groups to reset the encryption data with no luck.

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

        @Kureebow From the fog-client log it looks like the host named DESKTOP-1RPRNDG does not exist in the database yet (the logic tries to find it via the MAC address) because the server returns Middleware::Response Invalid host and therefore the fog-client is trying to auto-register this host.

        Then on the next loop of the fog-client the server returns Middleware::Communication ERROR: Could not download file for the very same certificate file it was able to load just a minute earlier. So this looks like a non stable communication between fog-client PC and the FOG server. Are both on the same subnet or in different networks?

        Let the fog-client run longer and upload the full fog.log again.

        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

        K 1 Reply Last reply Reply Quote 0
        • K
          Kureebow @Sebastian Roth
          last edited by

          @sebastian-roth The host named Desktop-1RPRNDG is registered with FOG because when I PXE Boot to fog it does show registered at the top and the device is listed in the WebUI along with its correct host name that was assigned during the full host registration and inventory.

          Both devices are on the same subnet, VLAN, and are both sitting in front of me in my office. However, the server is plugged into one switch while the host device is plugged into another. I can try putting them on the same switch to see if I get a different result.

          Here is more of the fog.log

          Thank you!

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

            @Kureebow Can you please take a picture of the host settings (FOG web UI) of this particular host where we can see hostname and all the MAC addresses assigned to it?

            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

            K 1 Reply Last reply Reply Quote 0
            • K
              Kureebow @Sebastian Roth
              last edited by

              @sebastian-roth Is this what you need? FOG Hostname.PNG

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

                @kureebow said in Joining hosts to domain?:

                Is this what you need?

                Kind of. Though I would like to see this for the host mentioned in the logs: DESKTOP-4Q9J25B (interesting this name changed at some point in the last log you posted…)

                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

                K 2 Replies Last reply Reply Quote 0
                • K
                  Kureebow @Sebastian Roth
                  last edited by

                  @sebastian-roth So this host is the same device. This was named by serial number. The host MSSTWLHM2C8G3 is DESKTOP-4Q9J25B. When I boot to FOG on the device it shows as MSSTWLHM2C8G3 but when inside of windows the name still shows as DESKTOP-4Q9J25B.

                  1 Reply Last reply Reply Quote 0
                  • K
                    Kureebow @Sebastian Roth
                    last edited by

                    @sebastian-roth For instance. When we did the full host registration and inventory we entered the name MSSTWLCT403F3 for this device as seen in the snip-it below.Example two.PNG

                    When we deployed the image to the device containing the FOG Service it re-added itself to the Host list waiting for approval with the following new name.

                    Example One.PNG

                    So our name change command is not working from when we manually put in the name of the device through full host registration and inventory.

                    I’m not trying to be wordy just trying to explain the Best I can.

                    Although the mac addressed between these two devices are showing differently in WEBUI they are the same device.

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

                      @kureebow said in Joining hosts to domain?:

                      Although the mac addressed between these two devices are showing differently in WEBUI they are the same device.

                      This is probably the key two what’s going on here. When I look at the logs I see it tries to register with the following MACs: hostname=DESKTOP-4Q9J25B&mac=0C:37:96:54:1A:8A|F0:9E:4A:74:D7:AE|F0:9E:4A:74:D7:AF|F2:9E:4A:74:D7:AE|F0:9E:4A:74:D7:B2 but non of those MACs matches the one we see in the picture you posted.

                      Please boot up that machine to the Windows OS and run getmac /v in a CMD window. Take a screenshot and post that here.

                      Is this a laptop kind of device? Do you use some sort of USB NIC adapter?

                      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

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        Kureebow @Sebastian Roth
                        last edited by

                        @sebastian-roth This is a laptop using a USB NIC adapter. Test.jpg

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

                          @kureebow said in Joining hosts to domain?:

                          This is a laptop using a USB NIC adapter.

                          Search the forums and the web for “MAC address passthrough”. In short: the USB NIC has it’s own MAC address which can either be seen or masked by a system MAC. But there is no general rule. iPXE (boot menu), Linux kernel (FOS imaging environment) and host OS (e.g. Windows) use different drivers and can show different MACs for the same machine.

                          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

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            Kureebow @Sebastian Roth
                            last edited by

                            @sebastian-roth I tried following the directions on Dells Website to enable MAC Passthrough in Bios but I do not see an option listed anywhere. We are using Dell 3190’s. When I look in the system information section I do see the MAC Passthrough address listed but I do not see an option to enable it.

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

                              @Kureebow Try adding the ethernet MAC address 0C:37:96:54:1A:8A (seen by getmac) to this host as a secondary MAC via the FOG web UI.

                              Possibly it will tell you the MAC exists already. Then check the “Pending Hosts” (web UI -> Hosts -> left side menu) if you can find the host 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

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                Kureebow @Sebastian Roth
                                last edited by

                                @sebastian-roth

                                After adding the mac Address I have been unsucessful in getting this device to reimage. This was not an issue prior. The device gets to a certain percentage then will not move forward. I let the device image overnight and after 15 hours it never moved past 94.39%.

                                Thank you for your help.

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

                                  @kureebow said in Joining hosts to domain?:

                                  After adding the mac Address I have been unsucessful in getting this device to reimage. This was not an issue prior. The device gets to a certain percentage then will not move forward. I let the device image overnight and after 15 hours it never moved past 94.39%.

                                  I can’t see why adding a secondary MAC could cause what you describe. What do you actually see on the device’s screen? Does it deploy very slow or hang?

                                  To prove me wrong you might remove the secondary MAC address again and see if deploying an image can finish again.

                                  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

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    Kureebow @Sebastian Roth
                                    last edited by

                                    @sebastian-roth I believe I have the imaging issue resolved it was unrelated. However, good news! It did work one time. I reimaged the PC after adding the MAC address to the list of additional MACs and then post image after logging into the machine with the local account I got a message at the bottom right of the screen saying FOG had to perform actions and then the device shut down and joined the domain.

                                    After getting excited that we finally had it working I tried on another device with no success. I added the additional MAC and reimaged but after sitting for 15 minutes or so I have had no message appear.

                                    Thank you!

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

                                      @Kureebow Great you got the first one working. I am sure the next one will be easier to solve. Take a look at the fog.log file on that new machine again and post it here.

                                      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

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        Kureebow @Sebastian Roth
                                        last edited by

                                        @sebastian-roth Here you go sirfog.log

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

                                          @Kureebow In the logs we see “Invalid host” again. So boot up that machine to the Windows OS and run getmac /v in a CMD window. Note down the MAC address it shows for the Ethernet and add this MAC to this host as a secondary MAC via the FOG web UI.

                                          Basically you need to find out why your systems register with those MACs from the USB NIC adapters.

                                          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
                                          • D
                                            dvorak @Kureebow
                                            last edited by

                                            @kureebow in windows, once the fog client is installed AND you have the correct AD settings in fog:
                                            d308c21c-4d1f-4814-9db8-d0d82b071ccf-image.png

                                            it should work without issues. Correct settings are make sure “join domain after deploy” as well as "name change(ad join forced reboot) are selected,as well as a domain username credentials with privilege to join the domain. You may have to “reset encryption data” for fog to get the correct token, that is if you keep getting the below errors over and over:
                                            9/27/2022 10:48:41 AM Middleware::Authentication ERROR: Could not get security token
                                            9/27/2022 10:48:41 AM Middleware::Authentication ERROR: Could not find file ‘C:\Program Files (x86)\FOG\token.dat’.

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

                                            188

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project