Skip to content
GenerateDocs
What's new
Install and upgradeAir-gapped install
On this page

Install Generate air-gapped, with no network access

Prepare a disconnected machine, verify and carry in the bundle, site package and model pack, install Generate offline, report status and upgrade it.

EditionsEnterprise: not availableConsumer: not availableStorage: not availableHealthcare: not availableAirgapped: available
Who can do thisAn administrator whose portal account can request install grants and enter receipts, with sudo on the offline machine.
WhereA terminal on the offline machine, and the Iterate portal on a connected computer.

This page takes you through installing, reporting on and upgrading a Generate site on a single machine with no internet access.

The installer makes no network call at all: any attempt is treated as a failure, not a fallback.

Carry everything the site needs onto the machine and install it offline. The machine must meet the requirements.

  1. Download the installer

    On the connected computer, in the portal, open Releases, then the release, and on the linux/amd64 row download the installer with its SHA256SUMS, .sig and .pem files.

  2. Add a GPU driver, if the machine needs one

    On RHEL with a GPU and no working driver, also download the release bundle in step 1, carry it in with the installer, unpack it into bundle and run the command below. It stops once for a reboot, after which you run it again.

    Terminal window
    sudo ./generate gpu-driver --bundle bundle

    On a host your own team configures, add --stig-profile managed. The command then installs only the driver’s own packages from the bundle, and first names any build tool you must install from your RHEL repositories.

  3. Name the machine

    Carry the installer to the machine and run this. Copy the line that starts with gmc1.

    Terminal window
    sudo ./generate machine-code
  4. Create the site and get a grant

    In the portal, choose New site, paste the line, choose Air-gapped, your own domain, TLS byo, and a model (or none, to add one later in Admin settings, then Models). When the site is ready, ask for a grant and download it. The next two steps must finish within 48 hours.

  5. Download the site’s files

    On the site’s page, under Air-gapped downloads, take the release bundle generate-airgap-linux-amd64.tar, the model pack model-pack.tar if the site serves a model on the machine, and the site package site-package-<site id>-<release>.tar, with their checksum and signature files.

  6. Verify them

    On the connected computer, check each file with cosign verify-blob and sha256sum -c, as the portal’s guide shows. Every command must succeed before you carry anything in.

  7. Carry everything in and install

    Copy the grant, site package, bundle, model pack, tls.crt and tls.key to the machine and unpack the bundle and model pack. On Ubuntu, mask the services that try to reach the internet first; on RHEL, mask the package cache refresh. Then run the install, leaving out --model-pack if the site serves no model:

    Terminal window
    sudo ./generate install --grant generate-grant-<id>.json \
    --site-package site-package-<site id>-<release>.tar \
    --bundle bundle --model-pack model-pack \
    --tls-cert tls.crt --tls-key tls.key

    On a RHEL STIG machine, or a machine whose network overlaps the cluster’s, see Install options first.

  8. Enter the receipt

    The install ends by printing a receipt code and a QR code. In the portal, open the site’s Machine tab and choose Enter receipt.

  9. Sign in and register a tenant

    Read the administrator password from the site’s admin-initial-credentials secret, open https://<your domain>/tenant-register/login, sign in as admin and choose Register a tenant. Download the owner’s credentials file at once, because its link works once, for 10 minutes, and give it to the owner.

Before installing, the installer checks offline that the grant belongs to this machine, that the site package matches the grant, that the bundle and model pack are signed by Iterate’s release pipeline and unchanged, that the certificate matches its key, and that each of the site’s names resolves. A refusal names what is wrong; fix it and run the same command again.

Resolve the site’s names without internal DNS

Section titled “Resolve the site’s names without internal DNS”

Let the install and every browser find the site on a network with no internal DNS.

  1. Add the names to the machine’s hosts file

    The install checks that your domain and its genui. and files. names resolve, and reads /etc/hosts first. Before you install, add one line with the machine’s own address:

    Terminal window
    echo "<box IPv4> <your domain> genui.<your domain> files.<your domain>" | sudo tee -a /etc/hosts
  2. Add the same line on every computer that opens the app

    Edit /etc/hosts on Linux and macOS, or C:\Windows\System32\drivers\etc\hosts on Windows, as administrator.

Carry out what Iterate support needs when the install still fails.

  1. Write the support file

    On a machine installed with --distribution rke2, give --kubeconfig /etc/rancher/rke2/rke2.yaml instead.

    Terminal window
    sudo ./generate diagnose --namespace <site id> --kubeconfig /etc/rancher/k3s/k3s.yaml --out generate-support.txt
  2. Carry it out to Iterate support

    Copy generate-support.txt to a connected computer and send it.

