tabbify.io
Documentation
Product directionEDGE BOX
ReferenceArchitecture

Run apps on your own machine

An environment can run apps on a server you own, not only on Tabbify's machines. The server runs the supervisor, the program that starts each app as a Firecracker microVM, and joins the environment's private mesh. This page shows how to put it there.

The machine needs Linux on x86_64 with KVM (/dev/kvm), systemd or NixOS, and a network connection that can reach get.tabbify.io. The apps' disks live in the supervisor's data directory, which must not be on the root filesystem: mount a separate data disk at /data (the installer uses /data/tabbify-data). A machine with only one disk says so with SUPERVISOR_ALLOW_ROOT_DATA_DIR=true (below). If you only want the machine on the private network, without running apps, choose Mesh only in the form below instead; the steps are the same.

Get an install command

Everything starts in the console: your environment's settings under Workspaces, the Hosts tab, Add host.

  1. Name the host (optional) and choose Run apps.
  2. Select Issue join pass. The console shows the install command once.
  3. Run it on the machine as shown below. The command carries a one-time pass, not a long-lived key. The pass works once and expires in one hour; the installer trades it for the machine's own credential, which never appears on your screen, in your clipboard or in a shell history.

If the pass is refused or you lose it, issue a new one. A pass cannot be reused.

Three ways to install

Every download comes from get.tabbify.io. The installer checks the checksums of what it downloads before it installs anything.

Linux, one command

For Ubuntu, Debian, Fedora, RHEL or any other Linux with systemd, on x86_64:

curl -fsSL https://get.tabbify.io/supervisor | sudo TABBIFY_JOIN_PASS='<one-time pass>' sh

The console fills in the pass. On a machine with only one disk, add SUPERVISOR_ALLOW_ROOT_DATA_DIR=true after sudo in the command; without it the installer stops and says how to move the data directory.

Linux, read the script first

The same installer, downloaded and read before it runs:

curl -fsSLo tabbify-install.sh https://get.tabbify.io/supervisor
less tabbify-install.sh
sudo TABBIFY_JOIN_PASS='<one-time pass>' sh tabbify-install.sh

NixOS

On NixOS the supervisor is a module. The console's NixOS tab gives one command that does all of this as root, and stops without changing anything if a Tabbify node is already on the machine (/etc/tabbify/supervisor.env exists):

  1. writes the pass into /etc/tabbify/supervisor.env, readable by root only;
  2. downloads the module from https://get.tabbify.io/supervisor/tabbify-node.nix into /etc/nixos;
  3. adds ./tabbify-node.nix to the imports of /etc/nixos/configuration.nix;
  4. runs nixos-rebuild switch.

The module keeps its data in /opt/tabbify/data. Unless /opt/tabbify is on a disk of its own, add SUPERVISOR_ALLOW_ROOT_DATA_DIR=true as a line of /etc/tabbify/supervisor.env and run nixos-rebuild switch again: the supervisor refuses a data directory on the root filesystem otherwise.

The module loads kvm-intel. On an AMD machine change that to kvm-amd in /etc/nixos/tabbify-node.nix and run nixos-rebuild switch again.

The module trades the pass for the host's credential before the supervisor starts. If the pass was refused, the exchange unit fails with the reason in journalctl -u tabbify-redeem-pass and nothing keeps retrying; remove /etc/tabbify/supervisor.env, issue a new pass and run the command again.

Check that it worked

The host shows up in the Hosts tab of the environment once the supervisor has started, and on the machine systemctl status tabbify-supervisor (on NixOS the same unit name) says it is running. From then on the environment can place apps on it.

Other ways in