Skip to content
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

Reworked the OVA workflow,creation process and upgraded base OS #170

Conversation

CarlosALgit
Copy link
Member

@CarlosALgit CarlosALgit commented Jan 23, 2025

Related issue

Description

This PR aims to change the base OS for the Wazuh OVA from Amazon Linux 2 to Amazon Linux 2023.

This change required many other changes in the OVA creation process.

Previously, the OVA creation process consisted of creating an instance in AWS, installing Wazuh and making some configurations and using AWS EC2 to export that instance as an OVA. This meant that we could completely forget about this process since it was automated by AWS.

When changing the base operating system, AWS EC2 does not support the export of instances with Amazon Linux 2023 so we had to implement the process by hand.
In the OVA Spike issue this problem and possible solutions were fully developed and explained.

The solution we have chosen is to create an instance of type metal in AWS EC2 and within this create a VM in which Wazuh is installed and the relevant configurations are made. This VM is then exported with VirtualBox as OVA and uploaded to the S3 bucket from the Github Actions runner.

The step-by-step process of each day is described in the related issue.

Tests

Tests were made in these two workflow runs:

Resulting in the OVA successfully created and tested as can be seen in the following screenshots:

Tests in VirtualBox

imagen

imagen

imagen

Tests in vmWare

imagen

imagen

@CarlosALgit CarlosALgit requested a review from a team January 23, 2025 16:38
@CarlosALgit CarlosALgit self-assigned this Jan 23, 2025
@teddytpc1 teddytpc1 merged commit e554959 into 4.11.0 Jan 23, 2025
1 check passed
@teddytpc1 teddytpc1 deleted the bug/147-upgrade-the-ova-base-os-and-the-build-ova-workflow-to-use-al2023 branch January 23, 2025 19:19
@CarlosALgit CarlosALgit linked an issue Jan 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade the OVA base OS and the Build OVA workflow to use AL2023
3 participants