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

Keeping hostname when imaging

Scheduled Pinned Locked Moved
General
4
26
10.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.
  • C
    ccmiens
    last edited by Dec 7, 2012, 10:24 AM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • C
      ccmiens
      last edited by Dec 7, 2012, 1:23 PM

      Hi,
      Thanks for answer. But I missed something.
      I imaged from GEA156 (host name) after fog client setup and reboot.
      I enable for the group the hostnamechanger service, also for settings fog in other informations
      hostnamechanger option is enabled in fog server and in fog client (enabled when installing).
      I deploy for example GEA157 (link to GEA156 image). After imaging, GEA157 is renamed GEA156.
      I don’t use AD, only workgroup.
      How to debug this?
      Ok I shall look at fog.log on host …
      Regards
      Ubantu 12.04
      fog 0.32
      XP hosts

      1 Reply Last reply Reply Quote 0
      • M
        moss
        last edited by Dec 7, 2012, 2:19 PM

        Are you using Sysprep when deploying hosts? Its usually best to do so and use the answer file to give the machine a random name.

        1 Reply Last reply Reply Quote 0
        • C
          ccmiens
          last edited by Dec 7, 2012, 2:42 PM

          No I don’t. Is it necessary for XP?

          1 Reply Last reply Reply Quote 0
          • M
            moss
            last edited by Dec 7, 2012, 2:59 PM

            Its usually recommended, but not doing it isn’t likely to be causing the host-name issue as I believe the unique identifiers etc which are modified by Sysprep are mainly used for things like WSUS.
            Ive found its best to build a base image not based upon an existing machine, although if you’re Syspreping the image it shouldn’t matter too much if it was.

            1 Reply Last reply Reply Quote 0
            • C
              ccmiens
              last edited by Dec 8, 2012, 9:54 AM

              Hi,
              XP host log file contents for hostnamechanger :

              08/12/2012 10:49 FOG::HostnameChanger Attempting to connect to fog server…
              08/12/2012 10:49 FOG::HostnameChanger Failed to connect to fog server!
              08/12/2012 10:49 FOG::HostnameChanger Le serveur distant a retourné une erreur : (403) Interdit.
              08/12/2012 10:49 FOG::HostnameChanger à System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
              à System.Net.WebClient.DownloadString(Uri address)
              à System.Net.WebClient.DownloadString(String address)
              à FOG.HostNameChanger.changeHostName()
              08/12/2012 10:49 FOG::HostnameChanger Sleeping for 1 minute.

              Idea, help! I see something like that here, but where?
              Regards

              1 Reply Last reply Reply Quote 0
              • M
                moss
                last edited by Dec 8, 2012, 10:20 AM

                Have you changed any file/folder/firewall permissions on the server itself?

                1 Reply Last reply Reply Quote 0
                • C
                  ccmiens
                  last edited by Dec 8, 2012, 10:27 AM

                  No,
                  I just update hosts file on XP host with server ip and server hostname. Testing in progress. I shall verify permissions on server itself as you say. Thanks a lot for help.

                  1 Reply Last reply Reply Quote 0
                  • C
                    ccmiens
                    last edited by Dec 8, 2012, 10:35 AM

                    No firewall on server!

                    1 Reply Last reply Reply Quote 0
                    • C
                      ccmiens
                      last edited by Dec 9, 2012, 6:18 PM

                      I wonder if setup client needs ip-server or ip-server/fog ? I try to morrow morning.

                      1 Reply Last reply Reply Quote 0
                      • M
                        moss
                        last edited by Dec 10, 2012, 10:50 AM

                        I have our clients setup just using the default host-name (fogserver), /fog shouldn’t be needed.

                        1 Reply Last reply Reply Quote 0
                        • C
                          ccmiens
                          last edited by Dec 10, 2012, 3:50 PM

                          Hi,
                          Help needed to debug. What to test, to verify?
                          0.32, ubantu 12.04, XP prof Host SP3. Imaging OK, Deploy OK. No firewall on XP and server.

                          fog.log
                          10/12/2012 15:27 FOG::GreenFog Sleeping for 1 minute.
                          10/12/2012 15:28 FOG::ClientUpdater Attempting to connect to fog server…
                          10/12/2012 15:28 FOG::ClientUpdater Failed to connect to fog server!
                          10/12/2012 15:28 FOG::ClientUpdater Le serveur distant a retourné une erreur : (403) Interdit.
                          10/12/2012 15:28 FOG::ClientUpdater à System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
                          à System.Net.WebClient.DownloadString(Uri address)
                          à System.Net.WebClient.DownloadString(String address)
                          à FOG.SnapinClient.startUpdate()
                          10/12/2012 15:28 FOG::ClientUpdater Sleeping for 1 minute.
                          And so one for other services

                          1 Reply Last reply Reply Quote 0
                          • M
                            moss
                            last edited by Dec 10, 2012, 4:09 PM

                            You could try running Wireshark (or tcpdump but Wireshark is easier) on the server to check if the server is actually receiving the packets from the client. Its probably best to filter to the clients IP as you will get a whole load of useless information shown.

                            1 Reply Last reply Reply Quote 0
                            • C
                              ccmiens
                              last edited by Dec 10, 2012, 4:45 PM

                              it receives packets because “Le serveur distant a retourné une erreur : (403) Interdit.” the distant server return an error 403 Forbidden. Thanks for help. I think to go back to my old Rembo or to invest with Acronis. Too much time to resolve problems.

                              1 Reply Last reply Reply Quote 0
                              • F
                                Fernando Gietz Developer
                                last edited by Dec 10, 2012, 4:53 PM

                                Are you sure that you don’t have firewall?
                                [CODE]# iptables -L
                                Chain INPUT (policy ACCEPT)
                                target prot opt source destination

                                Chain FORWARD (policy ACCEPT)
                                target prot opt source destination

                                Chain OUTPUT (policy ACCEPT)
                                target prot opt source destination[/CODE]

                                You can do a ping from client to the server?

                                You can see a pretty info in /var/log/httpd/access_log, like this:
                                [CODE]10.227.15.30 - - [03/Dec/2012:16:19:16 +0100] “GET /fog/service/servicemodule-active.php?mac=18:03:73:1B:62:DC%7C08:00:27:00:B0:3F&moduleid=ho
                                stnamechanger HTTP/1.1” 200 4 “-” “-”
                                10.227.15.30 - - [03/Dec/2012:16:19:16 +0100] “GET /fog/service/hostname.php?mac=18:03:73:1B:62:DC%7C08:00:27:00:B0:3F HTTP/1.1” 200 51 “-” "-
                                "[/CODE]

                                1 Reply Last reply Reply Quote 0
                                • C
                                  ccmiens
                                  last edited by Dec 10, 2012, 5:13 PM

                                  Hi,
                                  fog252@fog252:/$ sudo iptables -L
                                  [sudo] password for fog252:
                                  Chain INPUT (policy ACCEPT)
                                  target prot opt source destination

                                  Chain FORWARD (policy ACCEPT)
                                  target prot opt source destination

                                  Chain OUTPUT (policy ACCEPT)
                                  target prot opt source destination

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    ccmiens
                                    last edited by Dec 10, 2012, 5:20 PM

                                    Microsoft Windows XP [version 5.1.2600]
                                    © Copyright 1985-2001 Microsoft Corp.

                                    C:\Documents and Settings\USER>ping 10.1.1.252

                                    Envoi d’une requête ‘ping’ sur 10.1.1.252 avec 32 octets de données :

                                    Réponse de 10.1.1.252 : octets=32 temps<1ms TTL=64
                                    Réponse de 10.1.1.252 : octets=32 temps<1ms TTL=64
                                    Réponse de 10.1.1.252 : octets=32 temps<1ms TTL=64
                                    Réponse de 10.1.1.252 : octets=32 temps<1ms TTL=64

                                    Statistiques Ping pour 10.1.1.252:
                                    Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
                                    Durée approximative des boucles en millisecondes :
                                    Minimum = 0ms, Maximum = 0ms, Moyenne = 0ms

                                    C:\Documents and Settings\USER>

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      Fernando Gietz Developer
                                      last edited by Dec 10, 2012, 5:32 PM

                                      Ok 🙂 you can make ping to the server. But can you see the webui from the client?
                                      Open a navigator and try the next direction:
                                      [I]10.1.1.252/fog/service/hostname.php?mac=XX:XX:XX:XX:XX:XX[/I]
                                      Where XX:XX:XX:XX:XX:XX is the mac addreess.
                                      What response the server?

                                      In my servet the response is like this:
                                      [I]#!ok=U103666 #AD=0 #ADDom= #ADOU= #ADUser= #ADPass=[/I]

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        ccmiens
                                        last edited by Dec 10, 2012, 6:02 PM

                                        #!ok=GEA156 #AD=0 #ADDom= #ADOU= #ADUser= #ADPass=

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          Fernando Gietz Developer
                                          last edited by Dec 10, 2012, 6:08 PM

                                          And the config.ini in the client?
                                          The server address is right in config.ini?

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

                                          176

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project