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

Hostname changing and drive's letter after deployment

Scheduled Pinned Locked Moved
FOG Problems
6
23
9.6k
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.
  • T
    Tom Elliott @RLane
    last edited by Mar 14, 2016, 2:16 PM

    @RLane Not totally correct.

    FOG, during image deployment, will change the hostname after the image process is complete but before the system reboots. It does this by finding the registry keys to run through.

    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

    P 1 Reply Last reply Mar 14, 2016, 2:23 PM Reply Quote 0
    • P
      Ph3noM @Tom Elliott
      last edited by Mar 14, 2016, 2:23 PM

      Thanks guys for your quick responses!

      @Tom-Elliott

      Does it works with windows XP?
      80% of our PCs are xp.

      @RLane said:

      I will say though that I’ve deployed images on hardware 6+ years old (Win7 x64 compatible) and use the FOG client. It is extremely light weight and uses little to no resources.

      Our Pcs are 9+ years old on windows xp, they will soon fall into coma ahah

      T 1 Reply Last reply Mar 14, 2016, 2:24 PM Reply Quote 0
      • T
        Tom Elliott @Ph3noM
        last edited by Mar 14, 2016, 2:24 PM

        @Ph3noM Yes.

        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

        P 1 Reply Last reply Mar 14, 2016, 2:31 PM Reply Quote 0
        • P
          Ph3noM @Tom Elliott
          last edited by Mar 14, 2016, 2:31 PM

          @Tom-Elliott

          And how to make it working?
          It’s not a native function?

          T 1 Reply Last reply Mar 14, 2016, 2:32 PM Reply Quote 0
          • T
            Tom Elliott @Ph3noM
            last edited by Mar 14, 2016, 2:32 PM

            @Ph3noM It’s already running, by default. You can disable it.

            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

            P 1 Reply Last reply Mar 14, 2016, 2:37 PM Reply Quote 0
            • P
              Ph3noM @Tom Elliott
              last edited by Mar 14, 2016, 2:37 PM

              @Tom-Elliott
              Ok but it doesn’t work for me…

              By default the hostname in our image is STATIONXXX, after deployment on for example: STATION001 (His name in HOST MANAGEMENT), it remains unchanged (STATIONXXX)…

              T 1 Reply Last reply Mar 14, 2016, 2:40 PM Reply Quote 0
              • T
                Tom Elliott @Ph3noM
                last edited by Mar 14, 2016, 2:40 PM

                @Ph3noM Are your images sysprepped?

                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

                P 1 Reply Last reply Mar 14, 2016, 3:58 PM Reply Quote 0
                • G
                  george1421 Moderator
                  last edited by Mar 14, 2016, 3:13 PM

                  Just for clarity what do you mean by “fresh install”?

                  Do you have FOG 1.2.0 stable or a FOG 1.2.0 trunk version (a.k.a pre 1.3.0) installed?

                  Assuming you are using a trunk build, do you have these features enabled in:
                  FOG Configuration->FOG System Settings->FOG Service - Client Updater->
                  FOG_SERVICE_CLIENTUPDATER_ENABLED (checked)

                  and

                  FOG Configuration->FOG System Settings->FOG Service - Hostname Changer
                  FOG_SERVICE_HOSTNAMECHANGER_ENABLED (checked)

                  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!

                  P 1 Reply Last reply Mar 14, 2016, 4:29 PM Reply Quote 0
                  • G
                    george1421 Moderator @RLane
                    last edited by george1421 Mar 14, 2016, 9:34 AM Mar 14, 2016, 3:16 PM

                    @RLane said:

                    Within sysprep and your unattend.xml file you can create a PS batch script to change the hostname. Only problem is this will require manual input rather than have FOG do it automatically.

                    This isn’t entirely true. You can have a post install script run a simple sed command to replace/change/edit the hostname or any other unattend.xml variable just after imaging and before the first OS boot. I do this today to update some location and OU specific variable in the unattend file.

                    For reference:

                    echo " *   Setting the Computer name to [${hostname}]";
                    sed -i -e "s#<ComputerName>\([^<][^<]*\)</ComputerName>#<ComputerName>$hostname</ComputerName>#gi" $unattendfilepath
                    

                    Yes it did take quite a bit of head scratching to get that pattern match just right.

                    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!

                    R 1 Reply Last reply Mar 14, 2016, 4:31 PM Reply Quote 0
                    • P
                      Ph3noM @Tom Elliott
                      last edited by Ph3noM Mar 14, 2016, 10:02 AM Mar 14, 2016, 3:58 PM

                      @Tom-Elliott
                      Nope, we used NewSID until now which was enough with xp.
                      I’ll try to sysprep a new image to test!

                      Thanks you.

                      Another question : is it possible to modify or delete a partition just before deployment? (But not modifying the master image).

                      T 1 Reply Last reply Mar 14, 2016, 4:04 PM Reply Quote 0
                      • T
                        Tom Elliott @Ph3noM
                        last edited by Mar 14, 2016, 4:04 PM

                        @Ph3noM I’m not asking if you are using sysprep to suggest you “NEED” to use it. WHen an image is sysprepped, it knows nothing about the registry values (sometimes), and other times it does. the Hostname_early fog setting is the item you’d likely be looking for, but I need more information.

                        What version of fog are you using (THe number in the FOG Logo Cloud)? What is the partition structure of your Windows system(s)?

                        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

                        P 1 Reply Last reply Mar 14, 2016, 4:44 PM Reply Quote 0
                        • P
                          Ph3noM @george1421
                          last edited by Mar 14, 2016, 4:29 PM

                          @george1421

                          I’m using FOG 1.2.0 stable (by “fresh” I mean “new”. Sorry I still have to improve my english 😄 ).

                          @Tom-Elliott

                          As described above, i’m on 1.2.0.
                          80% have: 1 disk with 2 partitions

                          1 Reply Last reply Reply Quote 0
                          • R
                            RLane @george1421
                            last edited by Mar 14, 2016, 4:31 PM

                            @george1421 @tom-elliott I stand corrected, thanks y’all. Not trying to hijack this, in the past we’ve used a manual PS+HTA script that allowed us to import them to a OU and rename them post-imaging.

                            G 1 Reply Last reply Mar 14, 2016, 4:36 PM Reply Quote 0
                            • G
                              george1421 Moderator @RLane
                              last edited by george1421 Mar 14, 2016, 10:37 AM Mar 14, 2016, 4:36 PM

                              @RLane No worries, all comments are welcome. That is the way we all collectively learn and grow. There are just different ways to go about doing the same thing.

                              The thing we need to keep in mind is the FOS (Fog Operating System) is based on linux and not Windows PE. So in a way we are restricted to only use linux available applications and with the same breath we are feed by being able to use some pretty powerful linux applications.

                              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
                              • P
                                Ph3noM @Tom Elliott
                                last edited by Mar 14, 2016, 4:44 PM

                                @Tom-Elliott said:

                                the Hostname_early fog setting item

                                I don’t find it on the web interface …

                                (Forgive me i am a beginner in the computer networking)

                                W 1 Reply Last reply Mar 14, 2016, 5:06 PM Reply Quote 0
                                • W
                                  Wayne Workman @Ph3noM
                                  last edited by Mar 14, 2016, 5:06 PM

                                  @Ph3noM said:

                                  @Tom-Elliott said:

                                  the Hostname_early fog setting item

                                  I don’t find it on the web interface …

                                  (Forgive me i am a beginner in the computer networking)

                                  Web Interface -> FOG Configuration -> FOG Settings -> General Settings -> FOG_CHANGE_HOSTNAME_EARLY

                                  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 1
                                  • P
                                    Ph3noM
                                    last edited by Mar 18, 2016, 2:00 PM

                                    Oh, my bad, thanks Wayne!

                                    And i’m still stuck for hostname changing, it doesn’t work and i don’t know what to do ^^

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Mar 18, 2016, 4:04 PM

                                      @Ph3noM What do you mean by “does not work”? Did you find the setting? Tried deploying the client again? Still the old hostname? Rebooted the client a couple of times?

                                      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

                                      P 1 Reply Last reply Mar 20, 2016, 9:11 AM Reply Quote 1
                                      • P
                                        Ph3noM @Sebastian Roth
                                        last edited by Ph3noM Mar 20, 2016, 3:42 AM Mar 20, 2016, 9:11 AM

                                        @Sebastian-Roth
                                        Hi Sebastian,

                                        Yes the FOG_CHANGE_HOSTNAME_EARLY option is active.
                                        And I tried all, with Win xp and Win10.

                                        I think i’m going to bring myself to use the fog client. ^^

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          Ph3noM
                                          last edited by Mar 22, 2016, 11:59 AM

                                          Anyone have an idea ?

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

                                          175

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project