-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated the OVA construction files to the wazuh-virtual-machines repository #29
Merged
c-bordon
merged 6 commits into
4.10.0
from
change/19-migrate-the-ova-related-files-to-wazuh-virtual-machines
Aug 26, 2024
Merged
Migrated the OVA construction files to the wazuh-virtual-machines repository #29
c-bordon
merged 6 commits into
4.10.0
from
change/19-migrate-the-ova-related-files-to-wazuh-virtual-machines
Aug 26, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c-bordon
changed the base branch from
4.10.0
to
change/19-OVA-migration-without-adaptation
August 21, 2024 18:30
c-bordon
changed the base branch from
change/19-OVA-migration-without-adaptation
to
4.10.0
August 21, 2024 18:41
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... |
3 tasks
teddytpc1
approved these changes
Aug 26, 2024
Test after change in validation method for wazuh-installation-assistant repositoryWithout the same branch as wazuh-virtual-machinescbordon@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 branchcbordon@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 versioncbordon@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... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #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
Test using the same branch of wazuh-virtual-machines for wazuh-installation-assistant
Test using a specific branch of wazuh-installation-assistant