wazuh / wazuh-virtual-machines

Wazuh - Virtual Machines (OVA and AMI)
https://wazuh.com/
GNU General Public License v2.0
0 stars 0 forks source link

Migrated the OVA construction files to the wazuh-virtual-machines repository #29

Closed c-bordon closed 1 month ago

c-bordon commented 2 months ago

close https://github.com/wazuh/wazuh-virtual-machines/issues/19

Migration of OVA files for local build is done, some changes required by migration are made.

Tests

Test OVA build with v4.8.2 tag of wazuh-packages ```console cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh -a v4.8.2 Cloning Wazuh installation assistant repository Building Wazuh installation assistant from v4.8.2 branch Version to build: 4.10.0 with production repository ==> default: VM not created. Moving on... Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'amznlinux-2'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: vm_wazuh ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: wazuh-user default: SSH auth method: password default: Warning: Remote connection disconnect. Retrying... default: Warning: Connection reset. Retrying... default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not match the installed version of default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 6.1.42 default: VirtualBox Version: 7.0 ==> default: Setting hostname... ==> default: Rsyncing folder: /home/cbordon/Documents/wazuh/repositorios/wazuh-virtual-machines/ova/ => /tmp ==> default: - Exclude: [".vagrant/", "output"] ==> default: Running provisioner: shell... default: Running: /tmp/vagrant-shell20240821-32030-q58gjk.sh default: Using prod packages default: Upgrading the system. This may take a while ... default: Loaded plugins: langpacks, priorities, update-motd default: No packages marked for update default: Loaded plugins: langpacks, priorities, update-motd default: Resolving Dependencies default: --> Running transaction check default: ---> Package dracut-fips.x86_64 0:033-535.amzn2.1.6 will be installed default: --> Processing Dependency: hmaccalc for package: dracut-fips-033-535.amzn2.1.6.x86_64 default: --> Running transaction check default: ---> Package hmaccalc.x86_64 0:0.9.13-4.amzn2.0.1 will be installed default: --> Finished Dependency Resolution default: default: Dependencies Resolved default: default: ================================================================================ default: Package Arch Version Repository Size default: ================================================================================ default: Installing: default: dracut-fips x86_64 033-535.amzn2.1.6 amzn2-core 60 k default: Installing for dependencies: default: hmaccalc x86_64 0.9.13-4.amzn2.0.1 amzn2-core 26 k default: default: Transaction Summary default: ================================================================================ default: Install 1 Package (+1 Dependent package) default: default: Total download size: 87 k default: Installed size: 107 k default: Downloading packages: default: -------------------------------------------------------------------------------- default: Total 47 kB/s | 87 kB 00:01 default: Running transaction check default: Running transaction test default: Transaction test succeeded default: Running transaction default: Installing : hmaccalc-0.9.13-4.amzn2.0.1.x86_64 1/2 default: Installing : dracut-fips-033-535.amzn2.1.6.x86_64 2/2 default: Verifying : dracut-fips-033-535.amzn2.1.6.x86_64 1/2 default: Verifying : hmaccalc-0.9.13-4.amzn2.0.1.x86_64 2/2 default: default: Installed: default: dracut-fips.x86_64 0:033-535.amzn2.1.6 default: default: Dependency Installed: default: hmaccalc.x86_64 0:0.9.13-4.amzn2.0.1 default: default: Complete! default: Created symlink from /etc/systemd/system/multi-user.target.wants/updateIndexerHeap.service to /etc/systemd/system/updateIndexerHeap.service. default: 21/08/2024 13:53:47 INFO: Starting Wazuh installation assistant. Wazuh version: 4.8.2 default: 21/08/2024 13:53:47 INFO: Verbose logging redirected to /var/log/wazuh-install.log default: 21/08/2024 13:53:48 INFO: Verifying that your system meets the recommended minimum hardware requirements. default: 21/08/2024 13:53:49 INFO: Wazuh web interface port will be 443. default: 21/08/2024 13:53:50 INFO: Wazuh repository added. default: 21/08/2024 13:53:50 INFO: --- Configuration files --- default: 21/08/2024 13:53:50 INFO: Generating configuration files. default: 21/08/2024 13:53:51 INFO: Generating the root certificate. default: 21/08/2024 13:53:51 INFO: Generating Admin certificates. default: 21/08/2024 13:53:51 INFO: Generating Wazuh indexer certificates. default: 21/08/2024 13:53:51 INFO: Generating Filebeat certificates. default: 21/08/2024 13:53:51 INFO: Generating Wazuh dashboard certificates. default: 21/08/2024 13:53:51 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation. default: 21/08/2024 13:53:51 INFO: --- Wazuh indexer --- default: 21/08/2024 13:53:51 INFO: Starting Wazuh indexer installation. default: 21/08/2024 13:55:54 INFO: Wazuh indexer installation finished. default: 21/08/2024 13:55:55 INFO: Wazuh indexer post-install configuration finished. default: 21/08/2024 13:55:55 INFO: Starting service wazuh-indexer. default: 21/08/2024 13:56:05 INFO: wazuh-indexer service started. default: 21/08/2024 13:56:05 INFO: Initializing Wazuh indexer cluster security settings. default: 21/08/2024 13:56:15 INFO: Wazuh indexer cluster security configuration initialized. default: 21/08/2024 13:56:15 INFO: Wazuh indexer cluster initialized. default: 21/08/2024 13:56:15 INFO: --- Wazuh server --- default: 21/08/2024 13:56:15 INFO: Starting the Wazuh manager installation. default: 21/08/2024 13:57:13 INFO: Wazuh manager installation finished. default: 21/08/2024 13:57:13 INFO: Wazuh manager vulnerability detection configuration finished. default: 21/08/2024 13:57:13 INFO: Starting service wazuh-manager. default: 21/08/2024 13:57:25 INFO: wazuh-manager service started. default: 21/08/2024 13:57:25 INFO: Starting Filebeat installation. default: 21/08/2024 13:57:33 INFO: Filebeat installation finished. default: 21/08/2024 13:57:34 INFO: Filebeat post-install configuration finished. default: 21/08/2024 13:57:34 INFO: Starting service filebeat. default: 21/08/2024 13:57:34 INFO: filebeat service started. default: 21/08/2024 13:57:34 INFO: --- Wazuh dashboard --- default: 21/08/2024 13:57:34 INFO: Starting Wazuh dashboard installation. default: 21/08/2024 13:58:47 INFO: Wazuh dashboard installation finished. default: 21/08/2024 13:58:47 INFO: Wazuh dashboard post-install configuration finished. default: 21/08/2024 13:58:47 INFO: Starting service wazuh-dashboard. default: 21/08/2024 13:58:47 INFO: wazuh-dashboard service started. default: 21/08/2024 13:58:48 INFO: Updating the internal users. default: 21/08/2024 13:58:50 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. default: 21/08/2024 13:59:14 INFO: Initializing Wazuh dashboard web application. default: 21/08/2024 13:59:14 INFO: Wazuh dashboard web application not yet initialized. Waiting... default: 21/08/2024 13:59:31 INFO: Wazuh dashboard web application not yet initialized. Waiting... default: 21/08/2024 13:59:46 INFO: Wazuh dashboard web application initialized. default: 21/08/2024 13:59:46 INFO: --- Summary --- default: 21/08/2024 13:59:46 INFO: You can access the web interface https://:443 default: User: admin default: Password: admin default: 21/08/2024 13:59:46 INFO: Installation finished. default: % Total % Received % Xferd Average Speed Time Time Time Current default: Dload Upload Total Spent Left Speed 100 21 100 21 0 0 446 0 --:--:-- --:--:-- --:--:-- 446 default: % Total % Received % Xferd Average Speed Time Time Time Current default: Dload Upload Total Spent Left Speed 100 21 100 21 0 0 2167 0 --:--:-- --:--:-- --:--:-- 2333 default: % Total % Received % Xferd Average Speed Time Time Time Current default: Dload Upload Total Spent Left Speed 100 21 100 21 0 0 788 0 --:--:-- --:--:-- --:--:-- 807 default: % Total % Received % Xferd Average Speed Time Time Time Current default: Dload Upload Total Spent Left Speed 100 21 100 21 0 0 2295 0 --:--:-- --:--:-- --:--:-- 2333 default: % Total % Received % Xferd Average Speed Time Time Time Current default: Dload Upload Total Spent Left Speed 100 21 100 21 0 0 894 0 --:--:-- --:--:-- --:--:-- 913 default: {"acknowledged":true}{"acknowledged":true}{"acknowledged":true}{"acknowledged":true}{"acknowledged":true}************************************************************************** default: ** This tool will be deprecated in the next major release of OpenSearch ** default: ** https://github.com/opensearch-project/security/issues/1755 ** default: ************************************************************************** default: Security Admin v7 default: Will connect to 127.0.0.1:9200 ... done default: Connected as "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US" default: OpenSearch Version: 2.10.0 default: Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ... default: Clustername: wazuh-cluster default: Clusterstate: GREEN default: Number of nodes: 1 default: Number of data nodes: 1 default: .opendistro_security index already exists, so we do not need to create one. default: Populate config from /etc/wazuh-indexer/opensearch-security/ default: Will update '/config' with /etc/wazuh-indexer/opensearch-security/config.yml default: SUCC: Configuration for 'config' created or updated default: Will update '/roles' with /etc/wazuh-indexer/opensearch-security/roles.yml default: SUCC: Configuration for 'roles' created or updated default: Will update '/rolesmapping' with /etc/wazuh-indexer/opensearch-security/roles_mapping.yml default: SUCC: Configuration for 'rolesmapping' created or updated default: Will update '/internalusers' with /etc/wazuh-indexer/opensearch-security/internal_users.yml default: SUCC: Configuration for 'internalusers' created or updated default: Will update '/actiongroups' with /etc/wazuh-indexer/opensearch-security/action_groups.yml default: SUCC: Configuration for 'actiongroups' created or updated default: Will update '/tenants' with /etc/wazuh-indexer/opensearch-security/tenants.yml default: SUCC: Configuration for 'tenants' created or updated default: Will update '/nodesdn' with /etc/wazuh-indexer/opensearch-security/nodes_dn.yml default: SUCC: Configuration for 'nodesdn' created or updated default: Will update '/whitelist' with /etc/wazuh-indexer/opensearch-security/whitelist.yml default: SUCC: Configuration for 'whitelist' created or updated default: Will update '/audit' with /etc/wazuh-indexer/opensearch-security/audit.yml default: SUCC: Configuration for 'audit' created or updated default: Will update '/allowlist' with /etc/wazuh-indexer/opensearch-security/allowlist.yml default: SUCC: Configuration for 'allowlist' created or updated default: SUCC: Expected 10 config types for node {"updated_config_types":["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"],"updated_config_size":10,"message":null} is 10 (["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"]) due to: null default: Done with success default: Loaded plugins: langpacks, priorities, update-motd default: Cleaning repos: amzn2-core amzn2extra-docker wazuh default: Cleaning up everything default: Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos ==> default: Running provisioner: shell... default: Running: /tmp/vagrant-shell20240821-32030-1tqd9gp.sh ==> default: Saving VM state and suspending execution... Exporting ova 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully exported 1 machine(s). ==> default: Discarding saved state of VM... ==> default: Destroying VM and associated drives... wazuh-4.10.0.ovf wazuh-4.10.0-disk001.vmdk Setting up ova for VMware ESXi Standarizing OVA Setting OVA to default wazuh-4.10.0.ovf wazuh-4.10.0-disk001.vmdk OVF extracted mv: '/home/cbordon/Documents/wazuh/repositorios/wazuh-virtual-machines/ova/new-ova/wazuh-4.10.0.ovf' and '/home/cbordon/Documents/wazuh/repositorios/wazuh-virtual-machines/ova/new-ova/wazuh-4.10.0.ovf' are the same file Files renamed OVF Version changed OVF Size changed Manifest changed wazuh-4.10.0.ovf wazuh-4.10.0-disk-1.vmdk wazuh-4.10.0.mf New OVA created Cleaned temporary directory Process finished ==> default: VM not created. Moving on... ```
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines$ ls -la ova/output/
total 3385124
drwxrwxr-x 2 cbordon cbordon       4096 ago 21 11:04 .
drwxrwxr-x 5 cbordon cbordon       4096 ago 21 11:05 ..
-rw-rw-r-- 1 cbordon cbordon 3466352640 ago 21 11:04 wazuh-4.10.0.ova

