Host on your own machine
Install Hermitbox on my Linux machine with cloud-init.
Deploy Hermitbox on a Linux machine with a persistent disk by supplying the shipped
cloud-init user data. It runs the installer
and hermitbox up --image once as root, keeping state on the machine’s disk.
Install with cloud-init
- Create the machine from an image that runs cloud-init. CI boots Ubuntu 24.04 and 26.04 with this file.
- Supply user-data.yaml as its user data.
The installer puts only the CLI on the machine, and
hermitbox up --imageruns the release image as thehermitbox-imagesystemd service. - Find the key in the service journal: the image prints
apiKeyonce, on its first successful start.
sudo journalctl -u hermitbox-imageVerify and connect
On the machine:
curl -fsS http://127.0.0.1:8080/healthzIt answers with "status":"ok".
The service endpoint is HTTP, and its default origin is loopback. Reach the welcome page through
an SSH tunnel, then open http://127.0.0.1:8080 on your own computer:
ssh -L 8080:127.0.0.1:8080 <user>@<machine-address>The welcome page shows the key location and the configured tier. Enter the key there, then choose a caller guide.
Machine notes
This is the server installation of the release image. It installs Docker and its host firewall
policy, and the image uses the container tier, refusing a missing policy. On x86_64 it also
registers gVisor’s runsc with Docker.
A public HTTPS deployment needs your own DNS and TLS setup and HERMITBOX_PUBLIC_URL. This file
doesn’t invent a domain or weaken TLS. No cloud-init provider or operating system can allocate a
verified domain for a machine from this repository alone.
This path needs root, systemd, Docker and the host firewall policy. On a host without them, the installer selects a preset that fits, an ordinary user’s included. A requested capability the host lacks is refused.
Keep the state directory. See operations, Host on a server with root for the server preset without the image, and cloud-init runcmd.
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me