Skip to content
AnchrasDocumentation
Browse documentation

Getting started / User guide

Connect a Proxmox hypervisor

Register a Proxmox VE hypervisor with Anchras, install its agent, and verify that the instance is online.

On this page

Register your Proxmox VE machine as an Anchras instance to make its compute capacity available to the platform. Run the generated agent command on the hypervisor itself.

Prerequisites

  • A running Proxmox VE host and administrative shell access to it, through its console or SSH.
  • Permission to register infrastructure in your Anchras organization.
  • Outbound connectivity from the host to your platform's agent endpoint and release downloads.
  • A site for the host and a configured private network for subsequent workload connectivity.

Keep existing workload capacity in mind. Registration is separate from allocating resources for new guest VMs or cluster nodes.

Register in the dashboard

  1. Open Instances and choose the option to register a hypervisor you run.
  2. Enter a recognizable name, select Proxmox VE, and choose native execution mode for the physical hypervisor.
  3. Select an existing site or create one with the appropriate location.
  4. Submit registration and copy the generated install command.
  5. Open the Proxmox host shell as root, or an administrative SSH session, and run that exact command.

The command contains a one-time registration credential. Do not publish it, reuse it for another machine, or paste it into a support ticket. Use a fresh registration for each hypervisor.

Register with the CLI

Install and sign in to the CLI on your management machine:

bash
anchras sites create --name "Brussels lab" --country BE

A site is the place your hardware runs. It belongs to one region for life (the global region unless you pass --region). Use its slug in the next command:

bash
anchras instances register-on-prem --name pve-01 --site brussels-lab --provider on-prem-proxmox --execution-mode native

The agent binds to the site's region when it registers.

This prints the installation command; it does not install the agent on your laptop. Run the printed command on the Proxmox host.

Verify the agent

On the hypervisor:

bash
systemctl status anchras-agent --no-pager
journalctl -u anchras-agent -n 100 --no-pager

In Anchras, wait for the instance to report online with a recent heartbeat and CPU, memory, and storage inventory. From your management machine:

bash
anchras instances list
anchras instances get <instance-id> -o json

The installer stores agent configuration under /etc/anchras and starts the anchras-agent systemd service. Protect that directory because registration exchanges the temporary credential for a persistent agent credential.

Troubleshooting

Expired or already-used command: reissue the installation command for the existing instance with anchras instances reissue-install-command <instance-id>, then use the new command on the intended host.

Agent does not start: inspect the systemd journal and installer output for download, permission, configuration, or architecture errors. Redact tokens before sharing logs.

Agent runs but remains offline: check DNS, HTTPS connectivity, system time, and the configured agent URL. A self-hosted deployment uses a separate agent port by default; localhost in a generated URL refers to the hypervisor, not your control plane.

Online but cannot provision: inspect capacity, the selected runtime, private network connectivity, and operation errors. Agent health and guest provisioning readiness are separate checks.

Next steps

