[SOLVED] DHCP configuration for ISO deployment

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
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

September 6, 2022 - 10:37

Hello,

I would like some clarification on the DHCP server configuration required to deploy an ISO via WAPT.

I have configured my TFTP server as described in your documentation.

Regarding the DHCP settings, is it simply a matter of executing the indicated PowerShell commands? (Replacing the variables `$waptserver_ipaddress_tftp = "192.168.154.13"` and `$url_waptserver = "http://srvwapt.mydomain.lan"`, of course?

When I enter the following URL, nothing is displayed:
`$url_waptserver/api/v3/baseipxe`.

Is this normal? Will the baseipxe be created after the script is executed?

Thank you in advance for your further information.
Attachments
WAPT Conf DHCP.png
WAPT Conf DHCP.png (12.84 KB) Viewed 5868 times
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

September 8, 2022 - 4:27 PM

Hello admgautier,

in your screenshot, the string returned by the WAPT server is correct. The variable will be replaced by the iPXE bootloader.

Is the client machine able to retrieve the iPXE bootloader? The most common problem is the secureboot configuration on the UEFI BIOS, which requires a signed bootloader.

Regards,

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
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

September 9, 2022 - 9:02 AM

Hello everyone,

thank you for your feedback.

I did disable secure boot on the client machine, however I used the powershell commands to configure the DHCP server:
$waptserver_ipaddress_tftp = "192.168.154.13"
$url_waptserver = "http://srvwapt.mydomain.lan"

Add-DhcpServerv4Class -Name "legacy_bios" -Type Vendor -Data "PXEClient:Arch:00000"
Add-DhcpServerv4Class -Name "iPXE" -Type User -Data "iPXE"

Set-DhcpServerv4OptionValue -OptionId 66 -Value "$waptserver_ipaddress_tftp"

Add-DhcpServerv4Policy -Name "wapt-ipxe-url-legacy" -AND Condition -UserClass EQ,iPXE -VendorClass EQ,legacy_bios*
Set-DhcpServerv4OptionValue -PolicyName "wapt-ipxe-url-legacy" -OptionID 67 -Value "$url_waptserver/api/v3/baseipxe?uefi=false"

Add-DhcpServerv4Policy -Name "wapt-ipxe-url-uefi" -Condition AND -UserClass EQ,iPXE -VendorClass NE,legacy_bios*
Set-DhcpServerv4OptionValue -PolicyName "wapt-ipxe-url-uefi" -OptionID 67 -Value "$url_waptserver/api/v3/baseipxe"

Add-DhcpServerv4Policy -Name "ipxe.efi" -Condition AND -UserClass NE,iPXE -VendorClass NE,legacy_bios*
Set-DhcpServerv4OptionValue"undionly.kpxe"

Add-DhcpServerv4Policy -Name
Set-DhcpServerv4OptionValue -PolicyName "undionly.kpxe" -OptionID 67 -Value "undionly.kpxe"

I'm careful to modify the $waptserver_ipaddress_tftp and $url_waptserver variables.

However, nothing is being reported on the client machine.

I don't really understand where the problem is coming from.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 9, 2022 - 9:54 AM

Can you describe the machine's behavior in more detail? Could you provide

a photo of the machine booting up so we can see where it's failing?
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

September 9, 2022 - 10:17

Hello,

First, here is my DHCP configuration.

Then, when I start my machine, here is the result.

TFTP has been correctly configured on the WAPT server and has started correctly.
Attachments
WAPT TFTP.png
WAPT TFTP.png (10.91 KB) Viewed 5800 times
boot pxe.png
boot pxe.png (55.2 KiB) Viewed 5800 times
WAPT conf DHCP server.png
WAPT conf DHCP server.png (21.36 KB) Viewed 5800 times
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

September 9, 2022 - 10:24

If needed, here is the version of my WAPT server:
Attachments
WAPT version.png
WAPT version.png (5.21 KB) Viewed 5800 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 9, 2022 - 11:32

It seems there's a double slash in the policies "wapt-ipxe-url-legacy" and "wapt-ipxe-url-legacy" "//api".

Then you have a policy "iPXE" (the first line in the screenshot). You should delete it; it's a history entry that I think could cause a conflict.

You also have a wdsnbp.com entry that could conflict with the other rules. Is it still in use?
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

September 9, 2022 - 2:21 PM

Indeed, there was an unnecessary double slash. My apologies.

Regarding the other options, they were already present on the server, and removing them improves my machine's performance.

I tried configuring the iPXE strategy following this thread: viewtopic.php?p=9879#p9879.

The machine is searching for the configuration via PXE. I'll continue your webinar to complete the configuration with a generalized image: https://www.youtube.com/watch?v=zREmQ_0sM88.

I then tried to reinstall via iPXE but got the same result. Before deleting /boot wdsnbp.com, the machine would load a page and try to load that Boot\x86\wdsnbp.com... without success, of course.

I've attached my new DHCP configuration. Do you see any errors?

Thanks again for your support.
Attachments
DHCP configuration option.png
DHCP configuration option.png (16.3 KB) Viewed 5768 times
admgautier
Messages: 45
Registration: Sep 24, 2018 - 4:48 p.m.

September 9, 2022 - 3:45 PM

I also noticed that the first two lines of PowerShell failed to execute correctly.

Could that be the source of the problem?
Attachments
Error powershell.png
Error powershell.png (33.88 KB) Viewed 5757 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 9, 2022 - 6:36 PM

admgautier wrote: 09 Sep 2022 - 14:21 Regarding the other options, this was already present on the server, and by removing them my machine is already responding better.
That's to say ?

That's better, so we have a different error? I didn't quite understand

For PowerShell errors, it indicates "ResourceExists", so we'll assume that's okay
Locked