Virtual machine (VM)
Wazuh provides a pre-built virtual machine image in Open Virtual Appliance (OVA) format. It includes the Amazon Linux 2023 operating system and the Wazuh central components.
- Wazuh manager 4.14.1
- Filebeat-OSS 7.10.2
- Wazuh indexer 4.14.1
- Wazuh dashboard 4.14.1
You can import the Wazuh virtual machine image to VirtualBox or other OVA-compatible virtualization systems. This VM runs only on 64-bit systems with x86_64/AMD64 architecture. It does not provide high availability or scalability out of the box.
| OS | Architecture | VM Format | Version | Package |
|---|---|---|---|---|
| Amazon Linux 2023 | 64-bit x86_64/AMD64 architecture | OVA | 4.14.1 | wazuh-4.14.1.ova (sha512) |
Hardware requirements¶
The following requirements have to be in place before the Wazuh VM can be imported into a host operating system:
- The host operating system must be 64-bit with x86_64/AMD64 architecture.
- Enable hardware virtualization in the host firmware.
- Install a virtualization platform, such as VirtualBox, on the host system.
The Wazuh VM is configured with these specifications by default:
| Component | CPU (cores) | RAM (GB) | Storage (GB) |
|---|---|---|---|
| Wazuh v4.14.1 OVA | 4 | 8 | 50 |
Import and access the virtual machine¶
-
Import the wazuh-4.14.1.ova file to your virtualization platform.
-
If you use VirtualBox, set the Graphics Controller to
VMSVGA. Other controllers can freeze the VM window.- Select the imported VM
- Click Settings > Display
- Switch from Basic to Expert mode at the top-left of the settings window.
- From the Graphic controller dropdown, select the
VMSVGAoption.
- If you use VirtualBox, the VM might experience time skew when VirtualBox synchronizes the guest machine time. Follow the steps below to avoid this:
- Select the imported Wazuh VM
- Click on Settings > System.
- Switch from Basic to Expert mode at the top-left of the settings window.
- Click on the Motherboard sub-tab.
- Enable the
Hardware Clock in UTC Timeoption under Features.
Note
By default, the network interface type is set to Bridged Adapter. The VM attempts to obtain an IP address from the network DHCP server. Alternatively, you can set a static IP address by configuring the network files in Amazon Linux.
- Start the VM.
-
Log in using these credentials. You can use the virtualization platform or access it via SSH.
user: wazuh-user password: wazuhThe SSH
rootuser login is disabled. Thewazuh-userhas sudo privileges. To switch to root, execute the following command:
Access the Wazuh dashboard¶
After starting the VM, access the Wazuh dashboard in a web browser using these credentials:
It might take a few seconds to minutes for the Wazuh dashboard to complete initialization.
Configuration files¶
All components in this virtual image are configured to work out of the box. However, all components can be fully customized. These are the configuration file locations:
- Wazuh manager:
/var/ossec/etc/ossec.conf - Wazuh indexer:
/etc/wazuh-indexer/opensearch.yml - Filebeat-OSS:
/etc/filebeat/filebeat.ymlWazuh dashboard:/etc/wazuh-dashboard/opensearch_dashboards.yml/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
Securing your Wazuh installation¶
It is recommended to change the default credentials to protect your infrastructure from possible attacks.
Follow the instructions to change the default passwords for both the Wazuh API and the Wazuh indexer users.
Use the Wazuh passwords tool to change all the internal users' passwords.
/usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh --api --change-all --admin-user wazuh --admin-password wazuh
Sample Output
INFO: The password for user admin is yWOzmNA.?Aoc+rQfDBcF71KZp?1xd7IO
INFO: The password for user kibanaserver is nUa+66zY.eDF*2rRl5GKdgLxvgYQA+wo
INFO: The password for user kibanaro is 0jHq.4i*VAgclnqFiXvZ5gtQq1D5LCcL
INFO: The password for user logstash is hWW6U45rPoCT?oR.r.Baw2qaWz2iH8Ml
INFO: The password for user readall is PNt5K+FpKDMO2TlxJ6Opb2D0mYl*I7FQ
INFO: The password for user snapshotrestore is +GGz2noZZr2qVUK7xbtqjUup049tvLq.
WARNING: Wazuh indexer passwords changed. Remember to update the password in the Wazuh dashboard and Filebeat nodes if necessary, and restart the services.
INFO: The password for Wazuh API user wazuh is JYWz5Zdb3Yq+uOzOPyUU4oat0n60VmWI
INFO: The password for Wazuh API user wazuh-wui is +fLddaCiZePxh24*?jC0nyNmgMGCKE+2
INFO: Updated wazuh-wui user password in wazuh dashboard. Remember to restart the service.
Disable Wazuh Updates.¶
It is recommended to disable the Wazuh package repositories after installation to prevent accidental upgrades that could break the environment.
Execute the following command to disable the Wazuh repository: