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

OVA generation fails for v4.7.2-rc1 #2724

Closed
jnasselle opened this issue Dec 26, 2023 · 0 comments · Fixed by #2727
Closed

OVA generation fails for v4.7.2-rc1 #2724

jnasselle opened this issue Dec 26, 2023 · 0 comments · Fixed by #2727
Assignees
Labels

Comments

@jnasselle
Copy link
Member

Wazuh version Install type Action performed Platform
v4.7.2-rc1 OVA Generation -

Description

During https://github.com/wazuh/wazuh-jenkins/issues/6107 root-cause analysis, it was found that OVA generation fails with the next error

root@wazuh-dev:~/repos/wazuh-packages/ova# ./generate_ova.sh -r dev
Version to build: 4.7.2 with development repository
==> default: VM not created. Moving on...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'amazonlinux-2' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'amazonlinux-2' (v0) for provider: virtualbox
    default: Downloading: https://packages-dev.wazuh.com/vms/ova/amazonlinux-2.box
==> default: Box download is resuming from prior download progress
==> default: Successfully added box 'amazonlinux-2' (v0) for 'virtualbox'!
==> default: Importing base box 'amazonlinux-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: Connection reset. Retrying...
    default: Warning: Connection reset. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Connection reset. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. 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: Setting hostname...
==> default: Rsyncing folder: /root/repos/wazuh-packages/ova/ => /tmp
==> default:   - Exclude: [".vagrant/", "output"]
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20231226-19413-h9u3v3.sh
    default: Using dev packages
    default: cat: /tmp/unattended_installer/../VERSION: No such file or directory

This was caused by #2676 and #2708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants