Storage Node Pxe not working
-
@abstert To what is that an IP for? 10.63.10.107 ? is that the master storage node in your new storage group, or is that the primary FOG server?
And what happens if you go to that address?
http://10.63.10.107/fog/service/ipxe/boot.php
If that IP is a storage node or the main server, can you verify this file actually exists on the server? i.e. go to the CLI of that server and go to /var/www/html/fog/service/ipxe or /var/www/fog/service/ipxe
-
@Wayne-Workman That IP is for the site B storage node, which is now the master node for site B’s storage group. I can view the contents of the directory via CLI /var/www/html/fog/service/ipxe or /var/www/fog/service/ipxe which contain:
advanced.php bg.png boot.php bzImage bzImage32 grub.exe init_32.xz init.xz memdisk memtest.binIf I go to the website http://10.63.10.107/fog/service/ipxe/boot.php there is nothing that shows up on my browser.
-
@abstert is Apache running? it’s the httpd service on redhat systems.
If you go to 10.63.10.107 you ought to get the Apache test page.
Or check the status on Fedora/CentOS/RHEL with
systemctl status httpd
or on Debian/Ubuntu like this:
service httpd status
Also - see if your firewall is off or not for that storage node.
-
@Wayne-Workman Apache is running:
service httpd status
httpd (pid 23626) is running…Firewall is completely disabled and turned off with no rules set.
-
in the default.ipxe file on your storage node (it is a plain text file) edit the IP to be that of your primary fog server
-
@Junkhacker
This is what the default.ipxe has. We did modify the line beginning with “chain” to be the IP of our primary fog server and now our remote PCs can PXE boot as well as work using the registration/imaging capability of FOG.!ipxe
cpuid --ext 29 && set arch x86_64 || set arch i386
params
param mac0 ${net0/mac}
param arch ${arch}
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain http://changedthisIP/fog/service/ipxe/boot.php##paramsCan you please provide the details as to why this was the fix?
Thanks
-
for whatever reason the fog/service/ipxe/boot.php web address on your storage node wasn’t working correctly. there are a lot of reasons that might be happening (apache config problems, php config problems, db connection problems, firewalls, etc…), but if your hosts can reach the primary fog server they can just load up the one there. this url is the php file that dynamically generates the text used in the pxe boot menu
-
I should add that the change to the default.ipxe file took me to the “Full Registration…” menu and allowed me to run through the prompts, but would not let me image a system. It wasn’t until i copied over the /var/www/html/fog/service/ipxe file over to the storage node that I was able to successfully image a system.
I’m going to document the exact steps to get a storage node setup at another branch office and have it image systems locally using the storage node instead of the master fog server. I should have this up by end of week.
-
@abstert Are the nodes on the same version/revision as the “main server”? I ask this because all of the nodes and servers should have the files they need in the respective /var/www/fog/service/ipxe (or whatever path it really is) by default. Copying the folder from one to the other should not need to happen. What this tells me is either the nodes were not updated, or the nodes had been altered in some way.
-
@Tom-Elliott
Yes all the nodes are on the same version as the main server. They had the files/folder in the path /var/www/html/fog/service/ipxe, but the clients booting from one of the storage nodes would not display the menu until we copied over the folder from the main server. We did make some modifications to the main server’s FOG_TFTP_PXE_KERNEL so that is why I had to copy it over to the clients.