Skip to content

Instantly share code, notes, and snippets.

@alexcmd
Last active December 22, 2021 14:18
Show Gist options
  • Save alexcmd/2f05f59ab9d1eb9c6f0c81281f10dfa3 to your computer and use it in GitHub Desktop.
Save alexcmd/2f05f59ab9d1eb9c6f0c81281f10dfa3 to your computer and use it in GitHub Desktop.
sudo apt update && sudo apt upgrade -y
wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb
sudo apt update
sudo apt install zabbix-agent -y
# kvm
sudo apt install qemu-kvm ovmf cpu-checker libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager qemu-utils dnsmasq
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
cd /var/lib/libvirt/images/
sudo wget https://releases.ubuntu.com/focal/ubuntu-20.04.3-live-server-amd64.iso
sudo virsh net-start default
echo "<network><name>host-bridge</name><forward mode="bridge"/><bridge name="br0"/></network>" >> host-bridge.xml
virsh net-define host-bridge.xml
virsh net-start host-bridge
virsh net-autostart host-bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment