Wazuh 4.3.8 Offline installation script

948 views
Skip to first unread message

Rahul S

unread,
Oct 6, 2022, 12:55:08 PM10/6/22
to Wazuh mailing list
Hi Team,
Is there an offline installation script available? Please share if you have any

Thanks
Rahul

Ifeanyi Onyia Odike

unread,
Oct 6, 2022, 4:03:06 PM10/6/22
to Wazuh mailing list
Hi Raul,

Thank you for using Wazuh!

I will revert with the information you need for this shortly.

Regards

Ifeanyi Onyia Odike

unread,
Oct 6, 2022, 4:13:38 PM10/6/22
to Wazuh mailing list
Hi Raul,

To answer your question. Yes, there is an option for an offline installation of Wazuh.
The requirements for this are:
  • Downloading/Copying the Wazuh central components (Wazuh server, the Wazuh indexer, and the Wazuh dashboard) to your local repository.
  • curl, tar, and setcap need to be installed in the target system, GnuPG for some debian-based systems.
  • Root privileges.
Here is the documentation for Offline Installation to further guide you on this.

If this is too much, there is an option for a Virtual machine (OVA) installation. This installation comes prebuilt with all Wazuh components.

Let me know how it goes.

Regards,

Rahul S

unread,
Oct 7, 2022, 4:59:10 AM10/7/22
to Wazuh mailing list
Hi  Ifeanyi,
I have downloaded the packages and copied them to the wazuh-offline folder. Unfortunately, the script which is mentioned in the wazuh offline installer document is not working without the internet. 
Any hope to get the script without an internet option?
Complete offline script.

Thanks
Rahul

Ifeanyi Onyia Odike

unread,
Oct 7, 2022, 7:44:41 AM10/7/22
to Wazuh mailing list
Hi Rahul,

Apologies for that experience.
You can download the scripts and configuration to an endpoint with an internet connection and copy those files to your proposed Wazuh server.

# curl -sO https://packages.wazuh.com/4.3/wazuh-install.sh 
# curl -sO https://packages.wazuh.com/4.3/wazuh-certs-tool.sh
# curl -sO https://packages.wazuh.com/4.3/config.yml
So, at the endpoint, you must have copied the files: config.yml, wazuh-certs-tool.sh, and wazuh-install.sh to your proposed server.

Next, you will proceed from these steps, and follow the installation process accordingly.

# chmod 744 wazuh-install.sh
# ./wazuh-install.sh -dw <deb|rpm>


Regards,

Rahul S

unread,
Oct 7, 2022, 8:12:29 AM10/7/22
to Wazuh mailing list
Hi ifeany, 

I have already downloaded these packages and uploaded them to the proposed server. Unfortunately, I am not able to execute the wazuh-install.sh for installation in the proposed server. it's giving me the below error 

root@wazuh-test:/wazuh# ls
wazuh-certs-tool.sh  wazuh-install-files.tar  wazuh-install.sh  wazuh-offline.tar.gz
root@wazuh-test:/wazuh# ./wazuh-install.sh -a -o
07/10/2022 12:06:39 INFO: Starting Wazuh installation assistant. Wazuh version: 4.3.8
07/10/2022 12:06:39 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/10/2022 12:06:40 INFO: --- Removing existing Wazuh installation ---
07/10/2022 12:06:40 INFO: Removing Wazuh manager.
07/10/2022 12:06:41 INFO: Wazuh manager removed.
07/10/2022 12:06:41 INFO: Removing Wazuh indexer.
07/10/2022 12:06:41 INFO: Wazuh indexer removed.
07/10/2022 12:06:41 INFO: Wazuh GPG key not found in the system
07/10/2022 12:06:41 INFO: Installation cleaned.
07/10/2022 12:06:47 INFO: Wazuh repository added.
07/10/2022 12:06:47 INFO: --- Configuration files ---
07/10/2022 12:06:47 INFO: Generating configuration files.
07/10/2022 12:06:48 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
07/10/2022 12:06:48 INFO: --- Wazuh indexer ---
07/10/2022 12:06:48 INFO: Starting Wazuh indexer installation.
07/10/2022 12:06:49 ERROR: Wazuh indexer installation failed.
07/10/2022 12:06:49 INFO: --- Removing existing Wazuh installation ---
07/10/2022 12:06:49 INFO: Removing Wazuh manager.
07/10/2022 12:06:52 INFO: Wazuh manager removed.
07/10/2022 12:06:52 INFO: Removing Wazuh indexer.
07/10/2022 12:06:52 INFO: Wazuh indexer removed.
07/10/2022 12:06:52 INFO: Wazuh GPG key not found in the system
07/10/2022 12:06:52 INFO: Installation cleaned.
root@wazuh-test:/wazuh#

Do you have the Offline Complete Installation script? The given script only helps to download the package, not for the offline installation. The given script will work only with an internet connection.
 


Thanks
Rahul

Ifeanyi Onyia Odike

unread,
Oct 7, 2022, 9:28:57 AM10/7/22
to Wazuh mailing list
Hi Rahul,

I will perform a local deployment to find out what the issue is. Then I ill get back to you with the necessary steps.
Please hold for my response.

Regards,

Ifeanyi Onyia Odike

unread,
Oct 7, 2022, 11:17:36 AM10/7/22
to Wazuh mailing list
Hi Rahul,

Thank you for holding on.
Unfortunately, there is no script available to complete an Offline installation. You will have to manually install it using the guide as advised earlier.

Before you commence the offline installation, please note you need all files necessary to complete the process. These include:
  • config.yml  
  • /wazuh-certificates  
  • wazuh-certs-tool.sh  
  • wazuh-install.sh  
  • wazuh-offline.tar.gz
This is what the script in the Offline installation guide provides (It provides the files and packages needed for your installation based on your chosen distribution). The wazuh-certs-tool.sh script also provides the certificates needed for this.

Once you have the files locally copied, you can proceed step by step to Install Wazuh components from local files.

I hope this has been helpful to you.

Regards,

Rahul S

unread,
Oct 7, 2022, 11:23:03 AM10/7/22
to Wazuh mailing list

Hi Ifeany,
Thanks for your quick response.

Kindly consider the complete offline installer script in a future release.

Ifeanyi Onyia Odike

unread,
Oct 7, 2022, 11:38:34 AM10/7/22
to Wazuh mailing list
This is noted.

Have a great weekend, Rahul.
Reply all
Reply to author
Forward
0 new messages