PXE TFTP File Not Found
-
FOG is really annoying me now - I have DHCP options 66 configured for my FOGServer - 192.168.17.250 and i’ve tried option 67 with undionly,kpxe undionlykkpxe and ipxe.efi but still keep getting the tftp file not found
FOG Verson 1.5.10,
Ubuntu 22.04.4LTSI dont really want to copy the VHD from my PC lab to my server lab - Would rather have a fresh slate in this room - What am I missing please!!!
-
@RogerBrownTDL This condition could have several root causes, with some not FOG related.
First look to see if there is content in /tftpboot on the fog server. If that directory is missing or simply empty then you missed a step during installation (high probability)
The boot file option (dhcp option 67) needs to match the type of computer you are booting. For uefi computer it needs to be ipxe.efi or bios computer it needs to be undionly.kpxe.
If you are using a soho router for your dhcp server, many will send their IP address instead of the IP address you configured into the dhcp router. So what device is your dhcp server?
-
@george1421 Hi fella, long time no “see” How can I check the TFTP boot directory? - If it’s blank, how do I populate? i have this in tftpd-hpa? Is this where you mean?
fogadmin@tie-svrbr-fog:~$ cat /etc/default/tftpd-hpa
/etc/default/tftpd-hpa
TFTP_USERNAME=“tftp”
TFTP_DIRECTORY=“/srv/tftp”
TFTP_ADDRESS=“:69”
TFTP_OPTIONS=“–secure” -
@RogerBrownTDL said in PXE TFTP File Not Found:
TFTP_DIRECTORY=“/srv/tftp”
OK then in this directory, is it blank? Different distros have different locations for the boot directory. I thought the fog installer created a standard but maybe not. If its blank, the most often cause is that you did not perform step 3 in the installer. Step 1 is to run the fog installer script, step 2 is to open a web browser to install the database, then in step 3 you return to the fog console and press enter to complete the install. This is the part where the tftpboot files are installed.
-
@george1421 Yup tftp folder is blank/empty
-
@RogerBrownTDL So the installer always defaults to
/tftpboot
folderyou may need to make
/srv/tftp
a ln to this folder? Or edit the /etc/default/tftpd-hpa file to makeTFTP_DIRETORY=/tftpboot
This occurs in:
echo -e "# /etc/default/tftpd-hpa\n# FOG Modified version\nTFTP_USERNAME=\"root\"\nTFTP_DIRECTORY=\"/ tftpboot\"\nTFTP_ADDRESS=\":69\"\nTFTP_OPTIONS=\"${tftpAdvOpts:+ $tftpAdvOpts }-s\"" > "$tftpconfigupstartdefaults"
Which effectively makes the (default) file look like:
# /etc/default/tftpd-hpa # FOG Modified version TFTP_USERNAME="root" TFTP_DIRECTORY="/tftpboot" TFTP__ADDRESS=":69" TFTP_OPTIONS="-s'
-
@Tom-Elliott @george1421 I’ve done it, Winscp’d the files from my PC build lab FOG and added them to the directory on the SRV build lab FOG… PXE now working!!! woop