Fog will not PXE BOOT
-
@mmoore5553 So fog is on an isolated imaging network.
To install fog you need to have internet access. That is a requirement if you install from git or the tarball.
FOG does not like it if you change the fog server’s IP address after fog is installed. If you do change the IP address then fog will break. Its possible to fix, we just need to know this happened.
What is your logic to have fog on an isolated imaging network?
-
just upper management says it is in isolated network. I have it hooked to internet and download everything and then i go under network and interfaces file and static set the ip address . I only have one network card .
we have a lab where we take all the computers and reimage them.
-
@mmoore5553 So then there is a possibility that the FOG server’s IP address/subnet mask has changed?
-
yes i change the ip address since it requires internet when it first installs.
-
@mmoore5553 Well you have a mess to clean up
Well not really. FWIW if you want to have a dedicated imaging network but have fog able to reach the internet for installation (only needed for that) then its ideal if you install a second network adapter in your fog server. When you install fog you will tell it to only image using network adapter X while network adapter Y has internet access to download the required files. Once the files have been downloaded you can unplug the second network adapter until you need to update fog, if you have security concerns. Or you can use the second network adapter for FOG management. That bit is up to you.
If this is possible in your environment I can guide you on how to set it up.
-
That sounds like a good idea. I will go ahead an get a usb to network adapter. I have one at home for the nintendo switch. I will install linux and run the install again. I assume I would just setup and pick the network card in the settings ?
-
@mmoore5553 You can fix what is there now, and then add the usb network later. Its just easier to do it in the beginning. But reinstalling to just fix what is wrong is more effort than fixing it.
You will need to edit the following files to fix what has been changed.
Correct the fog server IP address here:
/opt/fog/.fogsettings
/tftpboot/default.ipxe
/etc/dhcp/dhcpd.confThen in the webgui you need to go to the fog configuration settings. Pick the Expand all options and then search for the old fog server IP address, change and then save the settings. I think its in 3 places under fog settings.
Lastly in the storage management -> default storage node you need to fix the IP address there too.It should take you about 10 minutes to fix then reboot the fog server.
-
Now here is the problem that i have …
I go into computer and then look at all the folders and files.
I do not have /tftpboot
I do not have anything under /opt/fog. No folders or files listed under there.
I do have the dncpd.conf
that is why i thought i had a bad install. I see the on the old fog server on the laptop. Those locations are there. I install fog under the root admin. I always enable that and do all installs under root in ubuntu. Forced habit of seeing files failed in other software.
That is what got me wondering why the files where gone. I can find them under /var/lib/tftpboot and the .fogsettings I can not find at all.
i am able to go to the ip address and open up the gui with no issues.
i am using 1.05 install and follow same instructions on the wiki . I wanted to be sure i was not going crazy .
-
@mmoore5553 I would agree, the hidden file is create in /opt/fog called .fogsettings (the dot in the beginning of the name makes it hidden). If that file does not exist then the FOG installer did not complete. So you have a botched install.
Recommendation: If you were to reinstall the FOG server, use debian instead of ubuntu. Connical has been doing some bad things with ubuntu lately causing us pain. Ubuntu is based on Debian so all of the install commands work the same.
-
the problem is that i have installed linux over 2 times and then the same files and folders never exist. I will try with the second nic card as maybe that is the issue.
i do not know why .fogsettings file and the tftp folder is missing on both new installs.
-
@mmoore5553 When you get the second nic installed let me know and I will give you the instructions. The setup is not hard you need to know the name of your physical ethernet adapter (eth0 or what ever your kernel calls it) and then set a default route on your second nic pointing towards the internet. Ensure your physical LAN adapter has a static IP address set for the imaging network. And finally use the git method of downloading the installer files. During setup the installer will ask you for the name of your imaging network adapter (not in those words) you just need to ensure its your physical LAN network adapter name. The rest will be installed correctly.
-
i swear i can not win. I had a talk to management and we have to use ubuntu desktop. I am unable to get it to start.
I am not sure but at the end where it is checking web services it fails. I went back to the ubuntu that is working on the laptop. I am installing newest version and that is the only spot it fails.
I have a second network adapter . i went through the normal install and choose no for router portion. i assigned an ip address and made the fog server dhcp and dns. Everything appears to install but the starting and checking status of web services fail.
not sure where to go from here
-
With a quick teamviewer session this issue has been resolved. The issue was just the sequence of install and ensuring eth0 was up before installing FOG.