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

    PXE Boot Issues after running the Mobile Fog Management script

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    11
    2.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.
    • C
      chris178
      last edited by

      Server
      • FOG Version: 1.4.4
      • OS: CentOS 7
      Client
      • Service Version:
      • OS: Win 7 Pro
      Description

      Attached is the image of what happened when I tried to upload the first image onto the mobile FOG server. The old IP was 10.28.81.9 after the change it was supposed to be 10.28.80.203. Does anyone have any ideas how to fix this? Thanks.

      0_1501705963891_FOG Boot1.jpg

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        Well I can tell you what’s wrong, but I’m not sure if the script is working as it should. We may need to get @Wayne-Workman involved to take a peek at the script.

        To fix your issue edit the /tftboot/default.ipxe file. That has a hard coded IP address in there. That is probably where the old IP is hiding.

        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!

        C 1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @chris178 TFTP server address is different from the HTTP IP address shown in the picture. Please check all the FOG settings in the web GUI.

          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
          • C
            chris178
            last edited by

            I checked all of the web settings before I made the post. I’ll see about editing the file tomorrow. Thanks @george1421

            1 Reply Last reply Reply Quote 0
            • C
              chris178 @george1421
              last edited by

              @george1421 You were right on the money. I changed the IP in the file and it booted straight into FOG. Is there a way we can fix this? @Wayne-Workman

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

                @chris178 Of course. Firstly, no idea why it’s not just working for you… that’s weird. The cron event that gets created by the installer is supposed to run a script every few minutes that corrects everything automatically (including default.ipxe file).
                Couple things:

                1. Make-Fog-Mobile sets up dnsmasq to operate in proxy mode. This means you should not (nor need to) setup your permanent DHCP servers to serve out anything special - dnsmasq takes care of all this.
                2. There should be a root crontab event to run a script in /opt/fog/utils/MakeFogMobile/MakeFogMobile.sh every 3 minutes.
                3. The log file for the script is here, and it’s very exact and human-friendly: /opt/fog/log/makeFogMobile.log

                Did you run the installer?

                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/

                C 1 Reply Last reply Reply Quote 0
                • C
                  chris178 @Wayne Workman
                  last edited by

                  @wayne-workman Yes, I ran the installer. I looked at the log file and this is what it had: “The path for IP was not found. Exiting” I’m not too familiar with programming. I did look at the script and tried to find where it was getting that information from, but I got lost pretty easy. Can you point me in the right direction or take a look at it? Thanks.

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

                    @chris178 That is highly interesting coming from a CentOS 7 server… ip is a standard command on CentOS 7 minimal and should be present.

                    So, looking here: https://github.com/FOGProject/fog-community-scripts/blob/master/MakeFogMobile/MainScript.sh

                    Line 31 gets the absolute path of the ip command.

                    Line 51 then calls a function to check and see if $ip is empty or not. The function is at line 38.

                    What is the output of this command:
                    command -v ip

                    On my CentOS 7 testbox, this is what I get:

                    [root@centos7 ~]# command -v ip
                    /usr/sbin/ip
                    [root@centos7 ~]# 
                    

                    I’d expect similar from your server.

                    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/

                    C 2 Replies Last reply Reply Quote 0
                    • C
                      chris178 @Wayne Workman
                      last edited by

                      @wayne-workman I got exactly the same output. So now what?

                      1 Reply Last reply Reply Quote 0
                      • C
                        chris178 @Wayne Workman
                        last edited by

                        @wayne-workman Let me ask this. Is there a certain directory that I should run the installer from? I just ran it from a folder on the desktop, unassuming that it might need to be in a certain location to pull the correct IP.

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

                          @chris178 I was able to fix the issue. If you can do a git pull from the fog-community-scripts directory on your server, you’ll get the latest copy - then rerun the installer and everything should work.

                          If you’re curious about changes, you can see them here:
                          https://github.com/FOGProject/fog-community-scripts/commits/master

                          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

                          146

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project