Note: For evaluation purposes only.

1. Installation

  • Download the latest Zabbix Appliance from https://www.zabbix.com/download_appliance.

  • Log in as delta on the tbhf-kvm-mrm server.

  • Enter the following commands at a Command Line.

    cd /tmp
    scp -p delta@tbhf-anc-mrm:/media/Windows/Images/Zabbix/zabbix_appliance-5.2.6-qcow2.tar.gz .
    tar xfz /tmp/zabbix_appliance-5.2.6-qcow2.tar.gz
    sudo mv zabbix_appliance-5.2.6-qcow2/zabbix_appliance-5.2.6.qcow2 /home/kvm/images
    sudo chown libvirt-qemu:libvirt-qemu /home/kvm/images/zabbix_appliance-5.2.6.qcow2
    
    cd
    ls -al /home/kvm/images

2. Configuration

  • Log in as delta on the tbhf-kvm-mrm server.

  • Enter the following commands at a Command Line.

    # Make vm start on boot.
    sudo virsh autostart --domain tbhf-zbx-mrm
    sudo virsh list --all --autostart
    
    
    sudo virsh list --all
    sudo systemctl status libvirtd
    sudo ls -al /home/kvm/images
    -rw------- 1 libvirt-qemu libvirt-qemu 107390828544 Apr 12 17:33 tbhf-zbx-mrm.qcow2

3. Console

  • Log in as delta on the tbhf-kvm-mrm server.

  • Type sudo virsh console --domain tbhf-zbx-mrm and press Enter.

  • Press Enter to log in.

  • Do your thing.

  • Press Ctrl + ] to quit the KVM guest console.

4. VM Configuration

  • Log in as delta on the tbhf-kvm-mrm server.

  • Type sudo virsh console --domain tbhf-zbx-mrm and press Enter.

  • Press Enter.

  • Log in as delta on the tbhf-zbx-mrm server.

  • Type ip a and press Enter.

  • Note: Temporarily enable DNS and HTTP services for the IP address assigned by the DHCP server on the SMRU-EFW-MRM firewall.

  • Enter the following commands at a Command Line with root privileges.

    ip a
    
    scp -p delta@10.10.1.2:/media/Windows/Software/_Delta/delta-linux-tools-#.#.#-1-all.deb .
    dpkg -i delta-linux-tools-#.#.#-1-all.deb
    
    delta config apt                        # Configure apt repositories.
    delta config bash                       # Configure bash shell for each user.
    delta config cron                       # Configure cron jobs.
    delta config editor                     # Set default editor to vim.tiny for each user.
    delta config kernel net.ifnames=0       # Disable consistent network device names.
    delta config locale                     # Configure locale settings.
    
    delta delta inventory                   # Install and configure inventory.
    delta delta openssh                     # Install and configure openssh server.
    delta delta sudo                        # Install and configure sudo for each user.
    delta delta timezone                    # Install and configure time zone.
    
    delta delta systemd-ethernet 10.10.1.16 10.10.1.170 10.10.1.1 smru.shoklo-unit.com
  • Restart the virtual machine.

  • Log in as delta on the tbhf-zbx-mrm server using PuTTY.

  • Note: Disable DNS and HTTP services for the IP address assigned by the DHCP server on the SMRU-EFW-MRM firewall.

  • Enter the following commands at a Command Line.

    ip a
    ip link list
    sudo systemctl --type service
    ls -al /etc/resolv.conf
    cat /etc/resolv.conf
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
    sudo apt-get autoremove
    sudo apt-get autoclean
    
    cat /etc/debian_version
    df
    
    sudo apt-get --yes install curl         # Contains curl command used by check-network script.
    sudo apt-get --yes install dnsutils     # Contains dig command used by check-public-ip-addresses script.
    sudo apt-get --yes install net-tools    # Contains ifconfig command.
    sudo delta setup vim                    # Install and configure vim for each user.
    
    sudo grep -Ei --color=always "bad |brok|cann|crit|deni|err:|erro|fail|igno|insu|leak|lost|miss|not |such|unab|warn" /var/log/syslog
    sudo zgrep -i 'systemd-networkd-wait-online' /var/log/syslog*
    sudo zgrep -i 'lost carrier' /var/log/syslog*
  • Enter the following commands at a Command Line.

    sudo delta setup apache
    sudo delta setup asciidoctor
    sudo delta setup exim
    sudo delta setup gpg
    sudo delta setup jre-headless
    sudo delta setup jshint
    sudo delta setup jslint
    sudo delta setup git
    sudo delta setup php
    sudo delta setup postgresql
    sudo delta setup repository
    sudo delta setup ruby
    sudo delta setup samba