tftp config problem (ltsp)

sean tech.junk at verizon.net
Tue Nov 6 11:01:38 EST 2007


Paul Lussier wrote:
   Remember that tftp
> effectively chroots you to $INTFTPD_PATH. Therefore, whatever file you
> need to 'get' will have to be in the form of a literal path with that
> in mind.
> 
> If you've set $INTFTPD_PATH to /tftpboot, you can not specify a DHCP
> server "filename" option for some path that is NOT downn /tftpboot.

> 
> For example:
> 
>   My inetd.conf file specifies:
> 
>     tftp dgram udp wait root  /usr/sbin/in.tftpd /usr/sbin/in.tft pd \
>     -s -r blksize /boot/fai
> 
>   That last argument is the tftp root directory.
> 
>   My DHCP config specifies:
> 
>     next-server fai;
>     filename "pxelinux.0";
> 
> Guess where "pxelinux.0" lives ?  In /boot/fai.

I understand that "pxelinux.0" lives in /boot/fai.



This is my /tftboot layout
tardis tftpboot # ls -R
.:
lts  pxe  pxelinux.cfg

./lts:
bzImage-2.6.17.8-ltsp-1  vmlinuz-2.6.17.8-ltsp-1

./pxe:
bzImage-2.6.17.8-ltsp-1    eb-5.0.9-eepro100.lzpxe  initramfs.gz
eb-5.0.9-3c905c-tpo.lzpxe  eb-5.0.9-rtl8139.lzpxe   pxelinux.0

./pxelinux.cfg:
default


My in.tftpd

# /etc/init.d/in.tftpd

# Path to server files from
# Depending on your application you may have to change this.
# This is commented out to force you to look at the file!
#INTFTPD_PATH="/var/tftp/"
INTFTPD_PATH="/tftpboot"
#INTFTPD_PATH="/tftproot/"

# For more options, see in.tftpd(8)
# -R 4096:32767 solves problems with ARC firmware, and obsoletes
# the /proc/sys/net/ipv4/ip_local_port_range hack.
# -s causes $INTFTPD_PATH to be the root of the TFTP tree.
# -l is passed by the init script in addition to these options.
INTFTPD_OPTS="-R 4096:32767 -s ${INTFTPD_PATH}"

I read that the -s option means secure and that the /tftboot
is understood to be preceding the /pxe below?

filename                                "/pxe/pxelinux.0";

When I specified the above in dhcpd.conf the client booted till it could 
not find the kernel, which would be the vmlinuz file below.


When filename was setup as

filename                               "/lts/vmlinuz-2.6.17.8-ltsp-1";

The client tried appeared to pull the file. I received a NBP is too 
large error. That would seem to be that the file is transferred.
My next server is by IP.

Thanks Paul. Just trying to make sure all that you are writing.

			Sean


More information about the gnhlug-discuss mailing list