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

Change hostname early setting

Scheduled Pinned Locked Moved
Windows Problems
3
7
4.0k
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.
  • B
    baldursgate
    last edited by Jan 22, 2012, 8:17 AM

    There is a setting called CHANGE_HOSTNAME_EARLY, which I understand is supposed to change the hostname right after imaging is complete. I have it set to 1, but when I image my machines they always show “Changing hostname… [SKIPPED]”

    I’m using Windows XP in a non-domain environment, is that not supported?

    1 Reply Last reply Reply Quote 0
    • S
      Squeaner
      last edited by Jan 27, 2012, 4:10 AM

      Where are you finding this setting at? I can check 1 of my 6 environments that it is working at and see what my setting it at.

      1 Reply Last reply Reply Quote 0
      • B
        baldursgate
        last edited by Jan 27, 2012, 9:56 AM

        It’s at Other Information -> FOG Settings -> scroll down to General settings

        Tried setting it to 0 and 1, still says SKIPPED when imaging finishes.

        1 Reply Last reply Reply Quote 0
        • F
          Fernando Gietz Developer
          last edited by Jan 27, 2012, 1:52 PM

          What version of FOG are you using?
          Image partitions?
          The error apears when the hostname variable not exists.

          1 Reply Last reply Reply Quote 0
          • B
            baldursgate
            last edited by Jan 29, 2012, 10:55 AM

            Ah, it just occurred to me that when you sysprep, there is no hostname until the first boot. Could that be why?

            Any way to use this feature along with sysprep?

            I’m using FOG 0.32 with single partition+resizable images.

            1 Reply Last reply Reply Quote 0
            • F
              Fernando Gietz Developer
              last edited by Jan 30, 2012, 12:44 PM

              [I]“Tried setting it to 0 and 1, still says SKIPPED when imaging finishes.”[/I]
              Here the problem is that the fog script doesn’t find the variable $hostname or is empty, and when invokes the function changeHostname, the condition:
              if [-n hostname]…

              is false. And doesn’t makes the changes in the windows registry.

              To be sure that the variable is sent, you can make this:
              [LIST=1]
              []send a deploy task.
              [
              ]in the FOG server must be a file in /tftfboot/pxelinux.cfg/01-XX-XX-XX-XX-XX-XX . XX-XX-XX-XX-XX-XX is the client MAC address.
              [*]The file looks like this:
              [/LIST]
              [CODE]# Created by FOG Imaging System,
              DEFAULT fog
              LABEL fog
              kernel fog/kernel/bzImage
              append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=
              type=down img=aula-bz-ciencias-mug002-docencia mc=yes port=63208 storageip=192.xxx.xxx.xxx storage=192.xxx.xxx.xxx:/images/ mac=XX:XX:XX:XX:XX:XX ftp=192.xxx.xxx.xxx web=192.xxx.xxx.xxx/fog/ osid=1 imgType=n shutdown= loglevel=4
              fdrive= chkdsk=0 hostname=UXXXXXX[/CODE]

              If the hostname variable value is null or empty, then the fog script skips the hostname change.

              1 Reply Last reply Reply Quote 0
              • S
                Squeaner
                last edited by Feb 9, 2012, 4:24 PM

                Try one of the newer kernel’s. I think the older kernels don’t support the change right after imaging.

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

                205

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project