Unattended installation¶
This page shows how to install QubeSight without any interactive question, for configuration management, golden images and repeatable test installations. It gives complete, copy-ready command lines for the common layouts.
Community Enterprise
How unattended mode works¶
install.sh --yes never asks a question. Every answer comes from:
- a command-line option (see install.sh options);
- an environment variable, for every secret (secrets are never accepted on the command line by default, because other local users can read command lines with
ps); - otherwise the default for a new installation, or the value already in
.envon a re-run.
| Secret | Environment variable | If not set |
|---|---|---|
| First administrator password | QUBESIGHT_ADMIN_PASSWORD |
A random password is generated and printed once |
| Backup passphrase | QUBESIGHT_BACKUP_PASSPHRASE |
Backups use the default passphrase qubesight |
| External cold-store secret key | QUBESIGHT_COLD_S3_SECRET_KEY |
Required with --cold-mode external --cold-auth keys |
| Vault SSH password | QUBESIGHT_VAULT_SSH_PASSWORD |
Required for the first vault installation |
| SFTP backup password | QUBESIGHT_BACKUP_SFTP_PASSWORD |
Required unless --backup-sftp-key-file is given |
| Recovery bundle passphrase | QUBESIGHT_RECOVERY_PASSPHRASE |
Required with --recovery-bundle |
| Restore: store keys | QS_RESTORE_S3_ACCESS_KEY, QS_RESTORE_S3_SECRET_KEY |
Required with --restore-from minio |
| Restore: SFTP password | QS_RESTORE_SFTP_PASSWORD |
Required with --restore-from sftp |
The administrator password must be at least 12 characters and must not contain spaces, quotes, $, # or \. The backup passphrase must be at least 12 characters without leading or trailing spaces.
Keep secrets out of shell history
Read secrets from a file or a secret manager into the variable, for example QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)", instead of typing them on the command line.
Defaults of an unattended new installation¶
| Setting | Default with --yes |
|---|---|
| Server address | Detected IPv4 address |
| Virtual IP | None |
| Cold storage | local (MinIO in this stack), 5 years, bucket qubesight-worm |
| Hot data | Installer answer: disk usage limit 85 %, 365 days for days mode. The control plane's runtime default is days mode, 365 days (see the note below). |
| Backup location | Locked store, configuration backups locked 30 days |
| Backup passphrase | Default passphrase unless QUBESIGHT_BACKUP_PASSPHRASE is set |
| Embedded model | On if Docker has at least 11 GiB of memory and 4 CPUs (disable with --no-assistant or QS_ASSISTANT_AUTO=0) |
| Expected load | Undefined |
| Ingest allowlist | The server's own subnet |
| HTTPS | On, self-signed certificate |
| Admin user | admin |
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.
Single node¶
The minimum unattended installation:
cd /opt/qubesight
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes
A fully specified single node with a DNS name, a virtual IP for log intake, an explicit ingest allowlist, a sizing target and your own administrator password:
cd /opt/qubesight
export QUBESIGHT_ADMIN_PASSWORD="$(cat /root/qs-admin.pass)"
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes \
--public-host qubesight.example.com \
--vip 192.0.2.200/24 \
--ingest-allow 192.0.2.0/24,198.51.100.0/24 \
--hot-mode days --hot-days 180 \
--cold-mode local --cold-years 7 \
--backup-location minio --backup-lock-days 30 \
--expected-tps 5000 --ingest-path syslog --sql-profile simple \
--set TZ=Europe/Berlin \
--set GATEWAY_TLS_EXTRA_HOSTS=qubesight.example.com
To use your own web certificate from the first start, add --tls-cert /path/fullchain.pem --tls-key /path/key.pem (PEM, the key without a passphrase).
External cold store (Enterprise)¶
Cold storage on an existing Object Lock capable S3 or MinIO on another server, with access keys:
cd /opt/qubesight
export QUBESIGHT_COLD_S3_SECRET_KEY="$(cat /root/qs-s3-secret)"
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes \
--cold-mode external \
--cold-endpoint 198.51.100.20:9100 --cold-secure true \
--cold-access-key qs-writer \
--cold-bucket qubesight-worm --cold-years 5 \
--backup-location minio
On AWS with the instance role instead of keys (the instance profile must allow the bucket). --cold-endpoint is required, and access keys are refused with --cold-auth iam:
sudo -E ./install.sh --yes \
--cold-mode external --cold-auth iam \
--cold-endpoint s3.eu-central-1.amazonaws.com:443 --cold-secure true \
--cold-region eu-central-1 --cold-bucket my-qubesight-archive \
--backup-location minio
--cold-lock-mode GOVERNANCE is for evaluation only: an authorized identity can delete governance-locked objects. Production uses the default COMPLIANCE.
Vault on another server¶
Installs a locked MinIO vault on a second server over SSH. The vault image is streamed from this server, so the vault server needs no internet access.
Enterprise A vault on a separate server is an Enterprise feature (immutable_vault). The installer can set it up at install time; managing or changing it afterwards needs an Enterprise licence.
cd /opt/qubesight
export QUBESIGHT_VAULT_SSH_PASSWORD="$(cat /root/vault-ssh.pass)"
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes \
--cold-mode vault \
--vault-host 198.51.100.30 \
--vault-host-key SHA256:AbCdEfGhIjKlMnOpQrStUvWxYz0123456789abcdefg \
--vault-ssh-user root --vault-ssh-port 22 --vault-port 9400
--vault-host and --vault-host-key are required with --cold-mode vault. The vault image qubesight/minio:RELEASE.2025-10-15T17-29-55Z-qs1 must already be present on this server (the offline bundle contains it; otherwise load it as described in Offline (air-gapped) installation), otherwise the installation stops at the vault stage. Read the host key fingerprint on the vault server's console with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub. If the server presents a different key, the password is not sent and the installation stops at the vault stage; everything else stays installed and a re-run continues.
SFTP backup location¶
Backups and daily encrypted copies of the activity logs to any Linux server over SFTP, with a password:
cd /opt/qubesight
export QUBESIGHT_BACKUP_SFTP_PASSWORD="$(cat /root/sftp.pass)"
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes \
--backup-location sftp \
--backup-sftp-host 198.51.100.40 --backup-sftp-port 22 \
--backup-sftp-user qsbackup --backup-sftp-path /srv/qubesight-yedek \
--backup-sftp-host-key SHA256:AbCdEfGhIjKlMnOpQrStUvWxYz0123456789abcdefg
With a private key instead of a password, replace the password variable with --backup-sftp-key-file /root/.ssh/qs_backup_ed25519 (an unencrypted key). With --yes, --backup-sftp-host, --backup-sftp-user, --backup-sftp-path and either a password or a key file are required. If the host key fingerprint is missing or wrong, the installation finishes but the location is not saved; the output prints the fingerprint the server presented.
SFTP can be combined with any cold-storage mode, including --cold-mode off.
Offline¶
From an unpacked offline bundle no extra option is needed: the installer verifies and loads the bundle's images, does not build because every image is then present, and takes the embedded model from the bundle's models/ directory (see Offline (air-gapped) installation). With --yes the data-disk question is not asked, so give --data-dir if the data belongs on a separate disk:
cd /opt/qubesight-2.0.110-offline
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes --data-dir /data/qubesight
When the images were loaded by hand instead, add --no-build, and pass the model file copied from a connected machine:
cd /opt/qubesight
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
sudo -E ./install.sh --yes --no-build \
--with-assistant --assistant-model /media/usb/gemma-3-4b-it-Q4_K_M.gguf
--assistant-model verifies the file's SHA-256 before using it; nothing is downloaded. Without the file use --no-assistant.
Cluster first node¶
A new cluster is formed from the product, not by install.sh. Install the future first node like a single node, ideally with a virtual IP that log sources will keep using after the cluster forms:
cd /opt/qubesight
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
export QUBESIGHT_COLD_S3_SECRET_KEY="$(cat /root/qs-s3-secret)"
sudo -E ./install.sh --yes \
--public-host 192.0.2.11 \
--vip 192.0.2.200/24 \
--cold-mode external --cold-endpoint 198.51.100.20:9100 --cold-secure true \
--cold-access-key qs-writer
At the end of every installation the script adds the product's cluster SSH key to the root account and enrols the server as a cluster node candidate. If root cannot log in over SSH (for example PermitRootLogin no on cloud images), use an account with password-less sudo:
Then add the second node and the witness in the product: see Add cluster nodes and a witness. Other servers that join a cluster do not run install.sh; the cluster installs them over SSH.
Restore from a backup¶
cd /opt/qubesight
export QUBESIGHT_BACKUP_PASSPHRASE="$(cat /root/qs-backup.pass)"
export QS_RESTORE_S3_ACCESS_KEY="$(cat /root/restore-access)"
export QS_RESTORE_S3_SECRET_KEY="$(cat /root/restore-secret)"
sudo -E ./install.sh --yes \
--restore-from minio --restore-endpoint 198.51.100.20:9100 --restore-secure \
--restore-bucket qubesight-worm
All restore options, the SFTP variant and the cluster cases are on Restore from a backup.
Prepare only, start later¶
--no-start writes .env and secrets/ and exits without starting anything, for example to review the configuration or to bake an image:
Verification¶
The command exits with status 0 after the services are healthy and the API readiness endpoint answers. A failed administrator sign-in check, an SFTP location that could not be saved or an embedded model that could not be provided only print a warning, so read the output. Check afterwards:
All long-running services show healthy (Vector shows running; the one-shot data-init, and minio-init when MinIO is on, exit with code 0).
Limitations¶
- Secrets passed with
--cold-secret-keyare visible to local users throughps; prefer the environment variable. - With
--yesand an unanswered virtual-IP question, no virtual IP is configured. - 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.