Skip to the content

Run Central Lite on a cloud VM

Put Central Lite on one Google Cloud VM with its deployment script, and work through its setup checklist until it reads 8 of 8.

Built, not yet claimed preview: this guide describes a package that has not passed its release gate.

Run Central Lite on one Compute Engine VM with the deployment script: a browser-trusted certificate, the first admin with two passkeys, backups copied offsite, an uptime check and a disk alert, a copy of the keystore kept offline, and the first node reporting. Central's setup checklist, in the console and at the command line, ticks each item as you do it.

1. Read the setup checklist

Central reads its own setup into eight items, in the order to do them: a browser-trusted certificate and its renewal, the first admin with two passkeys, backups with a copy offsite, an uptime check and a disk alert, the first enrolment token, the first node reporting, a copy of the keystore kept offline, and the org root's type. Each is Done, To do, or Needs attention when it was done and needs a look now, such as a certificate with a third or less of its life left or a backup older than two days. Only done items count.

The console shows the Set up this Central card above the inventory until every item is done. garm-central setup show prints the same list, then N of 8 done and the next item with a link to its section of Finish setting up Central Lite, which covers each item on any host. This guide does each one on the VM.

garm-central setup show

Checked by the walk: this command ran as written on a Central Lite host, and the output showed of 8 done.

2. Create the VM and give it a browser-trusted certificate

From a machine signed in to your Google Cloud project, deploy/gcp/central.sh up creates the VM and everything around it: its own network, a static IP, a state disk that outlives the VM, and a backup bucket the VM can add to but never delete from. Every image is pinned by digest in deploy/gcp/central.pins, which central.sh pin writes from the registry, and the first up refuses to run until you accept the ACME CA's terms; later ones read your contact and that acceptance back from the VM, so an upgrade is pin, a commit and up. Point your hostname at the IP it prints, then create the org with init.

central.sh cert has a certificate issued for Central's own key, so browsers trust the console and nodes keep the key they pin. A daily job renews it when a third or less of its life is left.

deploy/gcp/central.sh pin image us-central1-docker.pkg.dev/my-project/central/garm-central:0.1.0
deploy/gcp/central.sh pin helpers
ACME_EMAIL=ops@example.com ACME_AGREE_TOS=yes deploy/gcp/central.sh up
deploy/gcp/central.sh init
deploy/gcp/central.sh cert

3. Register the first admin and a second passkey

central.sh run -- admin bootstrap prints a one-time code; open the console and register the first admin with it. The checklist counts this item done once an admin holds two passkeys, because losing the only one locks the console: add the second from the account menu.

deploy/gcp/central.sh run -- admin bootstrap

4. Choose the org root

central.sh run -- root lite installs Central Lite's 1-of-1 root, held in software custody. The checklist marks it Needs attention: it is for evaluation only. Before production, hold the root ceremony and install a 2-of-N root, which the checklist counts as done.

deploy/gcp/central.sh run -- root lite

5. Check backups and their offsite copy

Central writes an encrypted backup every day, and the VM copies new backups to the bucket every hour. After each successful copy the job runs garm-central setup report offsite-copy, so the checklist knows the copy's age. The item needs attention when the newest backup or the newest copy is more than two days old, or when no copy has been reported. A report prints recorded.

garm-central setup report offsite-copy

Checked by the walk: this command ran as written on a Central Lite host, and the output showed recorded.

6. Create the uptime check and the disk alert

central.sh alerts creates an email channel, an uptime check against the console's port with an alert when it fails, and an alert when a disk passes 80% (DISK_ALERT_PERCENT). Both stay within the free allowances at this size. It then runs garm-central setup report alerts on the VM, which prints recorded and ticks the item.

ALERT_EMAIL=ops@example.com deploy/gcp/central.sh alerts
garm-central setup report alerts

Checked by the walk: this command ran as written on a Central Lite host, and the output showed recorded.

7. Copy the keystore offline and confirm it

Copy the keystore, /mnt/disks/central/volume/state/keys/ on the VM, to storage under your own custody, offline and never to the backup bucket: a restore after a lost disk needs it, and the bucket's backups open with no other key. Central can't see that copy, so an owner confirms it: Confirm on the checklist, with a passkey, or garm-central setup confirm keystore-copy. Either is chained in Central's audit log; the command prints confirmed and chained.

garm-central setup confirm keystore-copy

Checked by the walk: this command ran as written on a Central Lite host, and the output showed confirmed and chained.

8. Enrol the first node

Create an enrolment token in Enrolment, or with central.sh run -- token create, and enrol a machine with it, as the guide below shows. The token item is done once a token exists, and the last one once a node has sent its first report. central.sh status ends with the checklist.

deploy/gcp/central.sh run -- token create
deploy/gcp/central.sh status

See also

Enrol developer machines

Enrol a machine in Central Lite with a one-time token that pins Central Lite's key, see it report in the inventory, and let its users enrol presence keys.