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

Simon Kelley simon at thekelleys.org.uk
Mon Nov 23 09:17:06 GMT 2015


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

That log show the effect I described where the PXE ROM aborts a
transfer and the transfers the same file successfully. It's normal.

Cheers,

Simon.



On 23/11/15 00:58, Louis Garcia wrote:
> I've added tftp-no-blocksize but does not seem to help;
> 
> Nov 22 19:51:15 tiger systemd[1]: Started DNS caching server.. Nov
> 22 19:51:15 tiger systemd[1]: Starting DNS caching server.... Nov
> 22 19:51:15 tiger dnsmasq[3344]: started, version 2.75 DNS
> disabled Nov 22 19:51:15 tiger dnsmasq[3344]: compile time options:
> IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP
> no-conntrack ipset auth DNSSEC loop-detect inotify Nov 22 19:51:15
> tiger dnsmasq-dhcp[3344]: DHCP, proxy on subnet 192.168.0.5 Nov 22
> 19:51:15 tiger dnsmasq-tftp[3344]: TFTP root is /srv/tftpboot Nov
> 22 19:52:10 tiger dnsmasq-dhcp[3344]: 717563352 available DHCP
> subnet: 192.168.0.5/255.255.255.0 Nov 22 19:52:10 tiger
> dnsmasq-dhcp[3344]: 717563352 vendor class: 
> PXEClient:Arch:00007:UNDI:003016 Nov 22 19:52:10 tiger
> dnsmasq-dhcp[3344]: 717563352 PXE(enp0s25) b8:ae:ed:73:6f:9b proxy 
> Nov 22 19:52:10 tiger dnsmasq-dhcp[3344]: 717563352 tags: enp0s25 
> Nov 22 19:52:10 tiger dnsmasq-dhcp[3344]: 717563352 broadcast
> response Nov 22 19:52:10 tiger dnsmasq-dhcp[3344]: 717563352 sent
> size:  1 option: 53 message-type  2 Nov 22 19:52:10 tiger
> dnsmasq-dhcp[3344]: 717563352 sent size:  4 option: 54
> server-identifier  192.168.0.5 Nov 22 19:52:10 tiger
> dnsmasq-dhcp[3344]: 717563352 sent size:  9 option: 60 vendor-class
> 50:58:45:43:6c:69:65:6e:74 Nov 22 19:52:10 tiger
> dnsmasq-dhcp[3344]: 717563352 sent size: 17 option: 97
> client-machine-id  00:00:3f:65:c8:77:72:e3:11:93:4d:b8:ae:ed... Nov
> 22 19:52:13 tiger dnsmasq-dhcp[3344]: 717563352 available DHCP
> subnet: 192.168.0.5/255.255.255.0 Nov 22 19:52:13 tiger
> dnsmasq-dhcp[3344]: 717563352 vendor class: 
> PXEClient:Arch:00007:UNDI:003016 Nov 22 19:52:13 tiger
> dnsmasq-dhcp[3344]: 2463408450 available DHCP subnet: 
> 192.168.0.5/255.255.255.0 Nov 22 19:52:13 tiger dnsmasq-dhcp[3344]:
> 2463408450 vendor class: PXEClient:Arch:00007:UNDI:003016 Nov 22
> 19:52:13 tiger dnsmasq-dhcp[3344]: 2463408450 PXE(enp0s25) 
> b8:ae:ed:73:6f:9b proxy Nov 22 19:52:13 tiger dnsmasq-dhcp[3344]:
> 2463408450 tags: enp0s25 Nov 22 19:52:13 tiger dnsmasq-dhcp[3344]:
> 2463408450 bootfile name: grubx64.efi Nov 22 19:52:13 tiger
> dnsmasq-dhcp[3344]: 2463408450 next server: 192.168.0.5 Nov 22
> 19:52:13 tiger dnsmasq-dhcp[3344]: 2463408450 sent size:  1
> option: 53 message-type  5 Nov 22 19:52:13 tiger
> dnsmasq-dhcp[3344]: 2463408450 sent size:  4 option: 54
> server-identifier  192.168.0.5 Nov 22 19:52:13 tiger
> dnsmasq-dhcp[3344]: 2463408450 sent size:  9 option: 60
> vendor-class  50:58:45:43:6c:69:65:6e:74 Nov 22 19:52:13 tiger
> dnsmasq-dhcp[3344]: 2463408450 sent size: 17 option: 97
> client-machine-id  00:00:3f:65:c8:77:72:e3:11:93:4d:b8:ae:ed... Nov
> 22 19:52:15 tiger dnsmasq-tftp[3344]: error 8 User aborted the
> transfer received from 192.168.0.97 Nov 22 19:52:15 tiger
> dnsmasq-tftp[3344]: failed sending /srv/tftpboot/grubx64.efi to
> 192.168.0.97 Nov 22 19:52:15 tiger dnsmasq-tftp[3344]: sent
> /srv/tftpboot/grubx64.efi to 192.168.0.97
> 
> 
> On Sun, Nov 22, 2015 at 5:47 PM, Simon Kelley
> <simon at thekelleys.org.uk> wrote:
> 
> 
> 
> 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.
> 
>> 
>> _______________________________________________ Dnsmasq-discuss
>> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk 
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>> 
> 
> 
> 
> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWUtmSAAoJEBXN2mrhkTWiS50P/R+FscO00qjK6OXkLbD8dNpN
karl/pxTMqrthmoiIWctIkOGmptFqyuGFivJJM4vqCks2OZoamci4rU7Zj0Pr8z+
8DewqcAXFlYcBT86Ds/wSH0Bh05dUGsqU5StIA4RvNa13cPFu8qCTrZtc76DHFGR
tJ0Qk7ZAmLp3cEXEVT4K50EUOzYxaz97nwyYC3tJi4b34DVnih+0HASunUd2P/yT
slgDe3SPMAFf50XMY8SMl2Hox8S3uyz0SDC/lr2hTAKCRS6oaPFeREQuk9xRNrTQ
Jc6Kf8scJZvI0VpYVbodVq6H4xWKwBcLuwlpAO/rR6fkZFCIMAozDwPRS1yavgHI
EVv64jnCQ+ZuIgH+vy/HprfRbq29dNh0JyBGPNKeKl6ZW7stFg+TtTAnYpcZBizL
fqKKZUGhhTWpbC+MuV/3cDoSnyzReCv7S80K8YiO2QXgjDJa5kX/EyPxMeUwicld
+mvaJuD2qbGxcKnE4+Qa6ZRdIxPBheXwdsZ5FB+t6FKy7rCHCd6XA5uWlG+4LzwS
F44xtQ+SiBCMeujEePDUTCYUvI0Nki7aZw/QE02UC/rbhB46D7+xIQETX5f2ef37
/xWMKpouVhrSF7ncOl3b4bKJyz5tuHj9srtd9jV03z3PkFntX2Jrv1TcQZDYY3Tw
CKRS9CR86SO3GvFnc9VB
=0jJN
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list