Rob Roschewsk
2023-Apr-03 16:52 UTC
[syslinux] pxelinux takes too long trying all the config file options
Hi All, I have a situation where I want to netboot and ONLY use pxelinux.cfg/default. It seems to take FOREVER for pxelinux to try all of the config file file options before falling through to default .... trying each possible combination multiple times ... increasing the wait time everytime it doesn't get a response.>From my log:Apr 2 19:53:17 helium tftpd[3372124]: tftpd: trying to get file: /tftpboot/pxelinux.0 Apr 2 19:54:54 helium tftpd[3372133]: tftpd: trying to get file: /tftpboot/pxelinux.0 Apr 2 19:54:54 helium tftpd[3372135]: tftpd: trying to get file: /tftpboot/pxelinux.0 Apr 2 19:54:54 helium tftpd[3372137]: tftpd: trying to get file: /tftpboot/ldlinux.c32 Apr 2 19:54:54 helium tftpd[3372139]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/44454c4c-4700-104d-805a-cac04f5a4c32 Apr 2 19:54:54 helium tftpd[3372143]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/44454c4c-4700-104d-805a-cac04f5a4c32 ...... Apr 2 19:56:40 helium tftpd[3372491]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/44454c4c-4700-104d-805a-cac04f5a4c32 Apr 2 19:56:54 helium tftpd[3372496]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/44454c4c-4700-104d-805a-cac04f5a4c32 Apr 2 19:57:08 helium tftpd[3372505]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/01-d8-9e-f3-13-22-18 Apr 2 19:57:08 helium tftpd[3372508]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/01-d8-9e-f3-13-22-18 ..... Apr 2 19:58:54 helium tftpd[3372617]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/01-d8-9e-f3-13-22-18 Apr 2 19:59:08 helium tftpd[3372623]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/01-d8-9e-f3-13-22-18 Apr 2 19:59:22 helium tftpd[3372626]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81674 ..... Apr 2 20:01:08 helium tftpd[3372780]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81674 Apr 2 20:01:22 helium tftpd[3372784]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81674 Apr 2 20:01:36 helium tftpd[3372789]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8167 Apr 2 20:01:37 helium tftpd[3372792]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8167 ..... Apr 2 20:03:22 helium tftpd[3372885]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8167 Apr 2 20:03:36 helium tftpd[3372890]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8167 Apr 2 20:03:50 helium tftpd[3372895]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A816 Apr 2 20:03:51 helium tftpd[3372898]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A816 ..... Apr 2 20:05:36 helium tftpd[3373013]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A816 Apr 2 20:05:50 helium tftpd[3373024]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A816 Apr 2 20:06:04 helium tftpd[3373066]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81 .... Apr 2 20:07:50 helium tftpd[3373159]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81 Apr 2 20:08:04 helium tftpd[3373164]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81 Apr 2 20:08:18 helium tftpd[3373167]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8 Apr 2 20:08:19 helium tftpd[3373170]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8 Apr 2 20:08:19 helium tftpd[3373173]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8 ... Apr 2 20:09:24 helium tftpd[3373386]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A8 That's 16 minutes of waiting and it's still not finished! It's been a while since I played with this stuff but it never took that long to fall through to default before. How can I fix this?? Is there some option I can use to speed this up?? Thanks, --> Rob
Steve Rikli
2023-Apr-03 20:19 UTC
[syslinux] pxelinux takes too long trying all the config file options
On Mon, Apr 03, 2023 at 12:52:41PM -0400, Rob Roschewsk via Syslinux wrote:> Hi All, > > I have a situation where I want to netboot and ONLY use pxelinux.cfg/default. > > It seems to take FOREVER for pxelinux to try all of the config file > file options before falling through to default .... trying each > possible combination multiple times ... increasing the wait time > everytime it doesn't get a response. > > From my log: > Apr 2 19:53:17 helium tftpd[3372124]: tftpd: trying to get file: /tftpboot/pxelinux.0 > Apr 2 19:54:54 helium tftpd[3372133]: tftpd: trying to get file: /tftpboot/pxelinux.0 > Apr 2 19:54:54 helium tftpd[3372135]: tftpd: trying to get file: /tftpboot/pxelinux.0Agreed, this seems slow. I also wouldn't expect to see it try & re-try multiple times for /tftpboot/pxelinux.0 either.> Apr 2 19:54:54 helium tftpd[3372139]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/44454c4c-4700-104d-805a-cac04f5a4c32 > ...... > Apr 2 19:56:54 helium tftpd[3372496]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/44454c4c-4700-104d-805a-cac04f5a4c32 > Apr 2 19:57:08 helium tftpd[3372505]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/01-d8-9e-f3-13-22-18 > ..... > Apr 2 19:59:08 helium tftpd[3372623]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/01-d8-9e-f3-13-22-18 > Apr 2 19:59:22 helium tftpd[3372626]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81674 > ..... > Apr 2 20:01:22 helium tftpd[3372784]: tftpd: trying to get file: /tftpboot/pxelinux.cfg/C0A81674 > > That's 16 minutes of waiting and it's still not finished! > > It's been a while since I played with this stuff but it never took > that long to fall through to default before. > > How can I fix this?? Is there some option I can use to speed this up??The multiple retries as tftpd scans for ipv6(?), mac/ethernet address patterns and so on, makes me wonder if some or all of the tftpd directory or contents isn't readable to the service. Some things to check: - perms & owners on /tftpboot/ and subdirs, e.g. /tftpboot/pxelinux.cfg/ typically world-read, write isn't needed - perms & owners for the files and images you're trying to load; typically world-read, write shouldn't be needed for this - double-check your pxelinux.cfg/default file exists, readable, etc. - look for a "tftpboot -> ." symlink in your tftpboot root dir, e.g. $ ls -la /tftpboot/tftpboot lrwxrwxrwx 1 root root 1 Oct 27 2010 /tftpboot/tftpboot -> . - daemon/service args and directory paths for tftpd in your config - tftp daemon startup & config is different circa RHEL7 and prior with xinetd, vs. e.g. RHEL8 and newer, modern Debian et al with systemD For more troubleshooting, maybe add "-v" or "-vv" to your tftpd service, see if a little more syslog verbosity shows anything. I suspect a problem with tftpd (config?) rather than a PXELINUX issue; are you using tftpd from your bootserver's OS, or perhaps some other package or src? Cheers, sr.