Introduction
This article aims to help users who encounter issues during the installation of Wazuh on Ubuntu 20.04 running inside Hyper-V. In this guide, we will cover the key concepts and provide solutions for common errors that may occur during the installation process.
Installation Process
Before proceeding with the installation, ensure that your Hyper-V virtual machine meets the following requirements:
- Ubuntu 20.04 as the guest operating system
- Internet connection to download the Wazuh package
To install Wazuh, follow these steps:
- Run the following command to download the installation script:
- Grant execution permissions to the downloaded script:
- Run the installation script:
sudo curl -sO https://packages.wazuh.com/4.9/wazuh-install.sh
sudo chmod +x wazuh-install.sh
sudo bash wazuh-install.sh -a
Troubleshooting
Installation Failed
If the installation fails with an error message, try the following:
- Update the package index:
- Run the installation script again:
sudo apt-get update
sudo bash wazuh-install.sh -a
Firewall Issue
If the installation process is interrupted due to a firewall issue, follow these steps:
- Check the firewall status:
- Allow incoming traffic on ports 1512, 1514, and 514:
- Restart the Wazuh services:
sudo ufw status
sudo ufw allow 1512/udp
sudo ufw allow 1514/udp
sudo ufw allow 514/tcp
sudo systemctl restart wazuh-agent
References
For further information, consult the following resources: