Skip to main content

Onboard an Existing Linux Machine

Onboarding replaces a running Linux machine's operating system with Admiral. With capture enabled, its existing userspace and persistent files become a local workload named pre-admiral. A restore kit lets you leave Admiral and restore that system later.

Private beta

Onboarding and restore are in private beta, not a production-deployed migration service. Contact Admiral for access before using them. The bootstrap CLI distribution is not released yet: use the supplied preview Linux CLI and a dashboard-generated onboarding token. Do not assume the dashboard's generated curl bootstrap command works in every environment.

Back up before you begin

Onboarding erases the whole target disk, not just the root partition. Capture is not an independent backup: the capture and restore kit remain on the device. Keep a tested off-device backup and physical access with recovery media. A power failure or write failure after erasure can require a complete reflash and recovery from your backup.

Choose Whether to Keep the Current System​

ChoiceResult
Keep the current OS enabledCaptures the system, creates the pre-admiral workload and retains a restore kit. The device normally joins a shared sibling fleet named <profile fleet> (pre-admiral).
Capture disabled, or --no-captureInstalls Admiral without keeping the previous OS or a restore kit. There is no captured OS to restore. With a capture-disabled session, the device joins the profile's fleet and runs its configuration.

The sibling fleet uses one shared configuration, but each device runs its own locally captured image, not another device's OS. The local image reference is admrl.local/pre-admiral:current; it is not a registry image. The first capture establishes the shared configuration, including device access, console and systemd settings. Later captures reuse it rather than replacing it. Review that configuration with Admiral before onboarding machines with different requirements. Selected fleet settings and network configuration are copied when the sibling fleet is created; inspect the resulting fleet policy and any settings reported as not copied. Do not assume all policies or later profile-fleet changes are mirrored.

Private Beta Requirements​

This workflow is narrower than the normal installation options:

  • Run the supplied Linux AMD64 / x86_64 CLI as root on the machine being replaced. ARM64 and legacy BIOS onboarding are refused in the private beta.
  • The machine must have booted with UEFI, with Secure Boot off. This path does not provide TPM-sealed disk encryption; a fleet requiring disk encryption is refused.
  • Use a fixed target disk with 512-byte logical sectors. Native 4 KiB logical-sector disks are refused.
  • For the supported capture-and-restore path, use an ext4 or XFS root directly on a disk partition, with a GPT layout. Restore recreates direct ext4, XFS, VFAT and swap partitions. It does not reconstruct LUKS, LVM, RAID, Btrfs or ZFS layouts.
  • In-place staging must be on ext4 or XFS directly on a partition of the target disk. --stage uses a separate spare whole disk instead, overwriting that disk too. This can solve staging-space or placement problems; it does not add restore support for unsupported storage layouts.
  • The CLI checks memory, free space, disk layout, capture size and the available handoff method. Leave enough space for the capture, installer and unpacked system; a compressed archive's size alone is not a capacity estimate.
  • The captured image is unsigned. A fleet requiring signed workload images cannot run it. The pre-admiral configuration also needs explicit fleet permission for its host access, including SYS_ADMIN.

What Capture Keeps—and What It Does Not​

Capture is a file-level copy, not a sector clone or an atomic filesystem snapshot. It includes persistent Docker, containerd, Podman and k3s stores: images, writable layers, named volumes and runtime metadata. Snapd state, cache and partial downloads are included too, as are package caches and persistent data under /mnt, /media and /var/tmp. Their inclusion is not a guarantee that every runtime or application will run unchanged under Admiral.

Virtual and transient paths such as /proc, /sys, /dev, /run and /tmp are omitted. The EFI System Partition is stored separately in the restore kit. Capture staging files are not captured. Network mounts and other non-local mounts are not a backup of their remote data; duplicate bind-mounted trees are not copied twice. Unsupported mount arrangements can refuse capture. Stop and resolve those refusals rather than assuming unseen data has been saved.

--exclude /absolute/path is an explicit opt-in to omit data. An excluded partition's contents are not recovered by restore; it may return empty. Unsupported filesystems on the target disk must not be treated as preserved simply because their partition entries were recorded. Do not exclude a runtime store just to get past a refusal unless losing that store is intentional and backed up separately.

--include /absolute/path requests a default-excluded path; it does not make unsupported mounts capturable or override staging safety. Large sparse files are refused when storing them would expand their holes. --include-sparse stores those files in full, increasing space requirements; otherwise back them up separately and explicitly exclude them.

The workload uses Admiral's host kernel, not the captured distribution's kernel. Original kernel modules are not made compatible by copying /lib/modules. Admiral owns networking, device management and boot. Capture adjusts files such as fstab, crypttab and resolver configuration and masks host-management units so they do not compete with the host. Runtime service/socket enablement is preserved, not blanket-disabled. The adjustment list is available inside the workload at /.pre-admiral/CHANGES; restore reverses capture adjustments using the saved originals.

File ownership, permissions, modification times, links and supported extended attributes are carried through the file-level path, but this is not preservation of all filesystem metadata. Sparse allocation, filesystem snapshots, free space and unused sectors are not cloned. See restore limitations for metadata and firmware boundaries.

Prepare a Consistent Capture​

  1. Back up and test recovery. Record the target and optional staging disks independently of their device names.
  2. Shut down application writers cleanly, including databases and containers. Flush or export application data as appropriate.
  3. Stop socket-activated runtimes with sockets before services, and unmount runtime-generated overlays and bind mounts before preflight. Check the host's mount table; stopping containers alone may leave mounts behind. Do not delete the persistent runtime stores.
  4. Keep writers stopped throughout the real capture. --capture-stop stops named systemd units later in the process, after preflight; it cannot fix mount refusals that have already occurred. Units named this way stay stopped on the source machine, including after a later failure; their enablement is preserved.

There is no atomic snapshot or application-consistency guarantee. A successful file copy of a live database is not proof that it can recover. Recheck application consistency before restore as well.

Get the Token and Run the Supplied CLI​

In the dashboard, open Provisioning > Installers, find your profile, open its ... menu and choose Onboard a running Linux device. Under Advanced, leave Keep the current OS enabled for capture, or turn it off for a clean installation. Choose the command validity period and select Create command. The token is shown only once; treat it as a secret.

Use the token with the supplied admrl binary. These examples assume it is installed on the target machine's PATH and the shell already has ADMRL_ONBOARD_TOKEN set securely to the generated token. Do not put a real token in scripts, tickets or shared command history. No admrl login is needed for onboarding.

First preview the operation:

sudo --preserve-env=ADMRL_ONBOARD_TOKEN admrl onboard --dry-run

A dry run performs checks, starts the server-side session, requests the installer build and prints the plan without performing the local install. With capture, it can create the empty pre-admiral fleet. It is not a side-effect-free cloud query, and it does not prove a later capture or restore will succeed.

For a prepared Docker host, a real capture can use:

sudo --preserve-env=ADMRL_ONBOARD_TOKEN admrl onboard \
--capture-stop docker.socket \
--capture-stop docker.service \
--capture-stop containerd.service

Those flags supplement the earlier application shutdown and mount cleanup; they do not replace them. Review the printed Target disk, Staging, Handoff and Plan, including the fleet and capture choice. For a capture-enabled plan, the supplied preview prints this line:

Persistent data, including container images, metadata and volumes, is captured unless explicitly excluded.

With capture disabled, the plan instead prints:

Nothing of this system is kept (no capture).

The CLI asks you to type the target disk name. Avoid --yes during the private beta: it bypasses that confirmation.

For installation without keeping the current OS:

sudo --preserve-env=ADMRL_ONBOARD_TOKEN admrl onboard --no-capture

Prefer creating a capture-disabled session for this path so the intended destination fleet is unambiguous. Capture-specific flags cannot be combined with --no-capture.

Other supported options are --disk /dev/nvme0n1 to select a target whole disk, --stage /dev/sdb to overwrite a separate staging disk, --handoff kexec or --handoff bootnext, --devices /dev/ttyUSB0,/dev/ttyS1, and --tty. Disk and device paths here are examples, not recommendations for your machine. Review admrl onboard --help from the supplied build before using them.

After the Handoff​

The CLI downloads and verifies the installer, then switches into it with kexec or a one-time UEFI BootNext restart. The installer loads and verifies its staged inputs before erasing the target. Once disk writes begin, an independent backup and physical recovery remain your fallback—not the old OS on that disk.

After first boot, verify the device's fleet, workload state and application data. Test the actual application, not just the presence of its files or a running systemd instance. Hardware-specific services can fail inside a container even when application services work. A capture whose /sbin/init is not systemd does not automatically start its original services: the generated workload waits in a shell until you configure how to start the application.

The captured system is trusted, not sandboxed

The generated pre-admiral service uses host networking and explicitly requests cap_add: [SYS_ADMIN] for nested runtime mounts. The fleet must allow that access. This is broad host-level trust, not a security boundary for untrusted software. Existing shared configurations are not automatically rewritten by a newer CLI; have Admiral review them rather than blindly widening access.

Supervised validation has completed four simple Ubuntu VM onboarding/restore loops and one Docker 29 application loop with PostgreSQL 16 and nginx using named volumes. That application loop retained the original container image IDs, and database edits made while running in pre-admiral survived restore. This is bounded proof for those tested cases, not a hardware compatibility matrix or a promise for arbitrary distributions, runtimes, storage drivers or applications.

Before leaving Admiral, follow Device Exit & Restore, including its read-only plan and volume mapping steps.