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

    Configuration issue in 1.2.0, IP change of FOG

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    4
    1.9k
    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.
    • G
      Gilou
      last edited by

      Hi there,

      Congratulations Tom on releasing Fog 1.2.0, now is the time for me to test it, and to upgrade our french training for it as well. As I was testing, I came across something annoying: changing the IP of FOG (having all on one serv).
      a) In the configuration settings, there is no “expand all” possibility, so unless you browse the source, it’s quite painful to actually look for a given value, and to use any search/replace functionnality. Expand all would fix that, but there are other ways…

      That’s a lot of changes, I’ve referenced so far:
      FOG_WOL_HOST
      FOG_TFTP_HOST
      FOG_WEB_HOST
      Storage Node IP

      But that’s OK, that’s how it’s intended to be. However, when booting on iPXE, my hosts couldn’t go through… which leads to :
      b) default.ipxe is hard coded at install ?
      Because the IP is written in default.ipxe… So I said to myself (tuduum.), well, that might have been done in the “Boot PXE Menu”, but updating it from there didn’t regenerate default.ipxe.
      Bug ? Feature ? Missed option? You tell me 😉

      Be prepared for more feedback. 😉
      Btw: I love the grub exit… It fixes most of the f*cked up Dell BIOSes that refuse to boot on disk once PXE boots… I love the resizable partitions, and I love partclone being used (I know, I’m late for the party, but well ;))

      Cheers

      Gilou

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        sorry, but the address must be hard coded into default.ipxe
        that file is served out by tftp and tells ipxe where to get the information that is dynamically generated, but it can not be dynamically generated itself

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

          Expand/Collapse has now been put in.

          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
          • G
            Gilou
            last edited by

            I referenced the IP in a few places, this “script” (bash, sort of) makes it possible, in a single fog, single master install to change the IP where it needs to be done…

            [CODE]IP=XX.XX.XX.XX

            mysql -e “UPDATE globalSettings SET settingValue = ‘$IP’ WHERE settingKey IN (‘FOG_TFTP_HOST’, ‘FOG_WEB_HOST’, ‘FOG_WOL_HOST’);” fog
            mysql -e “UPDATE nfsGroupMembers SET ngmHostname = ‘$IP’ WHERE ngmID = 1;” fog

            sed -i "s;chain http://([^/]+)/;chain http://$IP/;" /tftpboot/default.ipxe

            [/CODE]

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

            156

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project