[SOLVED] Boot TFTP WADS

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

April 7, 2023 - 4:00 PM

Hello, I'm having trouble with PXE booting for WADS
I successfully enabled WADS with the post-configuration file, and I enabled the TFTP service. I can connect to it and download a file (ipxe.efi).
When I boot my machine I can see the machine's IP address, but then it returns to the boot selection screen.
When I run a TCPDUMP on my WAPT server

Code: Select all

IP 172.31.XX.XXX.1924 > wapt2-standalone-l1.XXXXXXX.fr.tftp: TFTP, length 51, RRQ "ipxe.efi" octet tsize 0 blksize 1468 windowsize 4
At first glance, it would seem that the WAPT server is not sending a response?
Julian
Debian 11
WAPT Version: 2.4.0.14143
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 11, 2023 - 12:33

jdziadek wrote: Apr 7, 2023 - 4:00 PM I successfully enabled WADS with the post-configuration file, and I enabled the TFTP service. I can connect to it and download a file (ipxe.efi).
When I boot my machine I can see the machine's IP address, but then it returns to the boot selection screen.
When I run a TCPDUMP on my WAPT server

Code: Select all

IP 172.31.XX.XXX.1924 > wapt2-standalone-l1.XXXXXXX.fr.tftp: TFTP, length 51, RRQ "ipxe.efi" octet tsize 0 blksize 1468 windowsize 4
At first glance, it would seem that the WAPT server is not sending a response?
What is the tcpdump command line you used? Was the tftpclient launched on the same client network as the PXE client? Note that the TFTP protocol uses ephemeral ports. What machine are you using? Are you experiencing the same issue with a VirtualBox VM (in bridged mode)?

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

April 11, 2023 - 12:52

Hello, thank you for your reply:
I used this command:

Code: Select all

tcpdump port 67 or port 68 or port 69 or port 4011
(This is used to debug Fog's PXE)
The TFTP server is on the WAPT server, the machines to be deployed are on a computer VLAN which have access to all the ports of the WAPT server, we used to use a WDS for deployment, and it worked with the current conf, we just changed the destination in the DCHP.
I encountered this issue on an HP Elitedesk 650G9 (which I can successfully deploy from a USB drive) as well as from a Hyper-V VM.
Julian
Debian 11
WAPT Version: 2.4.0.14143
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 12, 2023 - 09:41

Hello Julien,
jdziadek wrote: Apr 11, 2023 - 12:52 I used this command:

Code: Select all

tcpdump port 67 or port 68 or port 69 or port 4011
(This is used to debug Fog's PXE)
Are you using wapttftpserver on your WAPT server? Ephemeral port ranges are quite broad. You should use the source IP address as a filter rather than ports.
The TFTP server is on the WAPT server, the machines to be deployed are on a computer VLAN which have access to all the ports of the WAPT server, we used to use a WDS for deployment, and it worked with the current conf, we just changed the destination in the DCHP.
Could you please display your DHCP configuration?
I encountered this issue on an HP Elitedesk 650G9 (which I can successfully deploy from a USB drive) as well as from a Hyper-V VM.
Was the USB key in question generated from the wapt console?

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

April 12, 2023 - 10:30

Thank you for the detailed response.
My USB drive was indeed created via the console and works perfectly.

The DHCP configuration is copied from the documentation.
On the machine side, when I boot on a physical machine, I am returned to the "boot manager" after a certain time.
With a VM on Hyper-V I get this message:
Picture

I ran a tcpdump on the IP address of the machine awaiting deployment.

Code: Select all

10:12:06.450483 IP 172.31.42.XXX.1191 > wapt2-standalone-l1.XXXXXX.fr.tftp: TFTP, length 51, RRQ "ipxe.efi" octet tsize 0 blksize 1482 windowsize 4
This somewhat confirms the lack of response from the WAPT server.
Debian 11
WAPT Version: 2.4.0.14143
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

April 12, 2023 - 2:21 PM

I came across this thread:
viewtopic.php?t=2977&start=10

The problem still persists even with tftpd-hpa
tftpd-hpa logs

Code: Select all

Apr 12 14:34:35 wapt2-standalone-l1 tftpd-hpa[3250832]: Starting HPA's tftpd: in.tftpd.
Apr 12 14:36:07 wapt2-standalone-l1 in.tftpd[3250898]: RRQ from 172.31.42.122 filename ipxe.efi
Apr 12 14:36:11 wapt2-standalone-l1 in.tftpd[3250899]: RRQ from 172.31.42.122 filename ipxe.efi
Apr 12 14:36:15 wapt2-standalone-l1 in.tftpd[3250901]: RRQ from 172.31.42.122 filename ipxe.efi
Apr 12 14:36:19 wapt2-standalone-l1 in.tftpd[3250903]: RRQ from 172.31.42.122 filename ipxe.efi
Apr 12 14:36:23 wapt2-standalone-l1 in.tftpd[3250914]: RRQ from 172.31.42.122 filename ipxe.efi
Apr 12 14:36:27 wapt2-standalone-l1 in.tftpd[3250915]: RRQ from 172.31.42.122 filename ipxe.efi
(I'm using a Hyper-V VM with Secure Boot disabled for my tests)

Code: Select all

drwxrwxrwx 6 root root        4096  4 avril 15:25 .
drwxr-xr-x 6 root root        4096  9 févr. 10:36 ..
drwxrwxrwx 4 wapt root        4096 23 janv. 11:45 drivers
-rw-r--r-- 1 wapt www-data    3577  4 avril 15:25 hash.json
drwxrwxrwx 2 wapt www-data    4096  6 avril 08:36 iso
drwxrwxrwx 2 wapt root        4096  7 avril 15:00 pxe
-rwxrwxrwx 1 wapt root     1728976  3 mars  15:47 wads32.exe
-rwxrwxrwx 1 wapt root     2203088  3 mars  15:47 wads64.exe
drwxrwxrwx 4 wapt root        4096 23 janv. 11:45 winpe
No copyright issues with the WADS file? You never know...

Edit of 13/04
I specified the size of the EFI file using the command:

Code: Select all

dhcp-option=option:boot-file-size,2002
Now the correct size appears, but I'm still getting my PXE-18 timeout error.
Debian 11
WAPT Version: 2.4.0.14143
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 25, 2023 - 12:18

Hi Julien,

did you manage to get your TFTP working? If not, we'll need to call the office so we can take a look at it via screen sharing, because I'm running out of ideas. If it doesn't work with tftpd-hpa either, Wapt is no longer really involved...

See you soon,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

April 25, 2023 - 3:45 PM

dcardon wrote: Apr 25, 2023 - 12:18 PM Hello Julien,

did you manage to get your TFTP working? If not, we'll have to call the office so we can take a look at it via screen sharing, because I'm running out of ideas. If it doesn't work with tftpd-hpa either, Wapt is no longer really involved...

See you soon,

Denis
Hello, thank you for checking in. :) I was on vacation last week, and the network manager is on vacation this week, but I do think the problem is on our end and not with WAPT.
We can close the subject; I'll make a phone call if we can't resolve this.
Debian 11
WAPT Version: 2.4.0.14143
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 25, 2023 - 3:49 PM

Thanks for the feedback. The TFTP protocol isn't the most intuitive with its ephemeral ports. But hey, it's what's implemented in the BIOS, so we don't really have a choice but to work with it... :-)

I'm marking the topic as resolved.

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked