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

    FOG is renaming my Windows hostname?

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    7
    1.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.
    • A
      amr
      last edited by

      We recently upgraded from .32 to 1.2.0 and have noticed since then it seems FOG is somehow renaming the Windows hostname to whatever the machine has been registered as in fog.

      We do not use the FOG service, it is not installed to any machines.

      We have a Windows 10 image captured in “audit mode”, we deploy it to a host registered as PC-123. Upon booting the deployed PC, its Windows hostname is PC-123. If I rename the same host within FOG to PC-456, then deploy the same image, Windows has a hostname of PC-456.

      How/why is this happening!?

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

        Hostname changing happens after image deploying but before the client reboots. This is done by hostname_early which can be disabled under fog settings on the GUI.

        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
        • Tom ElliottT
          Tom Elliott
          last edited by

          I feel I need to ask, is this not a good thing? Is this not what you would really want to happen? If not, why? Of course you’re allowed to setup however you want, but I don’t understand how it renaming a system is a bad thing. Think of it in the context that you cannot have multiple systems with the same hostname, just as you cannot have multiple systems with the same IP address on a network.

          If your image has a name of PC123, and you don’t want the hostname to be changed, and have decided to image two other machines with the “audit mode image” you could start seeing issues. This could occur because all three systems (now) have the same hostname. Communication between them would be difficult and may not even work because the names are the same.

          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 2
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            Being aggravated with fog renaming computers, and then wanting to disable it… that’s like being used to a manual transmission, and then being aggravated when you get a car that shifts automatically… and then trying to go through 1st, 2nd, and D manually instead of just slapping it into D and not worrying about it.

            Computer renaming is one of the top reasons to use fog.

            People have all of these other ways they “take care of” renaming and domain joining. And that is fine void of FOG, but FOG offers a more simple and streamlined solution. A lot of people are confused at first, but I promise it’s worth your time to check it out.

            How is it worth your time? Simple math.

            It used to take me and a team mate half a day to image 30 computers in our building. If it was just me, it was most of the day. With fog, it only takes one person, and I just click a button. Then I go do something else for an hour, and I come back and it’s done. Computers renamed, joined to the domain, software and printers deployed. Computers READY TO BE USED by the user, right then and there.

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 2
            • A
              amr
              last edited by

              Thanks for your prompt reply Tom and Wayne. I am by no means aggrivatged by the feature and certainly don’t consider it a bad thing.

              I was simply curious as to where this setting was set within the FOG config and how it is performing the change.

              I will definitely keep it enabled as it takes one step out of the deployment process for us, nice work!

              Are you able to share how FOG performs this rename injection into Windows after the image has been deployed?

              For those that may come across this post the setting is under FOG Configruation - FOG Settings - General Settings, then FOG_CHANGE_HOSTNAME_EARLY.

              Thanks again

              Wayne WorkmanW 2 Replies Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @amr
                last edited by Wayne Workman

                @amr said:

                Are you able to share how FOG performs this rename injection into Windows after the image has been deployed?

                the fog.download script attempts to change the Windows name on every single partition that it can see, that way there are better odds of it happening. in your trunk directory, this script is in the src directory, way down in there.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @amr
                  last edited by

                  @amr said:

                  I will definitely keep it enabled as it takes one step out of the deployment process for us, nice work!

                  The client will also auto-name, and auto-join to domain… and a bunch of other things that will take many steps out of your deployment process.

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

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

                  194

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project