The portal cannot reach the site, so you send its status after each install or upgrade, and whenever Iterate asks.

  1. Export the status

    Terminal window
    sudo ./generate status --export site-status.json
  2. Upload it in the portal

    Carry the file to a computer that reaches the portal, open the site’s Overview and choose Upload status file.

Move the site to a newer release with a delta package.

  1. Enter your current receipt

    Enter the receipt of your current install in the portal, if you have not.

  2. Download the upgrade files

    On the site’s page, ask for a grant for the newer release and download it, the installer, the delta package generate-delta-linux-amd64.tar, the new site package and, if listed, a model pack.

  3. Verify and carry them in

    Verify them as before and carry them into a new folder on the machine. Unpack the delta package into delta.

  4. Run the upgrade

    Add --model-pack model-pack only if you downloaded one.

    Terminal window
    sudo ./delta/bin/generate-linux-amd64 upgrade --grant generate-grant-<id>.json --site-package site-package-<site id>-<release>.tar --bundle delta
  5. Enter the new receipt

    Enter the receipt the upgrade prints in the portal.

A site package for an older release than the one installed is refused. The machine’s own Kubernetes cannot yet be upgraded offline.

Swap the certificate before it expires.

  1. Copy the new pair onto the machine

    Save them as tls.crt and tls.key.

  2. Run tls renew

    Terminal window
    sudo ./generate tls renew --tls-cert tls.crt --tls-key tls.key

Install on a RHEL STIG host whose hardening and settings your own team applies, so that the installer changes none of the host’s configuration.

  1. Prepare the host

    Apply each item in Host prerequisites through your own change process. After each edit to a NetworkManager or fapolicyd file, reload that service.

  2. Check the host

    With the grant, site package and unpacked bundle on the machine, run preflight. It lists every missing prerequisite in one run, each with the file content or command that satisfies it, and changes nothing.

    Terminal window
    sudo ./generate preflight --grant generate-grant-<id>.json \
    --site-package site-package-<site id>-<release>.tar \
    --bundle bundle --stig-profile managed
  3. Run the install as a service

    Run it when preflight refuses nothing. Leave out --model-pack model-pack if the site serves no model.

    Terminal window
    sudo systemd-run --unit=generate-install --working-directory="$PWD" /bin/bash -c \
    './generate install --grant generate-grant-<id>.json \
    --site-package site-package-<site id>-<release>.tar \
    --bundle bundle --model-pack model-pack --tls-cert tls.crt --tls-key tls.key \
    --stig-profile managed'
    sudo journalctl -fu generate-install -o cat
  • RHEL STIG: add --distribution rke2 --hardening stig --stig-profile existing, and run the command as a systemd-run service, because the STIG ends a login session after 10 idle minutes. Follow it with sudo journalctl -fu generate-install -o cat, which you can leave and restart at any time. The install ends with a STIG scan whose results stay in /var/lib/generate/stig.
  • --stig-profile apply: set a password for your admin account first with sudo passwd <account>. The STIG removes passwordless sudo, so an account with no password loses root.
  • --stig-profile managed: for a RHEL STIG host your own team configures. Add --stig-profile managed alone, since it implies --distribution rke2 and --hardening stig, and run the install as a systemd-run service as for the STIG. The installer installs no package and changes no sysctl, firewall, NetworkManager, fapolicyd or SELinux setting. It checks each item in Host prerequisites instead, and refuses before it writes anything where one is missing.
  • Overlapping networks: if the machine’s own network falls inside 10.42.0.0/16 or 10.43.0.0/16, add --cluster-cidr and --service-cidr with two unused networks, as on a connected install.

With --stig-profile managed, preflight and the install check each item below and refuse, naming the file content or command, where one is missing. Each check reads both the running state and what a reboot would load. You may use any file name; the ones shown are those preflight names. The firewall values are for the default pod and service networks, 10.42.0.0/16 and 10.43.0.0/16, and preflight names yours where you set --cluster-cidr and --service-cidr.

