TRINITY logoTRINITYVDI

TRINITY VDI / Documentation / 9. Connection servers

9. Connection servers

Install two TRINITY VDI connection servers with a virtual IP: join file from the portal, certificates, guacd, broker failover and switching the mode on.

Download the packages
Documentation pages

The connection servers broker TRINITY VDI: one node at a time holds the database lock and the VIP, the other waits. They read the portal's database and settings. Copy TRINITY-ConnServer-1.2.1-Linux.tar.gz with the checksum list to cs01 and cs02 (2.5), and from trinity01 the certificate to cs01:

cd ~/certs && scp cs.crt cs.key corp-root.crt 10.0.10.24: && scp corp-root.crt 10.0.10.25:

9.1 Firewall (both nodes)

sudo ufw allow 443/tcp
sudo ufw allow from 10.0.10.25 proto vrrp      # on cs01
sudo ufw allow from 10.0.10.24 proto vrrp      # on cs02

9.2 Join file (on the active portal node)

sudo pcs status | grep trinity-svc            # cluster: the node named here is the active one
sudo trinity-connsrv-bundle                   # with a local database: --db-host <the portal's address>
sudo install -m 600 -o $USER /root/trinity-connsrv-join.tar ~/trinity-connsrv-join.tar
scp ~/trinity-connsrv-join.tar 10.0.10.24: && rm ~/trinity-connsrv-join.tar && sudo rm /root/trinity-connsrv-join.tar

The file holds the database connection and the secret key: keep it only as long as needed.

9.3 First node (cs01, priority 150)

cd ~ && tar xzf TRINITY-ConnServer-1.2.1-Linux.tar.gz && cd connsrv
IF=$(ip -o -4 route show to default | awk '{print $5}' | head -n1)
sudo ./install-trinity-connsrv.sh --join ~/trinity-connsrv-join.tar --name cs.corp.example.com \
  --cert ~/cs.crt --key ~/cs.key --vip 10.0.10.26/24 --interface $IF --peers 10.0.10.25 --priority 150 \
  && rm ~/trinity-connsrv-join.tar ~/cs.key
sudo install -m 600 -o $USER /root/trinity-connsrv-node.tar ~/trinity-connsrv-node.tar
scp ~/trinity-connsrv-node.tar 10.0.10.25: && rm ~/trinity-connsrv-node.tar && sudo rm /root/trinity-connsrv-node.tar

It builds guacd on the node (several minutes; needs the internet, or --guacd-source <file>).

9.4 Second node (cs02, priority 140)

cd ~ && tar xzf TRINITY-ConnServer-1.2.1-Linux.tar.gz && cd connsrv
IF=$(ip -o -4 route show to default | awk '{print $5}' | head -n1)
sudo ./install-trinity-connsrv.sh --join ~/trinity-connsrv-node.tar --name cs.corp.example.com \
  --vip 10.0.10.26/24 --interface $IF --peers 10.0.10.24 --priority 140 \
  && rm ~/trinity-connsrv-node.tar && sudo rm -f /root/trinity-connsrv-node.tar

9.5 Switch the mode on

  1. In the portal as L4: Trinity VDI > VDI portal settings > Connection servers.
  2. Address of the connection servers: https://cs.corp.example.com; Allowed sources (optional): the portal nodes 10.0.10.33, 10.0.10.34. Test; compare the certificate with sudo trinity-connsrv status on cs01.
  3. Switch on. From now on the portal forwards every VDI change to the broker and stops its own pool engine.

Test once: sudo systemctl stop trinity-connsrv on the broker; within about a minute sudo trinity-connsrv status on the other node says leader. Start it again.

Names, addresses and accounts in the examples (corp.example.com, 10.0.x.x, CORP\…) are examples: use your own. TRINITY 1.2.1, December 2026.