GET /version) and then bootstraps any missing storage and networking (see below). For environments behind an SSH jumphost, the direct probe is skipped and the connection is tested during cluster provisioning instead.
What Ankra Accesses
Ankra drives the Proxmox VE API with your token:
The token needs these privileges on
/ (or on the target nodes, storage, bridges and /sdn):
Saving the credential checks the privileges that are not marked bootstrap and refuses a token that lacks any of them, naming each one:
The Proxmox VE API token lacks Datastore.Audit, SDN.Use. The privileges marked bootstrap are exercised only while the credential is saved. Once the bootstrap has finished you can drop them, and Ankra keeps provisioning with the rest. Enabling Tailscale additionally requires VM.GuestAgent.Unrestricted (see below).
A role and token with exactly this set, created on the Proxmox host:
Creating a Proxmox VE API Credential
1
Create an API token in Proxmox
- In the Proxmox VE web UI, go to Datacenter → Permissions → API Tokens
- Create a token for a user whose role carries the privileges listed above, and copy the token ID (
user@realm!name) and secret
2
Add it to Ankra
Go to Integrations & alerts → Credentials, click Add credential, and under Cloud providers choose Proxmox VE. Enter:
- Name: 3 to 100 lowercase letters, digits and single hyphens (for example
proxmox-lab). It cannot change later. - API address: the address of your Proxmox API,
http://orhttps://(for examplehttps://proxmox.example.com:8006) - Token ID and Token secret: from the previous step
- Skip TLS certificate verification (
tls_insecurein the API): only for a self-signed certificate on a network you trust
root when left empty. The same section takes the optional Tailscale login server and Tailscale auth key (see below).Click Test the connection. You see The connection works. Then click Add credential; Ankra validates and bootstraps the installation (below), and the credential’s page opens.3
Or add it with the CLI
--tls-insecure for a self-signed certificate. For a jumphost, add --jumphost-host, --jumphost-private-key-file and, if they differ from the defaults (root, port 22), --jumphost-username and --jumphost-port.- Storage - when no active storage supports VM images, Ankra enables
imagesandrootdiron thelocaldirectory storage, or createslocalat/var/lib/vz. Theimportcontent type is enabled for cloud-image downloads. Alocalstorage you disabled, or restricted to some nodes, is never re-enabled or widened: Ankra refuses and asks you to change it yourself. - Management bridge - when no Linux bridge exists, Ankra converts the single active Ethernet or bond management interface to
vmbr0. Static andmanual-method interfaces are supported (including dedicated servers where the provider assigns the IP outside Proxmox’s network config); DHCP-managed interfaces cannot be converted through the Proxmox API and are refused with instructions. - Private network - Ankra creates the
ankraSDN simple zone, vnet, and subnet 10.20.0.0/16 with SNAT and dnsmasq-served DHCP, giving cluster VMs an isolated NAT’d network. Each node needs thednsmasqpackage (apt install dnsmasq && systemctl disable --now dnsmasq). - Cloud-init template - nodes without the
ankra-ubuntu-24-04template get it, built automatically from the Ubuntu 24.04 cloud image. Your own templates are left alone.
Connecting a Proxmox VE that already runs VMs
You can connect a Proxmox VE installation that already runs your own VMs, networks and storage. Ankra only adds what it needs alongside them. It never modifies, moves or deletes anything it did not create. When the bootstrap would have to touch something of yours, it stops before making any change and tells you what to fix:
When you create a cluster, Ankra also checks that:
- It only clones its own template. Without an explicit
template, Ankra clonesankra-ubuntu-24-04and never one of your templates. To use your own, name it withtemplate. - VMID 9999 is free. The persistent volume driver files every cluster volume under VMID 9999. A guest of yours with that VMID would appear to own the cluster’s disks, so Ankra refuses until it is moved to another VMID. The check only sees guests the token can audit, which is every guest when the role is granted on
/as shown above. - The selected hosts have the memory. Ankra adds up the memory of every VM the cluster needs and refuses when the selected hosts do not have that much free. It does not overcommit a host your VMs run on.
ankra and ankra-cluster-<id>, and its description says it is managed by Ankra. In the Proxmox UI you can tell Ankra’s VMs from yours at a glance. Change or delete them through Ankra, not in Proxmox.
You can replace the Token ID and Token secret later under Settings & access → Replace the secret (see Replace the secret). The API address is fixed - to point at a different Proxmox installation, create a new credential. The token secret is write-only: Stored values shows the API address and token ID but never the secret.
Tailscale and Headscale (optional)
Attach Tailscale/Headscale settings to a Proxmox VE credential and every VM Ankra provisions with it installs Tailscale and joins your tailnet on first boot - each VM getting its own tailnet address, reachable across Proxmox hosts and from your own networks over an encrypted mesh. Provide both fields, or leave both empty:- Tailscale login server (
login_serverin the API) - the Headscale control-server URL (for examplehttps://net.ankra.dev). Tailscale’s own coordination server also works. - Tailscale auth key (
auth_key) - a reusable pre-auth key from your control server.
You can add, change, or remove Tailscale on an existing credential, without recreating it: open the credential, click Settings & access, and under Tailscale connection set the Login server, a New Tailscale auth key, the optional Advertised routes and Accept routes from other machines, then click Save Tailscale settings. Remove Tailscale connection takes it off. The stored auth key is never displayed. From the CLI, use
ankra credentials proxmox tailscale set and ankra credentials proxmox tailscale clear.accept_routes defaults to false - importing the route for the guest’s own SDN subnet would send its reply traffic into the tailnet and can cut it off from the bastion mid-provisioning). Host-spread clusters use the tailnet address for cross-node traffic: the Proxmox SDN private network is node-local, so a control plane placed on a different host than the bastion is only reachable through the tailnet. Kubeadm advertise/join, haproxy upstreams, etcd peering, and cert SANs all follow the recorded tailnet address once a guest has joined.
The tailnet join runs through the Proxmox QEMU guest agent, which requires the credential’s Proxmox token to hold
VM.GuestAgent.Unrestricted - a separate, higher privilege than the read-only VM.GuestAgent.Audit that address discovery already needs. A token with only VM.GuestAgent.Audit provisions fine until Tailscale is configured, then every VM’s tailnet join fails with an API 403 on /agent/exec. Add VM.GuestAgent.Unrestricted to the token’s role before enabling Tailscale on the credential.ankra credentials ssh-key create).
Troubleshooting Proxmox VE Credentials
These are the answers Test the connection and Check now give:
Saving can additionally fail with “Could not configure Proxmox VE storage and networking” - the bootstrap could not complete. The message ends with Proxmox’s own reason. A missing privilege reads
status 403: Permission check failed (<path>, <privilege>), most often SDN.Allocate (creating the ankra zone) or Datastore.AllocateTemplate (downloading the cloud image); add it to the token’s role and save again. Other common causes: the management interface is DHCP-managed (convert it to a static or manual configuration first), or dnsmasq is not installed on a node. “Proxmox VE infrastructure setup is already running for this organisation or target” means another save is mid-bootstrap against the same installation - wait for it to finish and retry.