# Installing groundSwXtch Air-Gapped > [!NOTE] > **WHAT TO EXPECT** > > In this article, users will learn how to install a groundSwXtch onto a host with no internet access at all (fully air-gapped), by pre-staging the installer, images, and Docker itself on a separate internet-connected staging host and carrying them across on physical or offline media. > For the standard, internet-connected install path, see the [Installing groundSwXtch](installing-groundswxtch.md) article. ## Prerequisites What is needed: - A staging host with internet access (does not need to be on the same network as the air-gapped target, and does not need a GitHub account, an Azure account, the Azure CLI, or `docker login`). - The air-gapped target VM/hardware, running Ubuntu 24.04, with no internet access. - The ability to physically transfer files between the two (USB drive, offline media, or a controlled one-way transfer process). - Docker on the air-gapped target (see STEP ONE and STEP FIVE). The staging host only needs internet access: the installer installs Docker there automatically if it is missing. ## STEP ONE: Build and download an offline Docker bundle (on the staging host) Skip this step if Docker is already installed and running on the air-gapped target. Otherwise, build an offline Docker bundle on the staging host by following [Build an offline Docker CE bundle](/cloudswxtch/5.0/how-tos/os-and-environment/docker-and-kubernetes/how-to-install-docker-on-rhel-and-ubuntu/#build-an-offline-docker-ce-bundle-on-a-staging-host-with-internet-access) in [How to Install Docker on RHEL and Ubuntu](/cloudswxtch/5.0/how-tos/os-and-environment/docker-and-kubernetes/how-to-install-docker-on-rhel-and-ubuntu/). ## STEP TWO: Fetch the installer script and images (on the staging host) groundSwXtch images are distributed over HTTPS from an Azure Blob container, using a read-only SAS token built into `install-groundswxtch.sh`. No GitHub account, Azure account, Azure CLI, or `docker login` is required. Do not use `docker pull ghcr.io/...` directly: that path needs separate GHCR credentials that most installations don't have. ```shell BLOB_BASE="https://swxrkdistribution.blob.core.windows.net/swxcontainer01" RO_SAS='sp=rl&st=2026-05-21T21:40:09Z&se=2027-05-23T05:55:09Z&spr=https&sv=2026-02-06&sr=c&sig=HA9RA9sUQwLBKfePWwB3UhLKGlvtJgoT6z2bCU1Kb6k%3D' curl -fL "${BLOB_BASE}/install-groundswxtch.sh?${RO_SAS}" -o install-groundswxtch.sh chmod +x install-groundswxtch.sh ``` Fetch the image. Replace `` with the target release version (see the example below): ```shell sudo ./install-groundswxtch.sh gswx-fetch --image-tag groundswxtch: ``` Example: ```shell sudo ./install-groundswxtch.sh gswx-fetch --image-tag groundswxtch:v1.1.1 ``` Optional but recommended: fetch swx-tools. ```shell sudo ./install-groundswxtch.sh swx-tools-fetch ``` The following steps use v1.1.1. If a different version was fetched, change it in the commands. ## STEP THREE: Export the loaded images to tarballs Confirm the exact local tags before saving: ```shell docker image ls | grep -E 'groundswxtch|swx-tools' docker save groundswxtch:v1.1.1 | gzip > groundswxtch-v1.1.1.tar.gz docker save swx-tools:1.0.0 | gzip > swx-tools-1.0.0.tar.gz # if fetched ls -la *.tar.gz ``` > [!CAUTION] > **IMPORTANT** > > Sanity-check the resulting file sizes — they should be hundreds of MB. A tarball of only a few dozen bytes means `docker save` failed (usually because the tag didn't match what was actually loaded) and gzip silently wrapped an empty stream into a small but valid-looking `.gz` file. ## STEP FOUR: Transfer everything across the air gap Carry all of the following together, using the approved offline transfer method: - `install-groundswxtch.sh` - `groundswxtch-v1.1.1.tar.gz` - `swx-tools-1.0.0.tar.gz` (if fetched) - `docker-offline-bundle.tar.gz` (if Docker is not already installed on the target) ## STEP FIVE: Install Docker on the air-gapped host Skip this step if Docker is already installed and running. Otherwise, install Docker from the bundle built in STEP ONE by following [Install Docker CE on the air-gapped host](/cloudswxtch/5.0/how-tos/os-and-environment/docker-and-kubernetes/how-to-install-docker-on-rhel-and-ubuntu/#install-docker-ce-on-the-air-gapped-host) in [How to Install Docker on RHEL and Ubuntu](/cloudswxtch/5.0/how-tos/os-and-environment/docker-and-kubernetes/how-to-install-docker-on-rhel-and-ubuntu/). ## STEP SIX: Load the images and launch groundSwXtch ```shell chmod +x install-groundswxtch.sh sudo docker load < groundswxtch-v1.1.1.tar.gz sudo docker image ls | grep -E 'groundswxtch|swx-tools' # confirm both tags are present sudo ./install-groundswxtch.sh gswx-run --image-tag groundswxtch:v1.1.1 ``` > [!NOTE] > **NOTE** > > These commands are shown with `sudo`. If the user is in the `docker` group, `sudo` can be omitted; use the same form on each host. To also bring up swx-tools for testing: ```shell sudo docker load < swx-tools-1.0.0.tar.gz sudo ./install-groundswxtch.sh swx-tools-run --network host ``` Check that both groundSwXtch and swx-tools are running: ```shell docker ps ``` There should be a line with the name `gswx`. For example: ```plaintext CONTAINER ID IMAGE COMMAND CREATED STATUS NAMES 9f9340d96e51 groundswxtch:v1.1.1 "groundswxtchd" 2 minutes ago Up 2 minutes gswx bef02c5593e1 swx-tools:1.0.0 "sleep infinity" 4 minutes ago Up 4 minutes swx-tools ``` ## STEP SEVEN: License the groundSwXtch Licensing works fully offline: getting the fingerprint and reloading the license both use only the container's local API. The `license.key` file is exchanged with swXtch.io out of band (for example, by email); it is not fetched automatically. To license the groundSwXtch, see [How to License the groundSwXtch](licensing-groundswxtch/how-to-license-the-groundswxtch.md) (its [command-line alternative](licensing-groundswxtch/how-to-license-the-groundswxtch.md#alternative-license-from-the-command-line) needs no browser). > [!NOTE] > **NEXT STEPS** > > The groundSwXtch is ready to use. The next step is to install at least one more groundSwXtch to connect one on-premises network to another.