Bring up 5 Vms and in each VM update /etc/hosts with following entries (to match requirements) 10.1.1.5 db1 10.1.1.6 db2 10.1.1.7 db3 10.1.1.10 haproxy1 10.1.1.11 haproxy2 Install mariadb in db1, db2 and db3. Install net-tools also, netstat would be handy for some checks. Stop mariadb service. apt install mariadb-server net-tools service mariadb stop Edit /etc/mysql/mariadb.conf.d/50-server.cnf…