Jump to content

TFTP/PXE boot help


damonq

Recommended Posts

Having trouble configuring PXE boot

syslog:

Oct 28 15:55:23 Tower inetd[24348]: execv /usr/sbin/in.tftpd: Exec format error (Errors)

Oct 28 15:55:23 Tower inetd[24204]: /usr/sbin/in.tftpd: exit status 0x1

Oct 28 15:55:31 Tower inetd[24366]: execv /usr/sbin/in.tftpd: Exec format error (Errors)

Oct 28 15:55:31 Tower inetd[24204]: /usr/sbin/in.tftpd: exit status 0x1

Oct 28 15:55:40 Tower inetd[24373]: execv /usr/sbin/in.tftpd: Exec format error (Errors)

Oct 28 15:55:40 Tower inetd[24204]: /usr/sbin/in.tftpd: exit status 0x

 

When attempting PXE boot via vbox keep getting: TFTP timing out

 

Already done:

1.downloaded tftp-hpa-0.49-x86_64-1.txz to flash/extras

1. Installed tftp-hpa-0.49-x86_64-1.txz  installpkg tftp-hpa*

2. Edited inetd.conf file

nano etc/inetd.conf

deleted # before

tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot

        changed path from /var/lib/tftpboot to mnt/usr/pxe/

 

3. pidof inetd

1087

kill -HUP 1087

 

Created user share in unraid menu:pxe

made share public in nfs & SMB

 

got files from http://stuffbyjeroen.blogspot.com/2011/07/using-unraid-server-to-pxe-boot.html

and transferred to mnt/user/pxe/

 

Have tried and retried several things & nothing... Please help.

 

 

Link to comment

thanks for your reply I am very new to linux and CLI so bear with me

 

    checked the mnt/user/pxe/  path in inetd.conf and it was correct, just a typo in posting

 

    ran ldd -v /usr/sbin/in.tftpd & ldd /usr/sbin/in.tftpd

          ouput:not a dynamic executable  (on both)

 

Also checked router settings:

DDWRT installed

    DNS Masq enabled

    Additional DNS Masq options: dhcp-boot=pxelinux.0,,192.168.1.102  (192.168.1.102 being static ip on unraid tower)

 

Syslog: same

Oct 28 17:13:54 Tower inetd[29712]: execv /usr/sbin/in.tftpd: Exec format error

Oct 28 17:13:54 Tower inetd[28678]: /usr/sbin/in.tftpd: exit status 0x1

Oct 28 17:14:03 Tower inetd[29732]: execv /usr/sbin/in.tftpd: Exec format error

Oct 28 17:14:03 Tower inetd[28678]: /usr/sbin/in.tftpd: exit status 0x1

 

can't find any dependencies listed for tftp

wondering if I should try xinetd. Anyone have success with this

 

 

 

 

 

 

   

 

 

Link to comment

From that web page I downloaded the tftp.

 

I tested with ldd and did a transfer. this is what I received.

 

 

root@atlas /tmp #wget ftp://mirrors.kernel.org/slackware/slackware-12.2/slackware/n/tftp-hpa-0.48-i486-1.tgz

root@atlas /tmp #installpkg tftp-hpa-0.48-i486-1.tgz 
Verifying package tftp-hpa-0.48-i486-1.tgz.
Installing package tftp-hpa-0.48-i486-1.tgz:
PACKAGE DESCRIPTION:
# tftp-hpa (Trivial File Transfer Protocol)
#
# The Trivial File Transfer Protocol (TFTP) is normally used only for
# booting diskless workstations (or the Slackware installer).  The tftp
# package provides the user interface for TFTP, which allows users to
# transfer files to and from a remote machine.  This program and TFTP
# provide very little security, and should not be enabled unless it is
# expressly needed.
#
# tftp-hpa is maintained by H. Peter Anvin.
#
Package tftp-hpa-0.48-i486-1.tgz installed.

root@atlas /tmp #ldd /usr/sbin/in.tftpd 
        linux-gate.so.1 =>  (0xb786a000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb784d000)
        libc.so.6 => /lib/libc.so.6 (0xb7701000)
        /lib/ld-linux.so.2 (0xb786b000)

root@atlas /tmp #grep tftpboot /etc/inetd.conf
tftp  dgram   udp     wait    root    /usr/sbin/in.tftpd  in.tftpd -s /var/tftpboot -r blksize

kill -hup `pidof inetd`


root@atlas /tmp #ldd /usr/bin/tftp 
        linux-gate.so.1 =>  (0xb786a000)
        libreadline.so.5 => /usr/lib/libreadline.so.5 (0xb7835000)
        libtermcap.so.2 => /lib/libtermcap.so.2 (0xb7831000)
        libc.so.6 => /lib/libc.so.6 (0xb76e5000)
        /lib/ld-linux.so.2 (0xb786b000)
root@atlas /tmp #

root@atlas /tmp #ls -l > /var/tftpboot/ls.out 
root@atlas /tmp #chmod a+r /var/tftpboot/ls.out

root@atlas /tmp #ls -l ls.out /var/tftpboot/ls.out 
-rw-r--r-- 1 root root 134 Oct 28 22:07 /var/tftpboot/ls.out
-rw-r--r-- 1 root root 134 Oct 28 22:07 ls.out

root@atlas /tmp #diff -s ls.out /var/tftpboot/ls.out        
Files ls.out and /var/tftpboot/ls.out are identical

 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...