Screenshot_20240821_120020

Screenshot_20240821_120001

Note: For this test, I had to force the use of the v4.8.2 installation wizard since there are no 4.10.0 packages

Test using the same branch of wazuh-virtual-machines for wazuh-installation-assistant

```console cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh Building Wazuh OVA version 4.10.0 Cloning Wazuh installation assistant repository Branch change/19-migrate-the-ova-related-files-to-wazuh-virtual-machines not found in wazuh-installation-assistant repository ==> default: VM not created. Moving on... ```

Test using a specific branch of wazuh-installation-assistant

```console cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh -a 4.10.0 Building Wazuh OVA version 4.10.0 Cloning Wazuh installation assistant repository Using 4.10.0 branch of wazuh-installation-assistant repository cat: VERSION: No such file or directory ```
c-bordon commented 1 month ago

New test with Wazuh installation assistant repository after code migration:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh -a 4.10.0
Building Wazuh OVA version 4.10.0
Cloning Wazuh installation assistant repository
Using 4.10.0 branch of wazuh-installation-assistant repository
Building Wazuh installation assistant from 4.10.0 branch
Version to build: 4.10.0 with production repository
==> vagrant: A new version of Vagrant is available: 2.4.1 (installed version: 2.3.4)!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html

==> default: VM not created. Moving on...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'amznlinux-2'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vm_wazuh
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: wazuh-user
    default: SSH auth method: password
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 6.1.42
    default: VirtualBox Version: 7.0
