Bare metal & on-prem platform
The machines platform ships your software to Linux machines that you or your customers run, with no Kubernetes and no cloud account. Someone runs one command on each machine, and every new version you ship after that reaches it without them.
This page is the platform reference. For a walkthrough from an empty directory to a running machine, see the quickstart.
Architecture diagram. Alien manages 3 remote environments: machine-1 (customer-3 rack), https 443, outbound; machine-2 (customer-3 rack), https 443, outbound; machine-3 (customer-3 rack), https 443, outbound.
Each machine runs the machine agent, a systemd service that connects out to Alien over HTTPS and runs the workloads Alien places on it. This is pull: the machine agent fetches each release, and nothing connects into the customer's network.
A deployment goes through initial setup, then ongoing management:
- Initial setup: the admin creates the deployment and runs the join command on each machine, with root or
sudo. - Ongoing management: everything after. Alien places your workloads on the joined machines and rolls out each release without the admin. Machines keep running if the connection drops.
How the admin reaches initial setup is your Deployment UX choice: a link you send, a Deploy button in your product, or your own setup screen. What happens on the machines is the same either way, and this page follows it from requirements to removal.
This platform fits software that needs the machine itself: sandboxes with nested virtualization, high-throughput processing on local disks, or anything next to existing on-prem systems.
For employee laptops and workstations, the local platform runs a Daemon, a long-running process, under supervision on the device.
What the customer needs
- Linux machines with systemd, on
x86_64orarm64, with root orsudo. See Machine requirements. - UDP
51820open between the machines, and outbound HTTPS to Alien. - No Kubernetes and no cloud account.
Describe what runs in alien.ts
Add machines to your stack's platforms, declare a ComputeCluster pool with the hardware each machine must have, and add the workloads that run on it. These machines run Daemon resources and stateless Container resources. See Workloads.
import * as alien from "@alienplatform/core"
const hosts = new alien.ComputeCluster("hosts")
.pool("general", {
requirements: {
cpu: 4,
memory: "16Gi",
ephemeralStorage: "100Gi",
dataDisk: { size: "200Gi" },
},
scale: { type: "fixed", machines: 3 },
})
.build()
const agent = new alien.Daemon("agent")
.code({ type: "image", image: "ghcr.io/acme/agent:2.1.0" })
.cluster("hosts")
.cpu(1)
.memory("1Gi")
.build()
export default new alien.Stack("acme-edge")
.platforms(["machines"])
.add(hosts, "frozen")
.add(agent, "live")
.build()On these machines, a pool is a label. Each machine picks one when it joins, and Alien doesn't add or remove machines.
dataDiskrequires an extra empty disk on every machine.- The build rejects Worker, Build, ServiceAccount, and stateful Container resources for
machines(MACHINES_UNSUPPORTED_RESOURCE), and public endpoints on Containers. - Only a Daemon with
runtime.networkMode: "host"can have a public endpoint. It serves HTTPS on port 443 of the machine itself, with the certificate Alien issues. See Domains and TLS.
Create the deployment
For a customer, create a setup link that allows the machines platform. The admin opens it in the deployment portal, the branded setup page Alien hosts for them:
alien onboard customer-3 --allow admin@customer-3.com --platforms machinesIn the portal, the admin:
- Picks On-prem, then Compute → Your machines.
- Clicks Set up machines.
- Copies the join command from the Connect machines panel. Generate new command issues a fresh one.
For your own machines, start the deploy flow from Deploy on the project Overview, choose Deploy to your environment, then On-prem → Your machines. See Add to your product for the customer flow.
From the CLI:
alien deploy --name eu-edge --machinesThis creates the deployment, in a deployment group of the same name, and prints the join command. Until the first machine joins, the deployment status is Waiting for machines.
The project needs a release first, and its CLI setup package must be built with Linux · x64. Otherwise creation fails with PLATFORM_READINESS_FAILED and names the missing check.
Join a machine
Run the same command on each Linux machine. It works for up to 100 machines for 7 days:
curl -fsSL '<install-url>' | sudo bash -s -- join --token '<join-token>'The script installs your setup CLI and runs join. The setup CLI is the alien-deploy binary, white-labeled under your command name (here acmectl) as a setup package. join:
- Checks the machine. See Machine requirements.
- Installs the machine agent as the
alien-machine.servicesystemd unit. - Waits up to 120 seconds for the machine to register.
Running the same command again on a joined machine changes nothing. A machine already joined to another deployment must leave first.
join flag | Description |
|---|---|
--token, --token-file | The join token (aj1_...) |
--capacity-group | The pool this machine joins. Defaults to the only pool, or general. |
--zone | A physical or logical zone label for the machine |
--network-interface | The interface to advertise to other machines |
--public-ip | The IP that public endpoint DNS points to. A VPN-reachable private IP works. |
--wireguard-endpoint | The IPv4:port other machines use to reach this one |
--dry-run | Print the join plan without installing anything |
A join token works for up to 100 machines and expires 7 days after it was created, whichever comes first. After that, a machine can't join with it: generate a new command.
Join tokens created before these limits existed have no machine limit and don't expire. They work until revoked.
Manage join tokens lists them, and Rotate all join tokens replaces them. From the CLI:
alien deployments join-tokens list eu-edge/eu-edge
alien deployments join-tokens create eu-edge/eu-edge
alien deployments join-tokens rotate eu-edge/eu-edge
alien deployments join-tokens revoke eu-edge/eu-edge <token-id>create and rotate print the join command with the new token. The token is shown only once.
create keeps existing tokens working. rotate revokes all of them, and so does running alien deploy --machines again. Machines that already joined stay connected.
Machine requirements
Join checks these before it installs anything:
- Linux with systemd, on
x86_64orarm64, with root orsudo. containerd,wg(WireGuard tools), andnft(nftables). On apt-based systems the machine agent installs them when it first starts; on dnf-based systemsjoinstops and prints the install command.- Kernel WireGuard, with UDP
51820open between the machines. - The pool's capacity: CPU at least the requirement, memory at least 90% of it, and
/var/lib/containerdat least 85% ofephemeralStorage. - An empty, unmounted disk of at least
dataDisk.size, when the pool declares one. - Outbound HTTPS to Alien.
Join enables IP forwarding. Machines reach each other over a WireGuard mesh, and workloads find each other at <name>.svc.
How updates arrive
Ongoing management uses pull. The machine agent polls Alien over outbound HTTPS and applies each release on the deployment's release channel. Nothing connects into the customer's network.
The machine agent also updates itself:
- The machine agent checks each new version against its SHA-256 and starts it once before it replaces the old one.
- Machines update one at a time. Each must stay healthy for 5 minutes before the next one starts.
- A machine agent that fails to start three times reverts to the previous version.
- Your workloads and public endpoints keep running during the machine agent update.
When a machine goes offline
The machine agent polls Alien every 5 seconds. If it can't reach Alien, the machine keeps running the last release it accepted:
- Running workloads continue.
- Crashed processes restart.
- Workloads come back after a reboot.
The accepted release is bound to the machine that received it, so a cloned disk refuses to start it. Replacing the machine's primary network adapter has the same effect. In both cases, run the join command again.
A machine offline for more than about 8 days can't renew its credentials when it comes back. Recover it with a one-time recovery command. See Recover a machine.
A public endpoint's generated hostname lists the public IPs of running machines that aren't draining and sent a heartbeat in the last 30 seconds. The records have a 30-second TTL. Clients stop reaching a machine about a minute after its heartbeats stop. If no machine sends heartbeats, the records stay as they are.
Manage machines in the dashboard
Open Manage machines on the deployment page. Each machine appears under Connected machines with its replicas, CPU, memory, storage, network, and Machine agent version (marked outdated when behind).
A machine is Ready, Unhealthy, Offline (no heartbeat for 5 minutes), Draining, or Drained.
To take a machine out of service:
- Click Drain machine and set Deadline, hours (default 6). Alien moves work off the machine, and each replica gets its
stopGracePeriodto stop. Force drain cuts each grace period to 5 seconds. - Click Remove machine. Force remove removes a machine that isn't drained or can't be reached.
On the machine itself, leave drains it, waits for its work to stop, and uninstalls the machine agent. --purge also removes its identity and state:
sudo acmectl leave --purgeFrom the CLI, alien deployments machines eu-edge/eu-edge --json lists the machines and their state. The same steps take the machine ID it shows:
alien deployments drain-machine eu-edge/eu-edge <machine-id> --deadline 6h
alien deployments cancel-machine-drain eu-edge/eu-edge <machine-id>
alien deployments remove-machine eu-edge/eu-edge <machine-id>drain-machine --force cuts each grace period to 5 seconds. --force and remove-machine ask for confirmation; pass --yes in scripts.
To run a command on a machine for debugging:
alien debug exec eu-edge/eu-edge --machine <machine-id> -- df -hRemove the deployment
Delete the deployment (Delete deployment, or alien deployments delete eu-edge/eu-edge), then remove the machine agent from each machine with sudo acmectl leave --purge.
What isn't supported
- No GPUs, stateful containers, Workers, Builds, or Sandboxes.
- No air-gapped mode. Air-gapped sites run on Kubernetes.
- Public endpoints use A records for the machines' IPs, or a CNAME to the customer's own load balancer. They're served only by Daemons with
networkMode: "host"(MACHINES_CONTAINER_PUBLIC_ENDPOINT,MACHINES_DAEMON_PUBLIC_ENDPOINT).
Next
- Bare metal & on-prem guide: quickstart, workloads, and operations
- Kubernetes: for customers with a cluster
- Push, pull, and air-gapped: how updates reach each kind of deployment
Kubernetes
A deployment in a customer's Kubernetes cluster: what the admin needs, Helm or a new EKS, GKE, or AKS cluster, the Operator that pulls releases, and removal.
Single-tenant in your cloud
A deployment dedicated to one customer in your own cloud account: how to create it, infrastructure changes without rerunning initial setup, and a customer-managed key on AWS.