Skip to content

Infrastructure setup

IsardVDI supports different setups based on your requirements. Choose the option that best fits your environment, ranging from simple to complex:

  • all-in-one: A single server hosting all components. This is the easiest setup and the recommended starting point.
  • hypervisors: One all-in-one server and additional hypervisors. All nodes have Internet access. You can configure the border router to use different video ports for each hypervisor.
  • hypervisors-standalone: One all-in-one server visible from the Internet and additional hypervisors without Internet access. Use this setup if you cannot open additional ports on your border NAT router.
  • web-hypers: One VPS or minimal host running web and monitoring services, plus hypervisors. The hypervisors can be standalone or full, depending on their Internet access.
  • web-monitor-hypers: One VPS host for web services, another for monitoring, and hypervisors. The hypervisors can be standalone or full.

all-in-one

Follow the Quick start guide.

Hypervisors

Note

All servers must share the /opt/isard directory. You can use any technology for this, but NFS is the most common choice.

Configure your border NAT router to redirect ports as shown below. All of these settings can be configured in the cfg files.

All-in-one - 80 TCP (HTTP to HTTPS redirect and SPICE video) - 443 TCP (HTTPS and HTML5 videos) - 9999 TCP (RDP native video) - 443 UDP (User WireGuard VPN for remote guest connections)

Hypervisors - 808X/844X TCP (One X for each hypervisor that is not the all-in-one)

This setup is recommended if you have a public IP for each server, as it allows the use of automatic Let's Encrypt certificates. In this case, you can open ports 80/443 to each hypervisor. If you do not have a public IP for each server (which is the most common scenario), you must open different NAT ports as stated above (808X/844X). You should use a wildcard certificate or a purchased certificate (refer to the certificates section to install yours) because hypervisors will not renew or request certificates automatically.

Internal traffic between servers requires the following ports:

All-in-one to Hypervisors - 2022 TCP (Engine control of hypervisors)

Hypervisors to All-in-one - 4443 UDP (WireGuard Geneve VLANs tunnel for guests) - 6379 TCP (Redis tasks for isard-storage)

If you enable stats and logs, remote hypervisors must also access the stats and logs server on the all-in-one: - 3100 TCP (Loki logs server) - 9090 TCP (VictoriaMetrics stats server, legacy Prometheus port)

With this in mind, forward ports on the all-in-one to the corresponding Docker services. We use different internal networks for this traffic where possible, but the same network can be used.

firewall-cmd --new-zone=intra --permanent
firewall-cmd --zone=intra --add-source=172.31.2.0/24 --permanent
firewall-cmd --zone=intra --add-forward-port=port=3100:proto=tcp:toport=3100:toaddr=172.31.255.67 --permanent
firewall-cmd --zone=intra --add-forward-port=port=9090:proto=tcp:toport=8428:toaddr=172.31.255.68 --permanent
firewall-cmd --zone=intra --add-forward-port=port=6379:proto=tcp:toport=6379:toaddr=172.31.255.12 --permanent

On the hypervisors:

firewall-cmd --new-zone=intra --permanent
firewall-cmd --zone=intra --add-source=172.31.2.0/24 --permanent
firewall-cmd --zone=intra --add-forward-port=port=2022:proto=tcp:toport=2022:toaddr=172.31.255.17 --permanent

Note that for security reasons, these ports are not opened by default in the Docker YAML files. They must be forwarded via the firewall. You can edit the YAML files to open them, but build.sh will overwrite the YAML files.

If you are mapping different video ports (808X/844X) to hypervisors, you must forward them to the corresponding container:

firewall-cmd --zone=intra --add-forward-port=port=8080:proto=tcp:toport=80:toaddr=172.31.255.22 --permanent
firewall-cmd --zone=intra --add-forward-port=port=8443:proto=tcp:toport=443:toaddr=172.31.255.22 --permanent

Ensure that the network used for this traffic is blocked from access by guests. To do this, you should set BLACKLIST_IPTABLES=172.31.0.0/22 (or any internal ranges you want to block, separated by commas) in your hypervisor cfg file. Alternatively, configure this in your infrastructure firewall, keeping in mind that guest traffic is NATed.

The cfg file on the all-in-one can use the default all-in-one configuration. The cfg file for hypervisors must set the same SECRETS as the all-in-one and include at least the following variables:

DOMAIN=external-domain-name
FLAVOUR=hypervisor
ACME_EMAIL=info@isardvdi.com
API_DOMAIN=172.31.2.10 # Your all-in-one internal IP reachable from this host
STATIC_DOMAIN=external-all-in-one-domain-name # Where the JS/HTML for viewers to this hypervisor will be loaded by the user's browser
VIEWER_SPICE=80 # If you only have one IP, use another port you opened
VIEWER_BROWSER=443 # Same
VPN_DOMAIN=172.31.2.10 # Your all-in-one internal IP reachable from this host
REDIS_HOST=172.31.2.10 # Your all-in-one internal IP reachable from this host
VICTORIAMETRICS_ADDRESS=http://<server-IP>:9090 # Your all-in-one internal IP reachable from this host (stats)
LOKI_ADDRESS=http://<server-IP>:3100 # Your all-in-one internal IP reachable from this host (Loki logs)

