Zabbix Installation Guide
This guide provides step-by-step instructions to install Zabbix on a Linux VM (Ubuntu 22.04
recommended). It also lists alternative options for using Zabbix in a lab environment.
1. Zabbix as a VM (Prebuilt Appliance)
Download a prebuilt Zabbix appliance VM (OVA, VMDK, or QCOW2) from the official website:
https://www.zabbix.com/download_appliance
2. Zabbix Installation on Ubuntu 22.04
Run the following commands:
# 1. Install repo
wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu
sudo dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
sudo apt update
# 2. Install Zabbix server, frontend, agent, and DB
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix
# 3. Configure DB
sudo mysql -uroot -p
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'StrongPassword';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;
# 4. Import DB schema
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
# 5. Edit DB password
sudo nano /etc/zabbix/zabbix_server.conf
# DBPassword=StrongPassword
# 6. Start services
sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2
Access the Zabbix frontend in your browser:
http:///zabbix
Default login: Admin / zabbix
3. Zabbix via Docker
docker run --name zabbix-appliance -t -p 80:80 -p 10051:10051 zabbix/zabbix-appliance:alpine-6.4-
■ Recommended for Lab: Use the Zabbix Appliance VM for quick deployment on
Proxmox/VMware.