==> default: Setting hostname...
==> default: Rsyncing folder: /home/cbordon/Documents/wazuh/repositorios/wazuh-virtual-machines/ova/ => /tmp
==> default:   - Exclude: [".vagrant/", "output"]
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20240826-159821-nsawwz.sh
    default: Using prod packages
    default: Upgrading the system. This may take a while ...
    default: Loaded plugins: langpacks, priorities, update-motd
    default: No packages marked for update
    default: Loaded plugins: langpacks, priorities, update-motd
    default: Resolving Dependencies
    default: --> Running transaction check
    default: ---> Package dracut-fips.x86_64 0:033-535.amzn2.1.6 will be installed
    default: --> Processing Dependency: hmaccalc for package: dracut-fips-033-535.amzn2.1.6.x86_64
    default: --> Running transaction check
    default: ---> Package hmaccalc.x86_64 0:0.9.13-4.amzn2.0.1 will be installed
    default: --> Finished Dependency Resolution
    default: 
    default: Dependencies Resolved
    default: 
    default: ================================================================================
    default:  Package           Arch         Version                  Repository        Size
    default: ================================================================================
    default: Installing:
    default:  dracut-fips       x86_64       033-535.amzn2.1.6        amzn2-core        60 k
    default: Installing for dependencies:
    default:  hmaccalc          x86_64       0.9.13-4.amzn2.0.1       amzn2-core        26 k
    default: 
    default: Transaction Summary
    default: ================================================================================
    default: Install  1 Package (+1 Dependent package)
    default: 
    default: Total download size: 87 k
    default: Installed size: 107 k
    default: Downloading packages:
    default: --------------------------------------------------------------------------------
    default: Total                                               47 kB/s |  87 kB  00:01
    default: Running transaction check
    default: Running transaction test
    default: Transaction test succeeded
    default: Running transaction
    default:   Installing : hmaccalc-0.9.13-4.amzn2.0.1.x86_64                           1/2
    default:   Installing : dracut-fips-033-535.amzn2.1.6.x86_64                         2/2
    default:   Verifying  : dracut-fips-033-535.amzn2.1.6.x86_64                         1/2
    default:   Verifying  : hmaccalc-0.9.13-4.amzn2.0.1.x86_64                           2/2
    default: 
    default: Installed:
    default:   dracut-fips.x86_64 0:033-535.amzn2.1.6
    default: 
    default: Dependency Installed:
    default:   hmaccalc.x86_64 0:0.9.13-4.amzn2.0.1
    default: 
    default: Complete!
    default: Created symlink from /etc/systemd/system/multi-user.target.wants/updateIndexerHeap.service to /etc/systemd/system/updateIndexerHeap.service.
    default: 26/08/2024 12:52:37 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
    default: 26/08/2024 12:52:37 INFO: Verbose logging redirected to /var/log/wazuh-install.log
    default: 26/08/2024 12:52:37 INFO: Verifying that your system meets the recommended minimum hardware requirements.
    default: 26/08/2024 12:52:37 INFO: Wazuh web interface port will be 443.
    default: 26/08/2024 12:52:37 INFO: Wazuh repository added.
    default: 26/08/2024 12:52:37 INFO: --- Configuration files ---
    default: 26/08/2024 12:52:37 INFO: Generating configuration files.
    default: 26/08/2024 12:52:38 INFO: Generating the root certificate.
    default: 26/08/2024 12:52:38 INFO: Generating Admin certificates.
    default: 26/08/2024 12:52:38 INFO: Generating Wazuh indexer certificates.
    default: 26/08/2024 12:52:38 INFO: Generating Filebeat certificates.
    default: 26/08/2024 12:52:38 INFO: Generating Wazuh dashboard certificates.
    default: 26/08/2024 12:52:38 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
    default: 26/08/2024 12:52:38 INFO: --- Wazuh indexer ---
    default: 26/08/2024 12:52:38 INFO: Starting Wazuh indexer installation.
    default: 26/08/2024 12:52:41 ERROR: Wazuh indexer installation failed.
    default: 26/08/2024 12:52:41 INFO: --- Removing existing Wazuh installation ---
    default: 26/08/2024 12:52:41 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