Standalone hypervisors

Note

All servers must share the /opt/isard directory. You can use any technology for this, but NFS is the most common choice.

In this setup, only one host (the all-in-one) requires open ports on the NAT router:

  • All-in-one
    • 80 TCP (HTTP to HTTPS redirect and SPICE video)
    • 443 TCP (HTTPS and HTML5 videos)
    • 9999 TCP (Native RDP video)
    • 443 UDP (User WireGuard VPN for remote guest connections)

The hypervisors do not require any external internet access.

Internal traffic must flow between the components as follows:

  • All-in-one to hypervisors

    • 2022 TCP (Engine control of hypervisors)
    • 5900-7899 TCP (SPICE/HTML5 video ports)
  • Hypervisors to all-in-one

    • 4443 UDP (WireGuard Geneve VLAN tunnel for guests)
    • 6379 TCP (Redis tasks for isard-storage)

If you enable stats and logs, remote hypervisors must also access the stats and logs servers on the all-in-one:

  • 3100 TCP (Loki logs server)
  • 9090 TCP (VictoriaMetrics stats server, legacy Prometheus port)

Open the following ports on your all-in-one host:

firewall-cmd --new-zone=intra --permanent
firewall-cmd --zone=intra --add-source=172.31.2.0/24 --permanent
firewall-cmd --zone=intra --add-forward-port=port=3100:proto=tcp:toport=3100:toaddr=172.31.255.67 --permanent
firewall-cmd --zone=intra --add-forward-port=port=9090:proto=tcp:toport=8428:toaddr=172.31.255.68 --permanent
firewall-cmd --zone=intra --add-forward-port=port=6379:proto=tcp:toport=6379:toaddr=172.31.255.12 --permanent

Open the following ports on the hypervisors:

firewall-cmd --new-zone=intra --permanent
firewall-cmd --zone=intra --add-source=172.31.2.0/24 --permanent
firewall-cmd --zone=intra --add-forward-port=port=2022:proto=tcp:toport=2022:toaddr=172.31.255.17 --permanent
firewall-cmd --zone=intra --add-forward-port=port=5900-7899:proto=tcp:toport=5900-7899:toaddr=172.31.255.17 --permanent

Warning

For security reasons, these ports are not opened by default in the Docker YAML files. You must forward them in the firewall. You can edit the YAML files to open them, but build.sh will overwrite these changes.

Ensure that the network used for this setup blocks access to guests. To do this, you should set BLACKLIST_IPTABLES=172.31.2.0/22 in your hypervisor configuration or account for it in your infrastructure firewall (note that guest traffic is NATed).

The all-in-one configuration can be similar to the default all-in-one configuration, except that it also acts as a proxy for videos going to other hypervisors. In its configuration, you must allow the hypervisor IPs (and isard-hypervisor itself) so the video proxy can redirect video traffic to guests running on those hypervisors:

VIDEO_HYPERVISOR_HOSTNAMES=isard-hypervisor,172.31.2.11,172.31.2.12

The hypervisor configuration must set the same SECRETS as the all-in-one and include at least the following variables:

DOMAIN=internal-hyper-ip # Reachable from all-in-one
FLAVOUR=hypervisor-standalone
API_DOMAIN=172.31.2.10 # Your all-in-one internal IP reachable from this host
STATIC_DOMAIN=external-all-in-one-domain-name # Where the JS/HTML for viewers to this hypervisor will be loaded by the user's browser
VIEWER_SPICE=80
VIEWER_BROWSER=443
VPN_DOMAIN=172.31.2.10 # Your all-in-one internal IP reachable from this host
REDIS_HOST=172.31.2.10 # Your all-in-one internal IP reachable from this host
VICTORIAMETRICS_ADDRESS=http://<server-IP>:9090 # Your all-in-one internal IP reachable from this host (stats)
LOKI_ADDRESS=http://<server-IP>:3100 # Your all-in-one internal IP reachable from this host (Loki logs)

Web - Hypervisors

Note

All hypervisors must share the /opt/isard directory. You can use any technology for this, but NFS is the most common choice.

  1. Set up the web flavor on your VPS.
  2. Follow the all-in-one setup instructions.

Hypervisors require their own public IP addresses. Configure them using the hypervisor flavor described previously.

Ensure the firewall rules follow the same flow between the web server (similar to the all-in-one setup) and the hypervisors.

Web - Monitor - Hypervisors

Note

All servers must share the /opt/isard directory. You can use any technology for this; we typically use NFS.

Configure the hosts as follows:

  1. Web server: Do not configure stats.
  2. Monitor host: Configure the flavor to monitor.
  3. Hypervisors: Configure as described previously.

Update the stats/loki variables in the web and hypervisor hosts to point to your monitor host.

Open the stats ports on the monitor host instead of the web host.

The remaining configuration steps are the same.