[RESOLVED] Remote Site OS 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
Locked
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

April 25, 2022 - 5:15 PM

Hello,

I would like to configure OS deployment from a remote site
. I have therefore set up a secondary repository. Replication works fine (also for WADS).
I have uploaded the ISO image, drivers, etc., to the primary server.

PXE boot and TFTP boot work correctly,

however, I cannot load scripts and files onto the secondary server.


This works fine on the primary server.

Question: Has anyone already tested and successfully implemented this architecture?

WAPT Server version: 2.2
WAPT Agent version: 2.2.0.11720

Thank you in advance

.
Attachments
boot image copy
boot image copy
61t19k40m2.jpg (52.65 KB) Viewed 6209 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 26, 2022 - 09:46

Hello

, the baseipxe link must point directly to the WAPT server and not to the secondary repository.

The WAPT server will then read the secondary repository rules and redirect directly to the correct repository.

Therefore, in your DHCP server, the "baseipxe" link must continue to point to the WAPT server and not to the secondary repository.
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

April 26, 2022 - 10:25

Hello,

thank you for your reply.

I just tested it, the machine successfully contacts the WAPT server, the ipxe.efi file loads correctly, then contacts the secondary repository and nothing happens. Yet the server is indeed waiting for deployment for this machine with its MAC address.
I've attached all the screenshots.

If I delete the secondary server, it starts downloading boot.wim then the ISO, etc... but it takes too long, hence the secondary repository. But it seems the Nginx server part isn't configured correctly on the secondary server.

Thanks in advance.


Best regards
Attachments
WDIzqaoxhe.jpg
WDIzqaoxhe.jpg (49.77 KB) Viewed 6196 times
XlgeOSYYaH.jpg
XlgeOSYYaH.jpg (19.38 KB) Viewed 6196 times
nAmqRVaGA8.jpg
nAmqRVaGA8.jpg (53.23 KB) Viewed 6196 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 26, 2022 - 11:34

The nginx installation in your secondary repository seems to be working fine since wads is present.

However, what does your wapt-get.ini file in your secondary repository contain?

Does it have the remote_repo_dirs key in the repo-sync section?

Also, does the folder C:\Program Files (x86)\wapt\repository\wads exist?

Have the secondary repository rules been configured for wads? Is the repository using HTTP or HTTPS? Does your repository support HTTP? (IPXE works with HTTPS but only with public certificate bundles; in that case, HTTP is better.)

Simon
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

April 26, 2022 - 1:42 PM

Thank you for your reply.

I've attached screenshots; they explain things better:

-wapt-get.ini (remote_repo_dirs is indeed present with wads)
-Program Files folder (the wads directory is indeed inside)
-Secondary repository which is properly synchronized

. Yes, it works with HTTPS (see screenshot). To switch to HTTP, I commented out:

listen 443 ssl;

Thank you in advance

. Best regards.
Attachments
kw4oeolaxO.jpg
kw4oeolaxO.jpg (27.07 KB) Viewed 6180 times
FNH8vEvmEE.jpg
FNH8vEvmEE.jpg (20.04 KB) Viewed 6180 times
upN7eyTaY6.jpg
upN7eyTaY6.jpg (46.44 KB) Viewed 6180 times
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

April 26, 2022 - 2:01 PM

Hello again,

thank you for your help.

It's OK, indeed via HTTP

. Regards.
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

April 26, 2022 - 2:09 PM

It's much better now,

thank you again.
Attachments
sjRRZLRHQK.jpg
sjRRZLRHQK.jpg (32.33 KB) Viewed 6177 times
zZW62bMygM.jpg
zZW62bMygM.jpg (32.24 KB) Viewed 6177 times
Locked