c-bordon commented 1 month ago

Test after change in validation method for wazuh-installation-assistant repository

Without the same branch as wazuh-virtual-machines

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh
Building Wazuh OVA version 4.10.0
Branch change/19-migrate-the-ova-related-files-to-wazuh-virtual-machines not found in wazuh-installation-assistant repository
==> default: VM not created. Moving on...

With specific branch

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh -a 4.10.0
Building Wazuh OVA version 4.10.0
Cloning Wazuh installation assistant repository
Using 4.10.0 branch of wazuh-installation-assistant repository
Building Wazuh installation assistant from 4.10.0 branch
Version to build: 4.10.0 with production repository
==> default: VM not created. Moving on...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'amznlinux-2'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vm_wazuh
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: wazuh-user
    default: SSH auth method: password
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 6.1.42
    default: VirtualBox Version: 7.0
==> default: Setting hostname...
==> default: Rsyncing folder: /home/cbordon/Documents/wazuh/repositorios/wazuh-virtual-machines/ova/ => /tmp
==> default:   - Exclude: [".vagrant/", "output"]
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20240826-283508-nezqxj.sh
    default: Using prod packages
    default: Upgrading the system. This may take a while ...
    default: Loaded plugins: langpacks, priorities, update-motd
    default: No packages marked for update
    default: Loaded plugins: langpacks, priorities, update-motd
    default: Resolving Dependencies
    default: --> Running transaction check
    default: ---> Package dracut-fips.x86_64 0:033-535.amzn2.1.6 will be installed
    default: --> Processing Dependency: hmaccalc for package: dracut-fips-033-535.amzn2.1.6.x86_64
    default: --> Running transaction check
    default: ---> Package hmaccalc.x86_64 0:0.9.13-4.amzn2.0.1 will be installed
    default: --> Finished Dependency Resolution
    default: 
    default: Dependencies Resolved
    default: 
    default: ================================================================================
    default:  Package           Arch         Version                  Repository        Size
    default: ================================================================================
    default: Installing:
    default:  dracut-fips       x86_64       033-535.amzn2.1.6        amzn2-core        60 k
    default: Installing for dependencies:
    default:  hmaccalc          x86_64       0.9.13-4.amzn2.0.1       amzn2-core        26 k
    default: 
    default: Transaction Summary
    default: ================================================================================
    default: Install  1 Package (+1 Dependent package)
    default: 
    default: Total download size: 87 k
    default: Installed size: 107 k
    default: Downloading packages:
    default: --------------------------------------------------------------------------------
    default: Total                                              106 kB/s |  87 kB  00:00
    default: Running transaction check
    default: Running transaction test
    default: Transaction test succeeded
    default: Running transaction
    default:   Installing : hmaccalc-0.9.13-4.amzn2.0.1.x86_64                           1/2
    default:   Installing : dracut-fips-033-535.amzn2.1.6.x86_64                         2/2
    default:   Verifying  : dracut-fips-033-535.amzn2.1.6.x86_64                         1/2
    default:   Verifying  : hmaccalc-0.9.13-4.amzn2.0.1.x86_64                           2/2
    default: 
    default: Installed:
    default:   dracut-fips.x86_64 0:033-535.amzn2.1.6
    default: 
    default: Dependency Installed:
    default:   hmaccalc.x86_64 0:0.9.13-4.amzn2.0.1
    default: 
    default: Complete!
    default: Created symlink from /etc/systemd/system/multi-user.target.wants/updateIndexerHeap.service to /etc/systemd/system/updateIndexerHeap.service.
    default: 26/08/2024 13:54:25 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
    default: 26/08/2024 13:54:25 INFO: Verbose logging redirected to /var/log/wazuh-install.log
    default: 26/08/2024 13:54:25 INFO: Verifying that your system meets the recommended minimum hardware requirements.
    default: 26/08/2024 13:54:25 INFO: Wazuh web interface port will be 443.
    default: 26/08/2024 13:54:26 INFO: Wazuh repository added.
    default: 26/08/2024 13:54:26 INFO: --- Configuration files ---
    default: 26/08/2024 13:54:26 INFO: Generating configuration files.
    default: 26/08/2024 13:54:26 INFO: Generating the root certificate.
    default: 26/08/2024 13:54:26 INFO: Generating Admin certificates.
    default: 26/08/2024 13:54:26 INFO: Generating Wazuh indexer certificates.
    default: 26/08/2024 13:54:26 INFO: Generating Filebeat certificates.
    default: 26/08/2024 13:54:26 INFO: Generating Wazuh dashboard certificates.
    default: 26/08/2024 13:54:26 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
    default: 26/08/2024 13:54:27 INFO: --- Wazuh indexer ---
    default: 26/08/2024 13:54:27 INFO: Starting Wazuh indexer installation.
    default: 26/08/2024 13:54:30 ERROR: Wazuh indexer installation failed.
    default: 26/08/2024 13:54:30 INFO: --- Removing existing Wazuh installation ---
    default: 26/08/2024 13:54:30 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...

With branch with another version

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-virtual-machines/ova$ bash generate_ova.sh -a main
Building Wazuh OVA version 4.10.0
Cloning Wazuh installation assistant repository
Using main branch of wazuh-installation-assistant repository
Wazuh installation assistant version 5.0.0 does not match with OVA version 4.10.0
==> default: VM not created. Moving on...