Check Why Generate needs it What satisfies it
host packages rhel-base python3.12 runs the installer’s scripts, which RHEL 9’s own python3 cannot; policycoreutils labels the folders containers write sudo dnf install -y policycoreutils python3.12 from your RHEL repositories
host packages rhel-selinux, where SELinux is not disabled rke2-selinux requires container-selinux, and semanage from policycoreutils-python-utils adds the file context rules below sudo dnf install -y container-selinux policycoreutils-python-utils
host rke2-selinux, where SELinux is not disabled RKE2’s SELinux policy, version 0.24, signed by Rancher’s key C8CFF216455126E9B9C918BE925EA29AE257814A rpm --import of the key file in the bundle, then dnf install -y of the RPM in the bundle; preflight names both files
host packages longhorn-host Longhorn attaches volumes through the iSCSI initiator and device-mapper sudo dnf install -y iscsi-initiator-utils device-mapper
host packages nfs-client, where the site mounts an NFS export The kubelet mounts NFS with the host’s mount.nfs sudo dnf install -y nfs-utils
host packages nvidia-toolkit, with a GPU The NVIDIA Container Toolkit, version 1.20.1 or later, lets containers use the GPU rpm --import of NVIDIA’s key in the bundle, then dnf install -y of the toolkit RPMs in the bundle; preflight names the files
host sysctl for vm.panic_on_oom, vm.overcommit_memory, kernel.panic and kernel.panic_on_oops RKE2’s CIS profile refuses to start without them The lines in /etc/sysctl.d/zz-generate.conf below, then sudo sysctl --system
host sysctl net.ipv4.conf.all.forwarding Pods route through the host; net.ipv4.ip_forward = 1 also passes The same file
host sysctl for fs.inotify.max_user_instances and fs.inotify.max_user_watches RKE2, the kubelet and the site’s pods run out of file watchers at the kernel’s defaults The same file
host etcd user RKE2’s CIS profile runs etcd as the etcd user and group sudo useradd -r -c "etcd user" -s /sbin/nologin -M -U etcd
host networkmanager, where NetworkManager is installed NetworkManager would otherwise manage the pod network’s interfaces and break pod networking /etc/NetworkManager/conf.d/rke2-canal.conf below, then sudo systemctl reload NetworkManager
host iscsi Longhorn needs the iscsi_tcp module loaded and iscsid running, after every reboot too /etc/modules-load.d/iscsi_tcp.conf holding the line iscsi_tcp, then sudo modprobe iscsi_tcp and sudo systemctl enable --now iscsid
host firewalld, where firewalld runs Pods and services reach each other across the two networks sudo firewall-cmd --permanent --zone=trusted --add-source=10.42.0.0/16, the same for 10.43.0.0/16, then sudo firewall-cmd --reload. Any zone whose target is ACCEPT passes, and no port is asked for
host fapolicyd, where fapolicyd runs fapolicyd would block the installer’s tools, the downloads in its work folder /var/lib/generate/work, the rke2 binary and RKE2’s own folders, whose rules RKE2’s install script writes on any other machine; its default subject cache fills once the site’s containers run /etc/fapolicyd/rules.d/35-generate.rules below and subj_cache_size = 8192 or more in /etc/fapolicyd/fapolicyd.conf, then sudo fagenrules --load and sudo systemctl restart fapolicyd
host file context <folder>, where SELinux is not disabled A container writes only to a folder labelled container_file_t. The installer applies your rule with restorecon when it creates the folder sudo semanage fcontext -a -t container_file_t '<folder>(/.*)?' for /var/lib/generate/registry, /var/lib/generate-collector, /var/lib/rancher/rke2/storage/sandbox-shared where the site has a sandbox, and /var/lib/rancher/rke2/storage/rwx-<site id>-<volume> for each shared volume; preflight lists the site’s folders
host gpu driver, with a GPU and no working driver The installer builds no driver on a host you configure sudo ./generate gpu-driver --bundle bundle --stig-profile managed, then reboot and run the install again

The sysctl file holds these lines:

vm.panic_on_oom = 0
vm.overcommit_memory = 1
kernel.panic = 10
kernel.panic_on_oops = 1
net.ipv4.conf.all.forwarding = 1
fs.inotify.max_user_instances = 8192
fs.inotify.max_user_watches = 524288

Its name sorts after a STIG image’s own 99- files. Where a file read after it sets one of these keys to another value, change that file instead.

/etc/NetworkManager/conf.d/rke2-canal.conf:

[keyfile]
unmanaged-devices=interface-name:flannel*;interface-name:cali*;interface-name:tunl*;interface-name:vxlan.calico;interface-name:vxlan-v6.calico;interface-name:wireguard.cali;interface-name:wg-v6.cali

/etc/fapolicyd/rules.d/35-generate.rules:

allow perm=any all : dir=/var/lib/generate/bin/
allow perm=open exe=/var/lib/generate/bin/oras : all
allow perm=execute all : path=/usr/local/bin/rke2
allow perm=execute all : path=/opt/rke2/bin/rke2
allow perm=any all : dir=/var/lib/generate/work/
allow perm=any all : dir=/var/lib/rancher/
allow perm=any all : dir=/opt/cni/
allow perm=any all : dir=/run/k3s/
allow perm=any all : dir=/var/lib/kubelet/

