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

    Fog client not renaming computers

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    4
    17
    5.8k
    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.
    • O
      Omar.rodriguez
      last edited by

      Server
      • FOG Version: 1.3.2
      • OS: Ubuntu 16.04
      Client
      • Service Version: 0.11.8
      • OS: Ubuntu server 16.04
      Description

      Deploying a ubuntu server 16.04 image to machines does not rename the host. For example if I named the first computer PC1 where the ubuntu image was captured from any machines i image with that ubuntu image will also be named PC1. The client will then not recognize the other PC’s when it’s time to auto-reboot when a imaging task is created.

      Raymond BellR 1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by

        @Omar.rodriguez, alright that’s what I suspected when I saw all of the macs. The problem is your installations share the same virtual mac addresses. You can fix this problem by telling FOG to ignore those macs. To quote @Tom-Elliott from https://forums.fogproject.org/topic/8315/response-error-multiple-hosts-returned-for-list-of-mac-addresses

        The fix for this is to add that mac address to the FOG Configuration Page->FOG Settings->FOG Client - Host Register->FOG_QUICKREG_PENDING_MAC_FILTER, you can add the whole mac address or a part of the mac address. Using the “partial” address (usually the first 3 or 4 hex pairs) means it is going to filter anything that matches the partial part. This is comma separated. e.g. (00:01:0F,00:02:03:04,00:05:ab:af:ad:ac).

        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.

        O 1 Reply Last reply Reply Quote 2
        • J
          Joe Schmitt Senior Developer
          last edited by

          @Omar-rodriguez please provide the fog.log file for the problematic host. It can be found in /opt/fog-server/fog.log.

          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.

          O Raymond BellR 3 Replies Last reply Reply Quote 1
          • Raymond BellR
            Raymond Bell Testers @Omar.rodriguez
            last edited by

            @Omar.rodriguez Also make sure that in Fog Settings that ( FOG Client - Hostname Changer ) is checked.
            And let us know if it is.

            Raymond Bell
            WiKi: https://wiki.fogproject.org/wiki/index.php/Main_Page

            D 2 Replies Last reply Reply Quote 0
            • D
              davidedpg10 @Raymond Bell
              last edited by

              @Raymond-Bell It’s very possible that the hostname-changer is unchecked, it’s been happening to me lately, but the problem is that it might somehow be unchecking itself. I have it to be checked by default, but when I added a new client, it had all services off which caused me to have some problems with machines joining the domain with their default name. So just something to keep in mind. I don’t know what’s been causing that though.

              1 Reply Last reply Reply Quote 0
              • D
                davidedpg10 @Raymond Bell
                last edited by

                @Raymond-Bell I have now confirmed it, for whatever reason, reimaging a computer causes all of the services to become unchecked, it explains why the computers have not been renamed correctly prior to running snapins

                1 Reply Last reply Reply Quote 0
                • O
                  Omar.rodriguez @Joe Schmitt
                  last edited by

                  @Raymond-Bell said in Fog client not renaming computers:

                  @Omar.rodriguez Also make sure that in Fog Settings that ( FOG Client - Hostname Changer ) is checked.
                  And let us know if it is.

                  It’s not this. Works on any other image just not the Ubuntu one. The settings are checked as they should be.

                  I will be post the fog.log in a bit

                  Raymond BellR 1 Reply Last reply Reply Quote 0
                  • Raymond BellR
                    Raymond Bell Testers @Omar.rodriguez
                    last edited by

                    @Omar.rodriguez Thank you for checking please upload log file when you get chance, also miss read i was thinking this was a Windows image not a Ubuntu image

                    Raymond Bell
                    WiKi: https://wiki.fogproject.org/wiki/index.php/Main_Page

                    1 Reply Last reply Reply Quote 0
                    • O
                      Omar.rodriguez @Joe Schmitt
                      last edited by

                      @Joe-Schmitt @Raymond-Bell

                      here is the log file 0_1486064852118_fog.log

                      1 Reply Last reply Reply Quote 0
                      • Raymond BellR
                        Raymond Bell Testers @Joe Schmitt
                        last edited by

                        @Joe-Schmitt Since this is Ubuntu image i know this is old but i am wondering if he is needing something like this to change the host name on Ubuntu computer
                        https://forums.fogproject.org/topic/4510/scripts-customization-of-ubuntu-fog-service-for-ubuntu

                        Raymond Bell
                        WiKi: https://wiki.fogproject.org/wiki/index.php/Main_Page

                        1 Reply Last reply Reply Quote 1
                        • J
                          Joe Schmitt Senior Developer
                          last edited by Joe Schmitt

                          @Omar-rodriguez could you try hitting Reset Encryption Data on the host in the web portal? Also is there a reason why so many network adapters (virtual or real) are present on this machine?

                          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.

                          O 1 Reply Last reply Reply Quote 0
                          • O
                            Omar.rodriguez
                            last edited by

                            @Joe-Schmitt @Raymond-Bell just want to clarify my concerns:

                            1. The hostnames aren’t changing on Ubuntu 16.04 with the client installed on the image.

                            2. When a new imaging task is created for one of the Ubuntu 16.04 machines it doesn’t auto reboot (yes the setting in fog settings is checked), which means I can’t remotely image machines as I could have to physically be there to reboot the machines.

                            Sorry if I wasn’t too specific in my OP

                            1 Reply Last reply Reply Quote 0
                            • J
                              Joe Schmitt Senior Developer
                              last edited by

                              @Omar-rodriguez correct. That’s why I asked

                              could you try hitting Reset Encryption Data on the host in the web portal? Also is there a reason why so many network adapters (virtual or real) are present on this machine?

                              What you’re describing is usually just a symptom of a bad authentication handshake.

                              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.

                              1 Reply Last reply Reply Quote 0
                              • O
                                Omar.rodriguez @Joe Schmitt
                                last edited by

                                @Joe-Schmitt Where can i find this in the fog web portal ? BTW the machines are all CLI non have the ubuntu GUI.

                                Also the reason why they have so many network adapters is because we have various Juniper virtual devices running with the machine.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Joe Schmitt Senior Developer
                                  last edited by Joe Schmitt

                                  @Omar-rodriguez it can be found by either selecting a host or a group from the web portal:

                                  0_1486066862305_upload-35a94889-5e13-443b-bdf0-67aa635945eb

                                  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.

                                  O 1 Reply Last reply Reply Quote 0
                                  • O
                                    Omar.rodriguez @Joe Schmitt
                                    last edited by Omar.rodriguez

                                    @Joe-Schmitt Tried that and nothing happened

                                    We also tried more troubleshooting. This is what we were seeing


                                    --------------------------------Authentication--------------------------------

                                    2/2/2017 1:48 PM Client-Info Version: 0.11.8
                                    2/2/2017 1:48 PM Client-Info OS: Linux
                                    2/2/2017 1:48 PM Middleware::Authentication Waiting for authentication timeout to pass
                                    2/2/2017 1:48 PM Middleware::Communication Download: http://10.10.100.252/fog/management/other/ssl/srvpublic.crt
                                    2/2/2017 1:48 PM Data::RSA FOG Server CA cert found
                                    2/2/2017 1:48 PM Middleware::Authentication Cert OK
                                    2/2/2017 1:48 PM Middleware::Authentication ERROR: Could not get security token
                                    2/2/2017 1:48 PM Middleware::Authentication ERROR: Could not find file “/opt/fog-service/token.dat”.
                                    2/2/2017 1:48 PM Middleware::Communication POST URL: http://10.10.100.252/fog/management/index.php?sub=requestClientInfo&authorize&newService
                                    2/2/2017 1:48 PM Middleware::Response Error multiple hosts returned for list of mac addresses

                                    Are the mac addresses the problem? is there a place we can change the mac address in a config?

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      Joe Schmitt Senior Developer
                                      last edited by

                                      @Omar.rodriguez, alright that’s what I suspected when I saw all of the macs. The problem is your installations share the same virtual mac addresses. You can fix this problem by telling FOG to ignore those macs. To quote @Tom-Elliott from https://forums.fogproject.org/topic/8315/response-error-multiple-hosts-returned-for-list-of-mac-addresses

                                      The fix for this is to add that mac address to the FOG Configuration Page->FOG Settings->FOG Client - Host Register->FOG_QUICKREG_PENDING_MAC_FILTER, you can add the whole mac address or a part of the mac address. Using the “partial” address (usually the first 3 or 4 hex pairs) means it is going to filter anything that matches the partial part. This is comma separated. e.g. (00:01:0F,00:02:03:04,00:05:ab:af:ad:ac).

                                      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.

                                      O 1 Reply Last reply Reply Quote 2
                                      • O
                                        Omar.rodriguez @Joe Schmitt
                                        last edited by

                                        @Joe-Schmitt said in Fog client not renaming computers:

                                        OG Client

                                        Hey Joe just want to give a huge thank you for helping me out. This solved the issue!

                                        For future reference if anyone has the same issue. This is what we were doing on our end. We are running Ubuntu 16.04 server with KVM. We have multiple virtual network devices which created multiple mac addresses. In return trying to deploy the same image from one machine to others caused a conflict with FOG which made the client not work on the machines. Following what Joe quoted tom on fixed our issue. In my instance using the first 3 hex pairs in FOG_QUICKREG_PENDING_MAC_FILTER solved the issue and the client is working as it was intended to 🙂

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

                                        319

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project