Create your first cluster, or read Virtual machines to provision guests. For a different provider, see Connect other machines.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
instances metal3 optionsShow whether an approved image is configured, its checksum and Node OS version, and organization-owned sites.
instances metal3 provisionInstall on one explicitly selected eligible Metal3 machine. Requires --connection-id, --namespace, --machine-name, --machine-uid, --name, --site and a retained --request-key; the instance lands in --project (see Configuration), which is part of the intent. Writes the selected machine's disk; repeat the identical key and intent after an uncertain response. No token is returned.
instances metal3 status <instance-id>Read durable allocation, attempt history, redacted recovery guidance, disk/agent-pending state and authenticated heartbeat count. Supports structured output. Use instances power and instances terminate for durable power/release controls; use the explicit prepared metal3 reimage lifecycle for same-allocation reinstall.
instances hardware-identity <instance-id>Read signed SMBIOS evidence, freshness/conflicts and current agent/allocation provenance; no reimage authorization or attestation claim
instances metal3 reimage prepare <id>Freeze review with --expected-agent-id, --expected-allocation-id, --expected-attempt-id and --request-key. Returns hardware, image, replacement public fingerprint, expiry, blockers and review digest; stores a bounded review without changing provider or agent state.
instances metal3 reimage review <id>Read the exact preparation with --preparation-id; review disk-loss warning, blockers, source binding and complete digest.
instances metal3 reimage confirm <id>Explicitly acknowledge --allow-disk-reimage and --allow-hard-power-off, preserving --preparation-id, --reviewed-digest and --request-key. Reuses the allocation; fences old credentials before normal cleaning and a short private replacement grant. Repeat the exact original request to resume manual_recovery after correcting its evidence/provider problem; current authorization, ownership and expired-lease fences apply.
instances metal3 reimage status <id>Read current replacement registration, heartbeat gate, retained control and exact approved retry image/digest.
instances metal3 reimage retry <id>Review status and submit --reimage-operation-id, --previous-operation-id, --reviewed-digest, --image-url, --image-sha256 and stable --request-key. Corrects a failed never-registered replacement, retaining the reviewed key/allocation; fresh grant follows renewed cleaning.
instances metal3 retry <instance-id>Explicitly retry a failed never-registered allocation. Requires --previous-operation-id, --image-url, --image-sha256 from current approved options, and a retained --request-key. Requests supported deprovisioning/metadata cleaning before disk installation; retains reservation and attempt history. Repeat the identical request after a lost response.
instances listList registered and provisioned instances in one project of the active org (--project, see Configuration). --status error,stopped keeps the instances in any of those statuses; naming terminated shows the terminated instances the list otherwise hides. Also --provider, --region <region-id> (a region id, not a placement label), --profile, --search; the REGION column is the instance's region id. provision, register-on-prem and adopt create in that project too.
instances get <id>Single instance detail, including agent-reported CPU, memory, disk, and OS inventory and, for a provider-placed instance, the location it runs in, the current error, and the last failure after termination or recovery cleared it (InstanceService.GetInstance; use -o json for full configuration, SSH keys, labels, and Node OS state).
instances resolveList profiles and regions, and with --profile + --region (or --location <id>, which narrows to that location's provider), show available cloud-account/provider options for provisioning.
instances create-siteDeprecated alias of sites create without --region: creates the site under the global region through RegionService.CreateSite (the old CreateOnPremSite RPC is retired); --country BE attaches its jurisdiction.
instances register-on-prem --site <id-or-slug>Create a one-time registration token for an on-prem provider in a site (--region is a deprecated alias of --site). The install command renders the agent endpoint of the site's region, and the agent's registration binds it to that region. Use --provider on-prem-anchras-node, --provider on-prem-proxmox, --provider on-prem-hyperv, or --provider on-prem-xcp-ng (defaults to Proxmox for existing scripts).
instances register-token --site <id-or-slug>Issue a global agent registration token (InstanceService.IssueRegistrationToken, ADR-073 §3). No instance exists until an agent claims the token; any region's agent endpoint redeems it, and the region holding the site the agent's claim names creates the registered instance there and binds the agent to it. A claim at another region's endpoint is refused with the right region's agent endpoint. Prints the site, its region, that region's agent endpoint, the expiry and the install command. Issue it against the global region; --site-region <id> names the region of a site this control plane does not hold. --name, --provider, --execution-mode and --ttl (at most 24h) shape the claimed instance and token. Once one region has registered an agent with the token, global records the claim and every other region refuses it.
instances register-token list [--project <id-or-slug>]List the organization's global agent registration tokens (InstanceService.ListRegistrationTokens, ADA-1914) without their secrets: id, project, site, region, name, state (unclaimed, claimed in <region>, expired) and expiry. The CLI traverses all authorized API pages (100 tokens each) before printing a complete result. It refuses malformed or changing pagination rather than silently returning a partial list; retry if tokens are issued or revoked concurrently. Expired tokens are deleted at global by a cleanup job.
instances register-token revoke <token-id>Revoke a global agent registration token (InstanceService.RevokeRegistrationToken, ADA-1914). The token id is the middle part of ANCHRAS-AGENT-REG.<id>.<nonce>; the whole token is accepted too. Every region refuses the token once the revocation replicates; an instance a claim already created stays. An unclaimed, unexpired token refuses its project's delete, and revoking it is the way out. Issue it against the global region.
instances approve <approval link or id>Approve a machine that runs anchras up into your pool from a signed-in terminal (InstanceService.GetDeviceAuthorization then ApproveDeviceAuthorization, ADR-076), as the console's /up/<id> page does. Prints what the machine reported and where it connected from. On the machine's network it shows the code to compare and asks to confirm (--yes skips the prompt); from any other network it asks for the code the machine's terminal shows (--code <code>), and five wrong codes deny the request. --site defaults to the organization's only site and --project to the active project; --name overrides the instance name (default: the hostname). --deny refuses the machine instead. The approval issues a two-minute, single-use registration token bound to the machine's identity key, which its anchras up collects and registers with; the plan's machine limit is checked here and denies the request when reached. Issue it against the global region.
instances dedicated-orders validateDry-run a Hetzner Robot dedicated order (PlaceDedicatedOrder with test=true). Validates SKU/location against Robot without creating a dedicated_orders row or placing a billable order.
instances dedicated-orders order / list / cancel (unconfirmed placements)When Hetzner does not confirm whether it accepted an order (a timeout, a dropped connection, an unreadable answer), order fails with a support reference (DO-…) and the order stays pending with PLACEMENT unknown: do not order again. Such an order cannot be cancelled, recorded again by hand or registered until Anchras support confirms it with Hetzner (ADA-1144).
instances dedicated-orders bootstrap <order_id> --request-key <key>Prepare a linked registration identity, created in --project (see Configuration), and request rescue/reset once for an unregistered delivered order. Preserve the key and every input, the project included, on retry. Reports the retained operation and manual recovery for unknown provider outcomes; never repeats an admitted reset. No SSH, installimage, disk-imaging or live-registration claim.
instances dedicated-orders rdns get <order_id>Read the reverse DNS (PTR) record of a delivered API-ordered dedicated server's primary IP (MarketplaceService.GetDedicatedServerRdns). Prints the IP and its PTR (- when none is set). Supports structured output.
instances dedicated-orders rdns set <order_id> --ptr <hostname>Set the reverse DNS (PTR) record of a delivered API-ordered dedicated server's primary IP (MarketplaceService.SetDedicatedServerRdns, admin/owner). The IP is always the order's own server's, never caller-supplied. Supports structured output.
instances dedicated-orders info <order_id>Read a delivered API-ordered dedicated server's hardware state from the provider (MarketplaceService.GetDedicatedServerInfo): addresses, product, datacenter, provider status, paid-until, and which reset types, rescue images and wake-on-LAN it supports. Supports structured output.
instances dedicated-orders reset <order_id> [--reset-type sw\|hw\|power\|power_long] --yesReboot or power-cycle a delivered API-ordered dedicated server (MarketplaceService.ResetDedicatedServer, admin/owner). Destructive: interrupts any running workload, so it refuses without --yes. --reset-type defaults to sw; info lists the types the server offers.
instances dedicated-orders rescue enable <order_id> [--os linux] [--authorized-key <fingerprint>] --yesActivate the provider rescue system so the server boots into it on its next reset (MarketplaceService.EnableRescue, admin/owner); requires --yes. --authorized-key is repeatable and names SSH key fingerprints already registered in the Robot account. Prints the one-time rescue root password, which cannot be read back later. Supports structured output.
instances dedicated-orders rescue disable <order_id>Deactivate the rescue system so the next reset boots the installed system (MarketplaceService.DisableRescue, admin/owner).
instances dedicated-orders wake <order_id>Send a wake-on-LAN packet to a delivered API-ordered dedicated server (MarketplaceService.WakeDedicatedServer, admin/owner).
instances reissue-install-command [--force] <id>Reissue a one-time install command for an unbound pending/error instance. --force is retained for compatibility and cannot replace a registered agent; use authorize-agent-reenrollment. install-command remains an alias.
instances provisionProvision a cloud instance. Requires --name and --connection (or --connection-id), plus either --profile and --region or --location <id>, or a marketplace offer as --provider-sku with --provider-region (for example europe-west1-b). The region defaults to the named location or offer. Without --location, profile provisioning uses the provider default for --region; an offer region without a registered location is refused. Optional --public-ipv4, --public-ipv6, --root-disk-gib, and repeatable --ssh-key (OpenSSH public-key literal or @path). Does not look up a saved keyring key by ID. Staging guest-receipt flags are documented below.
instances power <id>Start, stop, or reboot a provisioned instance (--action start, stop, or reboot). Metal3 requires a stable --request-key; stop/reboot also require explicit --allow-hard-power-off. --retry-operation-id resumes a manual-recovery operation with its original key/action/consent. Supports structured output.
instances terminate <id>Request termination. Metal3 requires --request-key and explicit --allow-hard-power-off; retain the key and consent after uncertain responses. Optional --retry-operation-id resumes retained cleanup. --force does not bypass consent or verified release. Supports structured output.
instances metal3 control-history <id>Read current control and latest 100 retained operations, requested/observed power, recovery guidance and cleanup/release receipts. Unknown power is distinct from off. Supports structured output.
instances update-agent <id> / instances update-agent --allAsk a registered, heartbeating agent to self-update now instead of on its 24h schedule (InstanceService.UpdateInstanceAgent; --all fans out to every heartbeating agent in the org via UpdateOrgAgents). Prints the queued agent_update command id and the current/published agent versions; the agent installs the release when one is newer and restarts. Rejected for inactive instances and agents without a current heartbeat. Supports structured output.
instances tags <id or name>Show a node's tags (TailnetService.GetNodeTags, ADR-079 §7): the tags on its tailnet device, split into operator and managed tags, which the network rules, --on tag:NAME placement and run and data grants match. Also lists the names in the instance's retired tags label and those the device lacks. Supports structured output.
instances move-label-tags <id or name> [--yes] [--declare-tag-owners] [--convert-user-device] [--clear-label]Move the names in the retired tags instance label onto the node's tailnet device, next to its operator tags, through SetDeviceTags (TailnetService.MoveLabelTags, tailnet.update). Without --yes it shows what it would set and the flags it needs. A tag the tailnet policy's tagOwners does not declare is refused unless --declare-tag-owners confirms declaring it, owned by autogroup:admin (writes the policy; tailnet.acl.update). Tagging a user-owned device needs --convert-user-device. The label is left as it is unless --clear-label asks to remove it once the device carries every one of its tags (instance.update, audited as instance.labels_updated); with nothing left to move, --yes --clear-label only removes the label. A label edited while the tags move is left alone, with a warning. Supports structured output.
instances labels <id or name>List an instance's labels (InstanceService.GetInstance): each key, its value and whether a user or Anchras set it. Placement selectors match a label as KEY=VALUE (container create --on). Supports structured output.
instances labels set <id or name> <key=value>... / instances labels unset <id or name> <key>...Set, replace or remove labels (InstanceService.UpdateInstanceLabels, instance.update, audited as instance.labels_updated); other labels are left as they are. A key is 1-63 letters, digits, ., _, - or /, beginning and ending with a letter or digit; a value is at most 253 characters, without a comma. The labels Anchras and the agent write (os_info, hardware_info, agent_version, provider_kind, tailnet_id, the execution_mode_* and anchras.io/ keys and the like) are refused. The retired tags label can only be removed: node tags are the tags on the node's tailnet device. Supports structured output.
instances contribute <id or name> on\|off [--availability always_on\|intermittent]Lend a machine to the organization's auto placement, or take it back (InstanceService.SetInstanceContribution, ADR-082 §4). A machine that does not contribute is a personal device: auto placement skips it, and only its person (who approved it) and the organization's admins can name it as a target (container create --placement host --placement-target-id, move), see its capacity and metrics or open a terminal on it; other members see it listed with ROLE personal. A Mac whose agent reports no power or thermal state (an agent from before contributed nodes, or pmset failing) stays undecided: it does not contribute, ROLE reads undecided, and instances get says why until the agent is updated or its person chooses. A machine joined with anchras up from the CLI contributes, battery or not, as do machines registered before contributed nodes existed; a Mac running the desktop app does not until its person turns it on. A contributing machine is gated: on battery, in Low Power Mode, at a serious or critical thermal state or paused, it takes no new workloads and its running ones are suspended (frozen, never killed); instances get prints the gate that fails and whether the agent keeps the Mac awake while it runs workloads on AC power. --availability intermittent (the default with a battery) marks a machine that sleeps: its workloads are suspended while it does and resume there, and are placed elsewhere only after their grace period (run --suspend-grace, 30 minutes by default). Only the machine's person and admins (instance.contribute, which members hold for their own machines).
instances pause <id or name> [--for 1h \| --until tomorrow\|<RFC 3339>] / instances resume <id or name>Pause a contributing machine for a while (InstanceService.PauseInstanceContribution, ADR-082 §4): no new placements, and the workloads it runs are suspended until the pause ends or resume; past their grace period they are placed elsewhere. The default is an hour, at most 7 days; --until tomorrow is 08:00 local time. Only the machine's person and admins.
instances ssh <id>Open an audited login shell on a registered instance as a local account; the instance's agent opens it, so no tailnet address is needed. Optional --user (default root; root and admin need instance update permission), --connect, --print-url. Refused when the agent sets disable_host_shell.
instances shell <id>Open the instance's own shell, the root shell its agent runs and the dashboard's Shell button opens (InstanceService.OpenShellSession). Needs instance update permission and iaas.ssh.open on the instance; a personal device opens only for its person and the organization's admins. Without a flag it prints the single-use WebSocket path, target and expiry; --connect attaches a PTY (needs a TTY) and --print-url prints a URL for automation. Audited as host.ssh_session_issued, then host.ssh_opened/host.ssh_closed. Refused when the agent sets disable_host_shell.

API reference

Browse procedures, request and response types, and download the complete OpenAPI contract.