PXE Boot Issues after running the Mobile Fog Management script
- FOG Version: 1.4.4
- OS: CentOS 7
- Service Version:
- OS: Win 7 Pro
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.
@chris178 I was able to fix the issue. If you can do a
git pullfrom 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:
@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-workman I got exactly the same output. So now what?
@chris178 That is highly interesting coming from a CentOS 7 server…
ipis a standard command on CentOS 7 minimal and should be present.
Line 31 gets the absolute path of the
Line 51 then calls a function to check and see if
$ipis 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.
@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.
@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).
- 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.
- There should be a root crontab event to run a script in
/opt/fog/utils/MakeFogMobile/MakeFogMobile.shevery 3 minutes.
- The log file for the script is here, and it’s very exact and human-friendly:
Did you run the installer?
I checked all of the web settings before I made the post. I’ll see about editing the file tomorrow. Thanks @george1421
@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.
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.