TFTP Issues



  • Hello,

    After reading countless posts and the entire troubleshooting guide I still can’t get TFTP to work. I’ll try to include everything I have tested and tried so far and the error messages I’m receiving. A little back story we have a mixed environment some laptops and some desktops, the weird thing is we’re getting different errors on both systems.

    Problems on Desktop:

    Client receives IP address and then states
    TFTP.
    PXE-T01: File not found.
    PXE-E3B: TFTP Error - File Not found
    PXE-M0F: Exiting PXE ROM.

    Problems on Laptops:

    Client receives IP address and then states
    TFTP.
    PXE-M0F: Exiting Intel Boot Agent

    Here are some specs I’m running:

    FOG Machine:

    OS: Ubuntu 16.04
    I have upgraded to the latest trunk. (update was performed on 8/30)

    DHCP Server:

    OS: Windows Server 2008 R2
    Option 66: is the ip of the Fog server
    Option 67: undionly.kpxe

    The Laptops are Lenovo P50’s.

    In the laptops BIOS I have secure boot turned off, using both UEFI and Legacy but Legacy first.

    The Desktops vary but all are HP ProDesk’s of some form.

    My main concern is trying to get the laptops able to capture images and deploy. We are going to a mobile setup, so desktops won’t be an issue much longer and we already have an inefficient way to image desktops but this wont work for the laptops.

    We are testing on one subnet inside one physical location right now, but a little network background may help.

    All clients are on the 192.168.39.x VLAN they are all connected to the same switch on 192.168.39.x. Spanning Tree is enabled on this switch but I’m not sure if that is causing an issue or not, I haven’t been able to test changing that option.

    I’m at a loss as to where the problem now resides any advice would be awesome.

    Sorry for the long post, hope this is a good starting place though, if you need any more information please let me know.



  • Well… This is embarrassing.

    Good news I fixed it, i get into the PXE menu now! :D

    I do have a different question now, when I click boot from hard disk in the pxe menu it doesn’t load the operating system, any ideas for that?

    For the issue relating to TFTP this is what happened:

    I set up a packet scan on both the DHCP and PXE server and after analyzing the packets i noticed there were two different packets sending a different option 66 and option 67. One was right pointing to the FOG server and Undionly.kpxe the other however pointed to the DHCP server. Apparently an old image deployment software was still working even though the options weren’t configure anymore. I removed these and everything worked great!


  • Moderator

    @zln1996 All of these errors:

    PXE-T01: File not found.
    PXE-E3B: TFTP Error - File Not found
    PXE-M0F: Exiting PXE ROM.
    

    Mean that it couldn’t find the file at the specified IP.
    Since the file exists on the fog server, and TFTP is running on the server, I think you could possibly have multiple DHCP servers - and at least one does not have options 066 and 067 configured. Or possibly a duplicate IP address for the FOG server somewhere.

    Both of these scenarios are very easy to test. For the duplicate IP, turn off the fog server and then ping it’s IP. A response means a duplicate. The other scenario with multiple misconfigured DHCP servers is also easy, just fire up wireshark and use the bootp filter, any DHCP traffic from other than your DHCP server means you have more than one. You can even look through the DHCP options given by ALL the dhcp servers you find and see if it’s correct or not. I’ve seen cases where people set the options for a scope but the global options over-ride these lower options - that was with server 2008 in one case once.



  • @Wayne-Workman Nope Ubuntu was a clean install. I’ll start looking through that article right now.

    The output of ls -lahRt /tftpboot is:

    /tftpboot:
    total 6.6M
    drwxr-xr-x 27 root root 4.0K Aug 31 23:58 ..
    drwxr-xr-x  5 fog  root 4.0K Aug 31 13:47 .
    -rw-r--r--  1 root root  429 Aug 31 13:47 default.ipxe
    -rw-r-xr-x  1 fog  root 198K Aug 31 13:47 intel.efi
    -rw-r-xr-x  1 fog  root 842K Aug 31 13:47 ipxe.iso
    -rw-r-xr-x  1 fog  root  26K Aug 31 13:47 libutil.c32
    -rw-r-xr-x  1 fog  root 197K Aug 31 13:47 realtek.efi
    -rw-r-xr-x  1 fog  root  29K Aug 31 13:47 menu.c32
    -rw-r-xr-x  1 fog  root  43K Aug 31 13:47 pxelinux.0
    -rw-r-xr-x  1 fog  root  30K Aug 31 13:47 vesamenu.c32
    -rw-r-xr-x  1 fog  root  93K Aug 31 13:47 realtek.kkpxe
    -rw-r-xr-x  1 fog  root  93K Aug 31 13:47 realtek.pxe
    -rw-r-xr-x  1 fog  root  92K Aug 31 13:47 intel.kkpxe
    -rw-r-xr-x  1 fog  root  92K Aug 31 13:47 intel.kpxe
    -rw-r-xr-x  1 fog  root 196K Aug 31 13:47 snp.efi
    -rw-r-xr-x  1 fog  root 334K Aug 31 13:47 ipxe.krn
    -rw-r-xr-x  1 fog  root 194K Aug 31 13:47 snp7156.efi
    drwxr-xr-x  2 fog  root 4.0K Aug 31 13:47 i386-7156-efi
    drwxr-xr-x  2 fog  root 4.0K Aug 31 13:47 i386-efi
    -rw-r-xr-x  1 fog  root  92K Aug 31 13:47 intel.pxe
    -rw-r-xr-x  1 fog  root 335K Aug 31 13:47 ipxe.kpxe
    drwxr-xr-x  2 fog  root 4.0K Aug 31 13:47 pxelinux.cfg
    -rw-r-xr-x  1 fog  root  92K Aug 31 13:47 undionly.kpxe
    -rw-r-xr-x  1 fog  root 195K Aug 31 13:47 intel7156.efi
    -rw-r-xr-x  1 fog  root  26K Aug 31 13:47 memdisk
    -rw-r-xr-x  1 fog  root 195K Aug 31 13:47 realtek7156.efi
    -rw-r-xr-x  1 fog  root  93K Aug 31 13:47 realtek.kpxe
    -rw-r-xr-x  1 fog  root 194K Aug 31 13:47 snponly7156.efi
    -rw-r-xr-x  1 fog  root  92K Aug 31 13:47 undionly.pxe
    -rw-r-xr-x  1 fog  root 921K Aug 31 13:47 ipxe7156.efi
    -rw-r-xr-x  1 fog  root 121K Aug 31 13:47 ldlinux.c32
    -rw-r-xr-x  1 fog  root  92K Aug 31 13:47 undionly.kkpxe
    -rw-r-xr-x  1 fog  root 196K Aug 31 13:47 snponly.efi
    -rw-r-xr-x  1 fog  root 335K Aug 31 13:47 ipxe.kkpxe
    -rw-r-xr-x  1 fog  root 184K Aug 31 13:47 libcom32.c32
    -rw-r-xr-x  1 fog  root 926K Aug 31 13:47 ipxe.efi
    -rw-r-xr-x  1 fog  root  840 Aug 31 13:47 boot.txt
    -rw-r-xr-x  1 fog  root 335K Aug 31 13:47 ipxe.pxe
    -rw-r-xr-x  1 fog  root  43K Aug 31 13:47 pxelinux.0.old
    
    /tftpboot/i386-7156-efi:
    total 1.5M
    drwxr-xr-x 5 fog root 4.0K Aug 31 13:47 ..
    drwxr-xr-x 2 fog root 4.0K Aug 31 13:47 .
    -rw-r-xr-x 1 fog root 157K Aug 31 13:47 intel.efi
    -rw-r-xr-x 1 fog root 157K Aug 31 13:47 realtek.efi
    -rw-r-xr-x 1 fog root 156K Aug 31 13:47 snp.efi
    -rw-r-xr-x 1 fog root 156K Aug 31 13:47 snponly.efi
    -rw-r-xr-x 1 fog root 836K Aug 31 13:47 ipxe.efi
    
    /tftpboot/i386-efi:
    total 1.5M
    drwxr-xr-x 5 fog root 4.0K Aug 31 13:47 ..
    drwxr-xr-x 2 fog root 4.0K Aug 31 13:47 .
    -rw-r-xr-x 1 fog root 158K Aug 31 13:47 intel.efi
    -rw-r-xr-x 1 fog root 158K Aug 31 13:47 realtek.efi
    -rw-r-xr-x 1 fog root 158K Aug 31 13:47 snp.efi
    -rw-r-xr-x 1 fog root 841K Aug 31 13:47 ipxe.efi
    -rw-r-xr-x 1 fog root 158K Aug 31 13:47 snponly.efi
    
    /tftpboot/pxelinux.cfg:
    total 12K
    drwxr-xr-x 5 fog root 4.0K Aug 31 13:47 ..
    drwxr-xr-x 2 fog root 4.0K Aug 31 13:47 .
    -rw-r-xr-x 1 fog root  160 Aug 31 13:47 default
    

  • Moderator

    @zln1996 Did you upgrade from an older OS to Ubuntu 16?

    Also, look through this article:
    https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_TFTP

    And what is the output of ls -lahRt /tftpboot



  • Hey Wayne,

    Thanks for the quick response.

    I followed this guide here: https://wiki.fogproject.org/wiki/index.php?title=Tftp_timeout

    I ran the command: service tftpd-hpa status and received this:
    tftpd-hpa.service - LSB: HPA’s tftp server
    Loaded: loaded (/etc/init.d/tftpd-hpa; bad; vendor preset: enabled)
    Active: active (running) since Fri 2016-09-02 11:31:54 EDT; 2h 24min ago
    Docs: man:systemd-sysv-generator(8)
    CGroup: /system.slice/tftpd-hpa.service
    └─4566 /usr/sbin/in.tftpd --listen --user root --address :69 -s /tftp

    To my knowledge the update went successful i followed the procedure on the wiki using the GIT method.

    Another thing On my windows machines (including the DHCP server) I’ve installed TFTP and issued the command tftp <ip address of FOG> GET undionly.kpxe and they receive the file, with no problem at all.


  • Moderator

    What troubleshooting guide did you follow?

    Check that tftp is running on the server. Did you update the server successfully to fog trunk? How did you update, exactly?


Log in to reply
 

398
Online

39210
Users

10856
Topics

103346
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.