TFTP booting problem
Paul English
tallpaul at speakeasy.org
Mon Dec 6 20:24:22 CET 2004
On Mon, 6 Dec 2004, Henning Glawe wrote:
> On Sun, Dec 05, 2004 at 06:50:47PM -0800, Paul English wrote:
> > I have installed tftpd-hpa as well as all of the FAI packages recommended
> > in Section 2.3 of the manual and there is a line for it inetd.conf and
> > inetd is running and tcp based inetd services respond when I telnet to
> > their ports.
> >
> > Any suggestions?
>
> what do the server's logfiles tell ? especially if you switch the tftpd into
> verbose mode (append -v to the inetd.conf line to increase verbosity).
Without -v previously, daemon.log reported:
Dec 6 11:19:04 cerberos inetd[181]: ftp/udp: unknown service
at approximately the time of attempt. However, this is tftp not ftp, so
I'm not sure what that is about.
It does not happen again with the -v option, in fact nothing appears in
the logs with -v. This makes me think that tftp may not be getting
started.
> Some ideas:
> - is your client allowed to access the tftpd ?
It appears (according to in.tftpd -V) that tftpd was built with tcp
wrappers support. The hosts.allow and deny were empty, so I just added
ALL: ALL to hosts.allow.
> - do the tftpd version, inetd.conf and dhcpd.conf match ?
/usr/sbin/in.tftpd -V
tftp-hpa 0.28, with remap, with tcpwrappers
inetd.conf:
#tftp dgram udp wait root /usr/sbin/in.tftpd /var/ftpd
ftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -v -s /boot/fai
Below is dhcpd.conf. I basically took the fai example and modified it for
my network:
# dhcpd.conf for fai
# replace FAISERVER with the name of your install server
# dhcp3 3.0+3.0.1rc9-2.2 can't use user options (option-17X). This is
# a known bug in dhclient. Use fai-chboot(8) instead when using PXE.
# With fai-chboot(8) you can define all kernel parameters
# deny unknown-clients;
option dhcp-max-message-size 2048;
use-host-decl-names on;
#always-reply-rfc1048 on;
filename "pxelinux.0";
# the server from which to load the initial boot file if different
# from server-name (if the DHCP server is not also the TFTP server)
#next-server faiserver;
#option option-170 "faiserver:/usr/local/share/fai"; # FAI_LOCATION
#option option-171 "sysinfo"; # FAI_ACTION
#option option-172 "verbose,createvt,sshd"; # FAI_FLAGS
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.1 10.10.10.250;
option routers 10.10.10.100;
option domain-name "3tiergroup.com";
}
subnet 10.0.1.0 netmask 255.255.255.0 {
range 10.0.1.1 10.0.1.250;
option routers 10.10.10.100;
option domain-name "3tiergroup.com";
option domain-name-servers 10.10.10.22;
option time-servers faiserver;
option ntp-servers faiserver;
server-name "faiserver";
option root-path
"/usr/lib/fai/nfsroot,rsize=8192,wsize=8192,acregmin=1800,ac
regmax=1800,acdirmin=1800,acdirmax=1800";
}
# perl -ane ' {print "host atom {hardware ethernet $1;fixed-address
atom}";}'
#host demohost {hardware ethernet 0:2:a3:b5:c5:41;fixed-address demohost;}
# Using the format above
host mercury2 {hardware ethernet 00:30:48:51:C4:D7;fixed-address
mercury2;}
More information about the linux-fai
mailing list