Preflight reads NetworkManager’s and fapolicyd’s configuration from disk, not what each service has loaded. Reload NetworkManager and fapolicyd after each edit, or preflight passes and the install fails when RKE2 starts.

FIPS mode off, or SELinux permissive or disabled, does not stop the install. Preflight passes the fips and selinux checks and says what the site loses. Without FIPS, the site’s cryptography is not FIPS-validated, and the FIPS entries of the STIG deviation list do not describe the machine. Without SELinux enforcing, containers run without per-pod MCS labels, which the sandbox relies on in place of gVisor. With FIPS on, preflight also refuses an account whose SSH keys are all Ed25519, which sshd then refuses; with FIPS off it skips that check.

The install ends with the STIG scan where oscap and the SCAP Security Guide are on the host. It keeps the results in /var/lib/generate/stig and lists each failed rule the deviation list does not name, but it reports and never fails the install. Where they are absent, it says the scan was skipped; install the packages it names and run sudo ./generate stig scan later.

  • RKE2: its binaries under /usr/local/bin or /opt/rke2/bin, the rke2-server service and its unit files under /usr/local/lib/systemd/system, /usr/local/share/rke2, everything under /etc/rancher/rke2, /etc/rancher/node and /var/lib/rancher/rke2, and the pod network’s configuration under /etc/cni/net.d.
  • Kernel settings RKE2 sets while it runs, never in a sysctl file, so a reboot without RKE2 drops them: the bridge netfilter settings, net.ipv4.conf.all.route_localnet and two conntrack timeouts.
  • The registry fence: the script /usr/local/lib/generate/box-registry-firewall.sh and the unit /etc/systemd/system/generate-box-registry-firewall.service. At every boot it adds the iptables chain GENERATE-BOX-REGISTRY and one INPUT rule for TCP port 5000, so only the machine and its pods reach the in-box registry. Without it any host on your network could pull the site’s images.
  • /var/lib/generate: the installer’s tools, the hardening record, the STIG results, the work folder /var/lib/generate/work (emptied after each run) and the site’s data folders.
  • /var/lib/longhorn.
  • /var/lib/generate-collector, where the collector keeps its log offsets.
  • The SELinux label on each folder in host file context, from your own rule, applied with restorecon right after the installer creates the folder. Where SELinux is disabled, it skips this.

A machine installed with --stig-profile existing or apply moves to managed when you run the installer with --stig-profile managed. Nothing the earlier runs wrote is removed. Finish any upgrade-host that steps RKE2 through more than one minor version before you move it: an older installer cannot read the managed record, and only an older installer may carry an intermediate RKE2 version. A managed machine cannot move back, so a run asking for existing or apply is refused.

The site behaves as the enterprise edition without anything that needs the internet: connectors, connected data sources, web search, the live browser, cloud warehouse connections, automatic identity management, resending invitations and sending feedback. Cloud model providers are refused, so the site runs on a model served on the machine or on an endpoint inside your own network. No email leaves the site, so new users receive a one-time credentials file from an administrator instead of an invitation. Alerts stay in the site’s own monitoring. A second file system for disaster recovery is built only beside the FSx for ONTAP system of a site Generate hosts in AWS, so an air-gapped site has none.

Workflow run traces go nowhere unless the site descriptor names an endpoint inside your network in telemetry.tracesEndpoint. The traces then travel through the site’s collector, so the install refuses that setting unless telemetry.export is true or the site claims local monitoring. A trace carries ids and timings only, never prompts, outputs or file contents.

Requirement What the installer accepts
Operating system Ubuntu 22.04 or 24.04 on amd64, or RHEL 9.7 or 9.8 on amd64 hardened to the DISA STIG with FIPS on. With --stig-profile managed, FIPS and SELinux enforcing are your choice, and the host meets the host prerequisites
Size At least the size the portal shows for the site; the size table is on the install page
Access A user that can run sudo; on RHEL, an RSA or ECDSA SSH key, because FIPS mode refuses Ed25519 keys
GPU, for a model served on the machine An NVIDIA GPU. On Ubuntu its driver must already work; on RHEL with no driver, the installer can add one from the bundle
Disk Free space for the bundle and any model pack twice over
Certificate A certificate and key in PEM from your own authority, covering your domain and its genui. and files. names, or the domain and *.<your domain>
Names Your DNS answering those names with the machine’s address, or the names in each computer’s hosts file
Transfer A connected computer with cosign and sha256sum, and media to carry files

Last updated on