Discussion:
[Dnsmasq-discuss] dnsmasq-tftp : failed sending file
Louis Garcia
2015-11-22 07:14:34 UTC
Permalink
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

sometimes this
Nov 22 01:58:38 tiger dnsmasq-tftp[2282]: error 8 User aborted the transfer
received from 192.168.0.26


# 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
Simon Kelley
2015-11-22 22:47:10 UTC
Permalink
Post by Louis Garcia
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.
Post by Louis Garcia
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.
Post by Louis Garcia
# 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.
Louis Garcia
2015-11-23 00:58:34 UTC
Permalink
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Post by Louis Garcia
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.
Post by Louis Garcia
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.
Post by Louis Garcia
# 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-----
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Simon Kelley
2015-11-23 09:17:06 UTC
Permalink
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.
Post by Louis Garcia
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
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
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
PXEClient:Arch:00007:UNDI:003016 Nov 22 19:52:13 tiger
2463408450 vendor class: PXEClient:Arch:00007:UNDI:003016 Nov 22
19:52:13 tiger dnsmasq-dhcp[3344]: 2463408450 PXE(enp0s25)
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
Post by Louis Garcia
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.
Post by Louis Garcia
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.
Post by Louis Garcia
# 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
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...