New FOG Server setup
-
Currently have a fog server setup using and old desktop with centos 7 on it. Just upgraded fog to the current stable level and all is working fine.
Setup a new server with a beefed up desktop running centos 7 on it. Installed the latest stable fog and then went through the migration steps to copy over my images and db to this new server. Looks like everything copied over fine.
After this, i went to change the ip addresses, since the migration copied over all of the old server ip references. Also changed everything in the fog management gui and changed my existing Windows dhcp server to use the new ip address. I think i changed them in all of the locations but when i tried to test it, the client gets an ip address, but then it shows
TFTP for about 4-5 seconds,
then it shows PXE-E11: ARP timeout
PXE-E38: TFTP cannot open connection
PXE-M0F: Exiting PXE ROMI’ve read and read about this and have troubleshot for 2 days with no luck. Im a very newbie linux person and don’t know anything about it or how to manipulate it with commands except to type from what i read on the screen or a printed out paper. I wanted to try the updateIP.sh script as that seems to say that it will do EVERYTHING for you, BUT cannot for the life of me figure out how to run it. I was able to download it, from github, using curl but when i tried to run it, it said permission denied.
I’ve confused myself over these 2 days so much that i’ve started a fresh install, so i need, what i’m sure is EASY for anyone else, all of the COMPLETE steps to help ease my pain.
Thanks in advance for helping a guy that is linux dumb and LOST.
-
@gfontenot So let me understand. Did you change the IP address of the new FOG server since FOG was installed. I understand you copied over the old database so the database settings are wrong. You will need to update the FOG server IP address in the configuration settings page as well as the storage node pages. That should be it. If you changed the IP address of the fog server itself after you installed FOG then there are a few other steps. Even after updating the webgui settings you should rerun through the fog installer script again to resync everything.
After that is all done, if you are still getting a PXE boot error, take a clear screen shot of the error page with a mobile phone and post the picture here. The context of the error is almost as important as the error itself.
-
This tool will help you along: https://github.com/FOGProject/fog-community-scripts/tree/master/updateIP
-
@gfontenot said in New FOG Server setup:
Im a very newbie linux person and don’t know anything about it or how to manipulate it with commands except to type from what i read on the screen or a printed out paper. I wanted to try the updateIP.sh script as that seems to say that it will do EVERYTHING for you, BUT cannot for the life of me figure out how to run it. I was able to download it, from github, using curl but when i tried to run it, it said permission denied.
You probably need to make the script executable by issuing this command.
chmod 755 updateIP.sh
In linux scripts are not automatically assumed to be runable.
-
@george1421 I’m going to try that 1st thing in the morning, thanks.
-
@george1421 Yes, i changed the ip address in the fog management gui places. Attached is the photo of my pxe error. The only thing NOT in the picture is that where it says PXE-E11: ARP timeout is where TFTP stayed for 4-5 seconds.
Can’t get the image to upload, this is what it says after the client gets an ipaddress.
TFTP (for about 4-5 seconds)
PXE-E11: ARP timeout
PXE-E11: ARP timeout
PXE-E38: TFTP cannot open connection
PXE-M0F: Exiting PXE ROM -
@gfontenot I seem to recall someone reporting that the upload function wasn’t working on the forums. Could you upload to a google drive, photobucket or some other image sharing solution so I could see the screen shot?
-
Ok, i figured out my issue, i had changed the ip address in option 66 in dhcp server options but neglected to change it in scope options. Once that was changed, it connected. Do i need it in both locations or just scope options?
However after i start fogging a computer as a test, it error’s out saying something to the effect of the image is corrupt.
Im thinking of doing another migrate of my images from the old server to the new, can i just migrate the images since everything else was already migrated and changed?
-
@gfontenot You didn’t happen to mention what version you were upgrading from. But in my simple mind, I would just copy the raw image files from the old FOG server to the new FOG server making sure the directory permissions and owner is set correctly on the copied files. Then from the webgui, export the image definitions into a csv file, and then import them into your new fog server. You will need to reregister all of your hosts again, but then you don’t get a bunch of legacy settings over to your new fog server. If that route doesn’t work, you can always import the DB like you did before.