[Dnsmasq-discuss] dnsmasq-tftp : failed sending file

Simon Kelley simon at thekelleys.org.uk
Sun Nov 22 22:47:10 GMT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



On 22/11/15 07:14, Louis Garcia wrote:
> I am trying to debug a uefi pxe problem and found tftp failing to
> send files. I created /var/lib/tftpboot/test.txt file and from
> another computer I used the tftp command to get the file.
> 
> $tftp 192.168.0.5 tftp> get test.txt Transfer timed out.
> 
> I found this is the logs over and over Nov 22 01:58:20 tiger
> dnsmasq-tftp[2282]: failed sending /var/lib/tftpboot/test.txt to
> 192.168.0.26

That's a timeout awaiting an ACK for a data transfer.
> 
> sometimes this Nov 22 01:58:38 tiger dnsmasq-tftp[2282]: error 8
> User aborted the transfer received from 192.168.0.26

That comes from the client end: Note that some PXE ROMS do this as a
matter of course. They check that a file is accessible by downloading
 that fist block and then aborting the transfer.


> 
> 
> # Configuration file for dnsmasq:
> 
> # Turn on the debugging log-dhcp
> 
> # Don't function as a DNS server port=0
> 
> # kill multicast dhcp-option=vendor:PXEClient,6,2b
> 
> # This range(s) is for the public interface, where dnsmasq
> functions # as a proxy DHCP server providing boot information but
> no IP leases. # Any ip in the subnet will do, so you may just put
> your server NIC ip here. dhcp-range=192.168.0.5,proxy
> 
> # Set the boot filename for netboot/PXE. You will only need this if
> you want to # boot machines over the network and you will need the
> built in TFTP server.
> 
> #pxe-prompt="What system shall I netboot?", timeout before first
> available action is taken: pxe-prompt="Press F8 for the Menu.", 5
> 
> #Loads <tftp-root>/pxelinux.0 from dnsmasq TFTP server. 
> pxe-service=x86PC, "Install Fedora Workstation, (BIOS)", pxelinux
> 
> #Loads <tftp-root>/uefi/shim.efi from dnsmasq TFTP server. 
> pxe-service=X86-64_EFI, "Boot From Network, (UEFI)", grubx64 
> pxe-service=BC_EFI, "Boot From Network, (UEFI)", grubx64
> 
> # Enable dnsmasq's built-in TFTP server enable-tftp
> 
> # Set the root directory for files available via FTP. 
> tftp-root=/var/lib/tftpboot
> 
> 

I wonder if the client is asking for a block size greater than the
network MTU?  Try adding

tftp-no-blocksize

to the configuration.

Cheers,

Simon.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWUkXtAAoJEBXN2mrhkTWi6r4QAI0ECeSdvv4/i82BmKVA/pJR
rcKtUrUKAzZiJ0kA+e5w0snHNfvB7c7ED3DBli4DN4rxJ8UQuwI1ABbaLfD4ETfR
v5emvTyYeLQzrSU85jEOvVerxPhtB7YAEuDrvCzt42S4K507YS5dhHJ86oiR3KAp
gE7GcSAdhqG2Q2FIrI9BjzB7B76drDWsa9c0G8a1AruFKbcH6Ljcz07pTHqa5Vtd
DyU06wZjIckfEBIxVpqjxtDZ8Dt8IaQau2vx3lRPpcCdlthPdwtLG9atdWsYKoh4
37ciZWORskPqq7vw+fNYRmUtCUXKIqeqkYAKOuUIqZQpw1Fs2l/J/oxZEZKT7rsW
ewCrdTYv6p0itlaSoqR6FrvdWTSmvoLOYvJFFQfImWoRYA5DQgKs9BdpZIACLDKx
SYWojYem+GCwofNSa7ncqHCrR6Enuhpvr+czpP1D0SFLXR3VuOVzX49MnjAjhfH0
Zg+kB0We3VzbfI5otjbUeT2x4t6S6WssU7eAuvnqb6JW46RJRTXpongJk579tOQH
p+2n2DAhejVRENWDFzXP8sB4pX0EBmLieMgN00N8WsSTQwHyYl46qcQyXD6fi8JB
MwHckb7m6h/JaJ6MkhxZGVtzG/XQxR6CdVkpFGpnRz4iUOSnufbzMfFfVYFcE/Ej
oq7xg/z4iSud3DfL20g0
=KdQi
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list