Terminal installer (install.sh)¶
This page explains how to install QubeSight from a terminal with install.sh: what the script does, every question it asks in the order it asks them, the default answer and what to answer, and how to re-run it safely.
Community Enterprise
install.sh is the single installation engine of QubeSight. The web installer and the cloud images run the same script. Every option is listed in install.sh options.
Prerequisites¶
- The QubeSight release unpacked, for example in
/opt/qubesight. On a server without internet access, unpack the offline bundle instead; see Offline installation. - Docker Engine with Docker Compose v2, or Podman with Docker CLI emulation and Compose v2. Run as
root, or as a user in thedockergroup. Some steps (virtual IP, cluster SSH key, Podman network fixes) needroot. - See System requirements and sizing and Network, ports and firewall.
Run it¶
Installing 2.0.107
In release 2.0.107, sudo ./install.sh without options stopped on a new server right after the embedded-model question (read_or_fail: command not found). This is fixed in 2.0.109. If you still install from the 2.0.107 bundle, use the web installer (./install.sh --web) or an unattended run (./install.sh --yes …), and remove a partial installation with sudo ./uninstall.sh first. See Known issues of 2.0.107.
Questions are asked only when both input and output are a terminal and --yes is not given. Every question can be answered in advance with an option; an answered option is not asked again. To install without any question, see Unattended installation.
What the script does¶
- Checks: Docker, Compose v2, the Podman network backend (see Podman hosts), and, unless
--no-startis given, memory (warns below 6,000,000,000 bytes, about 5.6 GiB; the web installer warns below 6 GiB) and free disk in the release directory (warns below about 10 GiB). - Configuration and secrets: creates
.env(mode 0600) from.env.exampleon a new installation and generates every missing secret: PostgreSQL passwords insecrets/, the ClickHouse password, internal service tokens,GUARDIUM_SECRET_KEY, the restore MySQL password, MinIO root credentials, Kafka passwords and the first administrator password. Existing values are never replaced. - Data directory on a new installation: uses
--data-dir, or offers a larger mounted disk (question 0, see Data disk), prepares the directory and the boot-order setting. - Offline bundle model: if an offline bundle with
models/is found (in the release directory, its parent directory orQUBESIGHT_BUNDLE_DIR), the bundled language model is used as if--assistant-modelhad been given; it is verified with SHA-256 and not downloaded. - Questions (below), each written to
.env. - Port check on a first start: stops if any configured port is in use by another process.
- Offline bundle images: if the bundle has
images/IMAGES.txt, every image archive that is not yet on the server is verified againstimages/SHA256SUMSand loaded (docker loadorpodman load). A missing or corrupt archive stops the script with its name. See Offline installation. - Build the images from source only when needed. Without
--buildor--no-build, the script does not build when every image of this configuration (the product images tagged with this version and the third-party images) is already on the server, for example from the offline bundle; it builds when an image is missing. If an image is missing and the server cannot reach Docker Hub, the script stops before building, lists the missing images and points to the offline bundle.--buildalways builds,--no-buildnever builds. On an installation updated through patches it does not build unless--force-buildis given. If a build fails only because the image registry cannot be reached and every image of this release is already present, the script continues with those images. - Kafka authentication on a new installation: starts Redpanda first, creates the SASL/SCRAM users, topics and ACLs, then enables SASL.
- Start all services and wait until they are healthy (up to
--timeout, default 900 seconds). - After start: on a restore, the settings restore (ClickHouse data then returns in the background); then backup passphrase, SFTP backup location, vault installation, embedded model download and virtual IP, each only if chosen. A failure to save the passphrase or the SFTP location, or to provide the model, prints a warning and the installation continues; a failed vault installation or virtual IP stops the script (a re-run continues). Without a bundled model, a server that cannot reach the model download address is tried once, briefly; the script then warns that the server is offline and continues without the model.
- Verify HTTPS on the gateway, the API readiness endpoint (up to 2 minutes) and the administrator sign-in (skipped on a restore and when the web installer set the password; a failed sign-in only prints a warning); with
--cluster-enroll(or--cluster-ssh-user), enrol this server as a cluster node candidate; save the installation settings in PostgreSQL (so that they come back with a restore). - Summary: web address, certificate fingerprint, administrator, first password (new installation only), access manager account, log-intake addresses, data retention, and the data directory (the separate data directory, or the installation directory).
Questions in order¶
The table lists every interactive question in the order install.sh asks it. "When" says under which condition the question appears.
| # | Question (as shown) | When | Default | Option that answers it |
|---|---|---|---|---|
| 0 | Data directory [<largest disk>/qubesight] (after a list of the larger disks with their free space) |
New installation without data, --data-dir not given, and a mounted disk larger than the installation directory's disk is found |
The largest suitable disk followed by /qubesight; . keeps the data in the installation directory |
--data-dir |
| 1 | Install the embedded language model? | New installation | Yes when Docker has at least 11 GiB of memory and 4 CPUs, otherwise No | --with-assistant / --no-assistant |
| 2 | Address (name or IP) that remote log shippers (Filebeat/Kafka) use to reach this server | .env has no server address yet (or localhost), and --public-host not given |
Detected IPv4 address | --public-host |
| 3 | Virtual IP for log intake | .env has no virtual-IP line yet |
Empty (no virtual IP) | --vip / --no-vip |
| 4 | Hot data limit: [1] Number of days [2] Disk usage | No cold-storage choice in .env yet, --cold-mode not given, not a restore |
2 (disk usage) | --hot-mode |
| 5a | Hot data: up to what percentage may the ClickHouse disk fill? | Answer 4 = disk | 85 | --hot-disk-percent |
| 5b | Hot data: how many recent days stay in ClickHouse? | Answer 4 = days | 365 | --hot-days |
| 6 | Where should cold storage be? [1] Local MinIO on this server (Community) [2] Install a MinIO vault on another server (Enterprise) [3] Existing external S3/MinIO (Enterprise) [4] No cold storage | Same as 4 | 1 (local) | --cold-mode |
| 7 | How many years should cold data stay locked? | Answer 6 is not 4 | 5 | --cold-years |
| 8 | Vault questions (see below) | Answer 6 = 2 | --vault-* |
|
| 9 | External store questions (see below) | Answer 6 = 3 | --cold-* |
|
| 10 | Do you confirm this choice? | Answer 6 is not 4 | Yes | |
| 11 | Backup location | New installation, not a restore, --backup-location not given |
Locked store if cold storage is on, otherwise SFTP | --backup-location |
| 12 | Backup lock days, or SFTP questions (see below) | Depends on answer 11 | 30 days | --backup-lock-days, --backup-sftp-* |
| 13 | Backup passphrase, then the same again | New installation, not a restore | Empty = default passphrase | QUBESIGHT_BACKUP_PASSPHRASE, --skip-backup-passphrase |
| 14 | Backup passphrase of the backup | --restore-from given (asked instead of 13) |
Empty = default passphrase | QUBESIGHT_BACKUP_PASSPHRASE |
| 15 | How many events per second (TPS) do you expect? | Asked once per installation | Empty = skip | --expected-tps |
| 16 | How will events arrive? | Answer 15 given | 1 (Guardium/syslog) | --ingest-path |
| 17 | SQL type? | Answer 15 given | 1 (short SQL) | --sql-profile |
| 18 | Write the recommended resource limits to .env? |
A recommendation was computed for an answer to 15 | Yes | --no-apply-sizing |
| 19 | Recovery bundle passphrase | --recovery-bundle given |
QUBESIGHT_RECOVERY_PASSPHRASE |
|
| 20 | Add this key to the root account? | Restore into a cluster place, after the backup plan is read | No | --trust-backup-ssh-key |
Yes/No questions accept e, evet, y or yes for yes (the prompts show [E/h] or [e/H]; the capital letter is the default). An empty answer takes the default.
Prompt language
The terminal prompts and messages of install.sh are in Turkish in this release. The tables on this page give the English meaning of each prompt in the same order. On a new server the terminal shows, one after the other: the data-directory question (when a larger disk is found), the embedded-model question, the shipper address, the virtual IP, the hot-data limit and the cold-storage choice, then the backup and sizing questions. The language of the product itself is chosen separately (see Product language and time zone).
Hot-data options without --hot-mode. Since 2.0.109, --hot-days N on its own selects the days mode and --hot-disk-percent N on its own selects the disk mode. Giving both without --hot-mode stops the script with an error. In disk mode the final summary says how full the ClickHouse disk may get ("until the ClickHouse disk is N % full").
Product language and time zone¶
On a new installation install.sh also sets two product defaults. Neither is asked as a question.
| Default | How it is chosen | Where it applies | Change it later |
|---|---|---|---|
Product language (QUBESIGHT_DEFAULT_LANGUAGE, tr or en) |
--language tr or --language en; otherwise the server's locale (tr… gives Turkish, anything else English). The web installer passes the language of the wizard. Cluster nodes added from the interface get the same language. |
The sign-in page and the interface for users who have not chosen a language in their browser, the notification language until an administrator saves one, and the note of the seeded ingest allowlist. | Users switch the interface language with the language button; the notification language is set in Platform → Settings → Notifications. |
Display time zone (TZ) |
The server's time zone (from timedatectl, /etc/timezone or /etc/localtime; an invalid value gives UTC), unless --set TZ=<zone> is given. The web installer proposes the server's zone, not the browser's. |
Dates and times in the interface, Ask and reports, as long as no display time zone is saved. | Platform → Settings → General → Display time zone. |
An existing installation keeps its language and time zone; a stored value always wins. Before 2.0.109 the display time zone defaulted to Europe/Istanbul and the sign-in page opened in Turkish when no language was chosen.
0. Data directory¶
Asked first, and only on a new installation when a mounted disk larger than the installation directory's disk is found. The script lists the free space of the installation directory's disk and of each larger disk, then asks for the data directory. Press Enter to accept the suggestion, type . to keep the data in the installation directory, or type another absolute path. The choice cannot be changed later. See Data disk.
With --yes or without a terminal the question is not asked: the data stays in the installation directory, and the script prints the --data-dir option you would need to use the larger disk.
1. Embedded language model¶
The script explains that the embedded model (Gemma 3 4B) runs on this server, needs no external provider, is about 2.5 GB to download, and uses about 4 GB of memory only while answering. It shows the memory and CPU Docker sees and the recommendation (11 GiB, 4 CPUs).
- Answer yes on a server that meets the recommendation. The model is downloaded after the services start and verified with SHA-256. When you install from the offline bundle, the script says that the model is taken from the bundle instead of downloaded.
- Answer no on a smaller server. You can enable it later with
./install.sh --with-assistantor download the model in Platform → Settings → Assistant.
Below the recommendation the script warns that queries and ingestion may slow down if you enable it anyway.
2. Server address¶
The name or IP address that log shippers use to reach this server. Kafka advertises this address to its clients, so Filebeat must be able to resolve and reach it. Press Enter to accept the detected address, or type a DNS name such as qubesight.example.com. Allowed characters: letters, digits, ., -, _ and :.
3. Virtual IP for log intake¶
An extra IPv4 address on this server that log sources (Guardium syslog and SNMP traps, Filebeat) send to. It is recommended even on a single server: when you later form a cluster, the address moves to a healthy node and sources need no change.
- Type
ADDRESSorADDRESS/PREFIX, for example192.0.2.200/24. Without a prefix, the server interface's prefix is used. - The address must be in the server's subnet, must not be the server's own address, the network or the broadcast address, and must be free on the network (checked with
arpingwhen available). The prefix must be between 8 and 30. BIND_PUBLICmust be0.0.0.0(the default).- Press Enter for no virtual IP.
The address is applied after the services start, by a small qs-keepalived container, and the installer verifies that the syslog port answers through it.
4 to 10. Data retention¶
The script explains that hot data stays in ClickHouse for fast queries and that cold storage keeps every 10-minute block as an immutable (Object Lock) file. See Hot and cold storage tiers.
4. Hot data limit. [1] Number of days keeps the last N days hot. [2] Disk usage (the installer's default answer) keeps as much as possible until the ClickHouse disk reaches the percentage.
Hot-data default
The installer's hot-data choice (--hot-mode, --hot-days, --hot-disk-percent, or the web installer's hot-data step) is stored by the control plane on its first start, while no retention setting has been saved yet; after that you change it in Platform → Data and Backup → Retention. Without an installer value the control plane uses days mode, 365 days. An existing installation keeps its saved setting when it is upgraded; see Upgrading from 2.0.106.
5a. Disk percentage (50 to 95, default 85) or 5b. Days (7 to 3650, default 365). In both modes, when the disk fills, only months already exported to the locked store leave the hot tier.
6. Cold storage location.
| Answer | Meaning | Edition |
|---|---|---|
1 |
Local MinIO in this stack, with random root credentials. Protects against application and database administrators, not against the server's root user. | Community |
2 |
Install a locked MinIO vault on another server over SSH. The installer sets it up without a licence and prints a warning that the vault is an Enterprise feature; managing or changing it later needs an Enterprise licence (immutable_vault). |
Enterprise |
3 |
An existing external Object Lock S3 or MinIO | Enterprise |
4 |
No cold storage; data stays in ClickHouse only |
7. Lock years (1 to 30, default 5).
8. Vault questions (answer 2):
| Prompt | Default | What to answer |
|---|---|---|
| Vault server address (IP or name) | The vault server, Ubuntu or Oracle Linux/RHEL with Docker or Podman | |
| SSH user | root |
An account that can run containers |
| SSH port | 22 | |
| Is fingerprint SHA256:… correct? | No | The script shows the server's SSH host keys. Compare with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub on the vault server's console and answer yes only if they match. |
| user@host password | Typed without echo. Used once to install the product's SSH key; not stored. |
9. External store questions (answer 3):
| Prompt | Default | What to answer |
|---|---|---|
| External store address (HOST:PORT) | For example 198.51.100.20:9100. A leading https:// selects HTTPS. No underscore in the name. |
|
| Connect over HTTPS? | No | Yes if the store serves TLS |
| Bucket name | qubesight-worm |
3 to 63 lowercase characters; the control plane creates it with Object Lock |
| Access key | 3 to 128 characters, no spaces, quotes, $, # or \ |
|
| Secret key | Typed without echo, 8 to 128 characters |
10. Confirmation. The script warns that files stay locked for the chosen number of years: nobody, administrators included, can delete or change them, and the space cannot be freed. With local MinIO it adds that the root user of this server is not prevented from wiping the disk. Answer h (no) to go back to question 6.
11 and 12. Backup location¶
The backup location receives the configuration backup, the ClickHouse backup and the off-server copy of the activity logs, all encrypted with the backup passphrase.
| Cold storage on | Choices |
|---|---|
| Yes | [1] Locked store (default) · [2] SFTP · [3] I will choose later |
| No | [1] SFTP (default) · [2] I will choose later |
- Locked store: asks how many days each configuration backup stays locked (1 to 3650, default 30).
- I will choose later: backups stay on this server's disk only. Choose a location after installation in Platform → Data and Backup → Backup settings.
- SFTP: asks the following.
| Prompt | Default | What to answer |
|---|---|---|
| SFTP server (IP or name) | Any Linux server with SSH | |
| SSH port | 22 | |
| User | Letters, digits, _, ., - |
|
| Backup directory | /srv/qubesight-yedek |
An absolute path, not /, without a trailing /, . or .. segments |
| Is fingerprint SHA256:… correct? | No | Compare with the SFTP server's console and confirm |
| user@host password | Typed without echo. Leave empty to use a private key instead. | |
| Private key file | Shown only when the password is empty: an unencrypted key, for example /root/.ssh/id_ed25519 |
The SFTP location is tested and saved after the services start (stage backup_dest). If the server's key changed, the script prints the fingerprint it saw and how to re-run with --backup-sftp-host-key.
13 and 14. Backup passphrase¶
Configuration backups are encrypted with a key derived from this passphrase. With the backup location and this passphrase everything comes back even if all servers are lost. QubeSight cannot show or reset it, so store it in your password vault.
- At least 12 characters, no leading or trailing space. Typed twice, without echo.
- Leave empty to use the default passphrase
qubesight. Backups then still open after a server loss, but anyone holding a backup file can open them too. Set your own later in Platform → Data and Backup → Backup settings.
The passphrase is handed to the control plane on standard input after the services are healthy; it is never written to .env or a command line.
14. On a restore (--restore-from), question 13 is replaced by the passphrase of the backup being restored. Leave it empty to try the default passphrase. It opens the backup; no new passphrase is set, because the restored settings carry the backup's passphrase.
15 to 18. Expected load¶
Asked once per installation (an empty answer is remembered as "decided").
- 15. Events per second you expect, 1 to 1,000,000. Leave empty to skip and measure later in Platform → System and Cluster → Capacity.
- 16.
[1] Guardium/syslog (parsed by Vector)or[2] Filebeat / Event Hub / Kinesis / direct Kafka. - 17.
[1] Short SQL (typical)or[2] Long/bulk SQL (ORM, bulk INSERT, large IN lists). - 18. The script prints the recommended environment (Vector, worker, Redpanda, ClickHouse, disk; minimum and recommended) and asks whether to write the resource limits (
WORKER_*,CLICKHOUSE_*,VECTOR_*) to.env. CPU limits are capped to the number of cores Docker sees, with a warning. If one worker is not enough, the script prints the manual scaling commands to run after installation.
Without python3 the recommendation is skipped; the target is still written to .env.
19 and 20. Recovery bundle and product key¶
These appear only for a restore or a disaster-recovery installation; see Restore from a backup and Set up a disaster-recovery site.
- 19. Recovery bundle passphrase, when
--recovery-bundleis given andQUBESIGHT_RECOVERY_PASSPHRASEis not set. It is asked on the terminal after the images are built and before the services start, also with--yes. Without a terminal and without the variable, the installation stops. - 20. Product SSH key from the backup. When the server comes back into its place in a cluster, the script shows the fingerprint and comment of the cluster's product SSH key and asks whether to add it to the root account (default No). Compare the fingerprint with a running node (Platform → System and Cluster → Cluster, product identity) before answering yes.
Data disk¶
When the server's root disk is small and the data belongs on a separate, larger disk (for example one mounted on /data), install with a data directory on that disk. The installation directory (the release, .env, the patches and the update service) stays where it is; only the growing data moves.
What is written to the data directory: ClickHouse (clickhouse_data, and clickhouse_cold for the local cold tier), Redpanda (redpanda_data), the local locked store (minio_data), the archive drop directory (archive_drop), and the growing volumes: the Vector disk buffer, PostgreSQL, the backups, the embedded language model, and the Guardium restore MySQL with its scratch directory.
Which disks are offered. The installer and the web installer use the same rules. A disk is offered when it is:
- a local, writable file system (ext2, ext3, ext4, XFS, Btrfs, ZFS, F2FS or JFS), not mounted read-only;
- not the disk or device of the installation directory, and not a system or container-engine location (
/boot,/run,/tmp,/var/lib/docker,/var/lib/containersand similar), nor an Azure temporary disk; - at least 20 GiB free, and both larger and with more free space than the installation directory's disk.
Network file systems are never offered. The suggestion is the disk with the most free space, followed by /qubesight (for example /data/qubesight).
How to choose it:
- terminal: question 0 above, or
--data-dir /data/qubesight(an absolute path of letters, digits,.,_,-and/, not/;--data-dir .means the installation directory); - web installer: Components → Data disk (see Web installer).
Start-up order. When the data directory is not on the root file system, the installer adds RequiresMountsFor=<data directory> for docker.service, podman.service and podman-restart.service (/etc/systemd/system/<unit>.d/50-qubesight-data.conf). If the disk is not mounted at boot, the container engine does not start, instead of writing to the empty mount point on the root disk. The disk itself must be in /etc/fstab; the installer warns if it is not.
Only on the first installation. The data directory is chosen once. On an installation that already has data, a different --data-dir stops the script, and the web installer refuses it. Existing installations upgraded to 2.0.107 or later keep their data where it is. Moving the data later is a maintenance task: stop the services, copy the data directories and volumes to the new location, update QUBESIGHT_DATA_DIR and the QUBESIGHT_VOL_* paths in .env, start the services and verify before you delete the old copy. Contact support before you do this on a production system.
If the chosen directory already contains data from an earlier installation, the script warns that it may not open with the new secrets; for a clean installation, remove it first (for example with ./uninstall.sh of that installation).
On a cluster, the data directory applies to the server installed with install.sh (the first node). Nodes added with the Add cluster node wizard keep their data in their own node directory, independent of this setting.
With a second disk mounted on /data, the terminal lists the installation directory's disk with its free space, then each larger disk with its free and total space, and asks for the data directory with /data/qubesight as the default.
After the script finishes¶
The summary shows:
| Line | Content |
|---|---|
| Interface | https://<server address>:<UI_PORT> (default port 3000; http:// when HTTPS is off). With --defer-gateway, a note that the gateway starts with ./install.sh --start-gateway. |
| Administrator | User name (default admin) |
| Certificate | Source and SHA-256 fingerprint of the web certificate, and where to replace it; with HTTPS off, a reminder to declare your TLS terminator in GATEWAY_TRUSTED_PROXIES |
| First password | New installation with a generated password only, shown once. Also kept in .env as BOOTSTRAP_ADMIN_PASSWORD. Otherwise the line points to BOOTSTRAP_ADMIN_PASSWORD in .env, or says that the password was set in the web installer. |
| Access manager | accessmgr (or the name in BOOTSTRAP_ACCESS_MANAGER_USER) and the command that prints its first password; not shown when the account is disabled with none |
| Log intake | syslog (TCP) <address>:5140, Kafka <address>:9092, SNMP trap <address>:162/udp, and whether Kafka authentication is on (Filebeat user qs-filebeat) or off (with the --enable-kafka-auth hint) |
| Local management | API https://127.0.0.1:8085, ClickHouse http://127.0.0.1:8123 |
| Data directory | The separate data directory and what it holds (ClickHouse, Redpanda, Vector buffer, PostgreSQL, backups, model), or the installation directory |
| Data retention | Hot days, cold lock years, the cold store (local MinIO, external store or vault server) and bucket; or that cold storage is off or not set |
| Capacity | Pointer to Platform → System and Cluster → Capacity, the expected rate if one was set, and the manual worker scaling commands when one worker is not enough |
| Status, stop and start, update, remove | docker compose ps and logs, docker compose stop/start (data is kept), update through Platform → System and Cluster → Update or by re-running install.sh, and ./uninstall.sh, which removes everything including log data (and the data in the separate data directory, if one was chosen) |
| Note | .env holds secrets (back up GUARDIUM_SECRET_KEY); set ENVIRONMENT=production in .env for production; the web certificate is stored in the qubesight_gateway_tls volume and secrets/tls/ is only the first-start seed |
The last line shows the Compose project name.
When a restored server rejoins its place in a running cluster, a shorter summary is printed instead: the interface address (with the cluster certificate fingerprint), the log-intake addresses and a note to sign in with the user names and passwords of the backed-up system.
Continue with After installation.
Re-running install.sh¶
install.sh can be run again at any time. It keeps every existing secret, data directory and answer, adds missing settings, and applies only the options you give.
- Questions already answered (recorded in
.env) are not asked again. - On an installation updated through Platform → System and Cluster → Update, the script does not rebuild images (
--force-buildforces it) and does not recreate running services (--recreateapplies.envchanges to them). - Cold-storage and backup values in
.envare read by the control plane only on its first start. On a running installation, change them in Platform → Data and Backup. - Turning HTTPS on or off on an existing installation takes effect with
--recreate.
Podman hosts¶
On a host where Podman uses the CNI network backend (for example Oracle Linux or RHEL 8), the script:
- switches Podman to
netavarkandaardvark-dnswhen the host has no containers yet, runs as root and has a name server (packages are installed from the configured repositories); - otherwise keeps CNI, writes a
docker-compose.override.ymlso that the internal networks resolve names, installs thequbesight-cni-hairpinservice for container-to-published-port traffic and relaxes reverse-path filtering; - checks name resolution of the control plane after the services start.
Details and fixes: Installation problems.
Limitations¶
- The terminal prompts are in Turkish; the product language is set separately with
--language. - The script installs on the local machine only.
install.shdoes not install Docker; usesetup.sh(Ubuntu/Debian) or your distribution's packages.- The installer's hot-data choice applies to a new installation only: the control plane stores it on its first start, and later changes are made in Platform → Data and Backup → Retention. Running the installer again does not change a saved setting.