/nanoclaw-e2e:e2e-proxmoxfrom nanoclaw-e2e
Create a fresh unprivileged Debian 13 LXC on a Proxmox VE node and test an exact NanoClaw commit through headless setup, a real agent reply, and service verification. Use for NanoClaw install or integration testing on Proxmox; preserve existing development containers.
Ships in nanoclaw-e2e. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For each unexpected failure, preserve the test evidence, then follow the companion
e2e-triage at a safe checkpoint and include its findings
and next actions in the final E2E report. Research each distinct failure once,
including when another E2E skill delegates here; do not delay active prompts,
change acceptance results or submit public issues/comments without authorization.
Install e2e-triage alongside this skill. If its relative link is unavailable,
resolve it by skill name in the agent's installed catalog; if absent, report that
triage was unavailable and continue the authorized test/report without installing
anything implicitly.
Use scripts/proxmox-run.py from the root of the
NanoClaw checkout under test. It creates one new LXC and delegates application
setup to e2e-exe-dev/scripts/e2e-install.sh. The installer remains shared with
the exe.dev workflow; no NanoClaw setup logic is copied into this skill.
This follows the configuration of the
NanoClaw development helper:
Debian 13, unprivileged LXC, nesting=1,keyctl=1, a nanoclaw developer account,
/opt/nanoclaw, and a lingering systemd user session. Defaults are 2 CPUs,
8 GiB RAM and a 40 GiB root disk. Proxmox documents keyctl as necessary for
Docker in unprivileged containers.
The driver uses SSH to the node, then pct exec to reach the guest. It needs
no direct route to the LXC, guest SSH key, Proxmox API token or browser session.
The node runs Proxmox lifecycle commands; Docker and NanoClaw run inside the LXC.
The operator needs Python 3.10+, Git and OpenSSH. The target is a Proxmox VE node with root SSH access; the first version supports Debian 13 amd64 guests.
Install both skills, or install the repository's Claude Code plugin, which includes both:
npx skills add nanocoai/nanoclaw-oss-dev-tools --global --skill e2e-exe-dev
npx skills add nanocoai/nanoclaw-oss-dev-tools --global --skill e2e-wizard
npx skills add nanocoai/nanoclaw-oss-dev-tools --global --skill e2e-proxmox
The shared installer is found in the sibling e2e-exe-dev directory. If the
skills live in different locations, pass --installer with its actual path.
Copy and symlink installations are both supported; the operator's NanoClaw
checkout is unrelated to either installation directory.
Before a live run, establish:
--host accepts an alias or root@hostname; port 8006 is the web
interface, not the SSH port. A custom SSH port belongs in the operator's SSH
configuration. --identity-file selects an existing key without consulting
ssh-agent. The driver never enrolls keys or changes SSH configuration.pveam list local, a storage
with enough space for the root disk, and an existing bridge with DHCP, DNS and
outbound access. The driver doesn't download templates or change networking.~/.nanoclaw-e2e/anthropic_key, with permissions 0600.--ref resolves locally; fetch locally first to test fresh upstream code.
GitHub SSH origins are converted to HTTPS. Private repository authentication
and local-only commits are outside this first version.Before reading the credential or contacting Proxmox, resolve the exact commit and run the sibling wizard skill's provider discovery helper:
COMMIT="$(git rev-parse --verify 'HEAD^{commit}')"
PROVIDER_HELPER=/absolute/path/to/installed/e2e-wizard/scripts/provider-options.py
python3 "$PROVIDER_HELPER" --root "$PWD" --revision "$COMMIT"
python3 "$PROVIDER_HELPER" --root "$PWD" --revision "$COMMIT" --provider claude
Show the first result's offered providers and ask the operator which to test;
then show that provider's exact auth prompt/options and ask for its auth method.
For an installable provider, inspect payload_kind: a bundled payload uses
the same NanoClaw SHA and needs no --payload-ref; a branch payload needs its
single nc:copy from-branch: payload fetched from the owning remote and passed
as --payload-ref during discovery. Record both source SHAs. The headless
Proxmox driver currently accepts only Claude api or oauth; use the
public-wizard adapter for a discovered credential-file method from another
offered provider, such as OpenCode openrouter, deepseek or custom with
--opencode-model (see the OpenCode workflow;
live OpenCode on Proxmox is not yet qualified). For a chosen live sign-in,
use the sibling wizard's supervised flow: Codex device or Claude
subscription, with --supervised-human-auth and an operator ready to complete
the handoff. Those methods remain unavailable to this headless driver.
skip cannot pass.
Read-only inventory commands on the node include pveversion, pct list,
pveam list local, pvesm status, and ip -brief link show type bridge.
Choose the host, template, storage and bridge from actual inventory. Never use
an existing personal/development guest as a disposable test target. The driver
creates a nanoclaw account with passwordless sudo inside its new test guest;
that privilege is another reason the selected guest must be disposable.
Set PROXMOX_SKILL_DIR to the directory containing this SKILL.md. From the
NanoClaw checkout, first inspect the plan:
python3 "$PROXMOX_SKILL_DIR/scripts/proxmox-run.py" \
--host [email protected] \
--template local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst \
--storage local-lvm --bridge vmbr0 \
--ref origin/main \
--provider claude --auth-method api \
--credential-file /path/to/anthropic-key \
--result-file /path/to/proxmox-result.json --dry-run
Replace the example infrastructure values with the inspected ones. The report's
parent directory must exist. Dry run resolves the commit and records planned;
it performs no SSH calls and reads no credentials. Remove --dry-run to create
the LXC and run the test within the user's authorized scope.
--gateway onecli (the default) or --gateway iron-proxy selects the
credential gateway the guest installs; NANOCLAW_E2E_GATEWAY is the fallback
when the flag is absent. Iron Proxy exists only on refs with the gateway seam
(setup/gateways/, nanocoai/nanoclaw#3815
onward); on an older ref the shared installer stops before any setup step, and
the driver rejects an unknown kind before contacting the node. The driver sends
its resolved choice to the guest explicitly, so an inherited
NANOCLAW_E2E_GATEWAY in the operator's shell cannot differ from the report.
See the installer's gateway seam notes
for how each gateway receives the credential; Iron builds its proxy image from
source on first install, so allow a few extra minutes on the default 2 CPUs.
The dry-run plan shows the selected gateway.
The driver asks Proxmox for the next available guest ID, or accepts an explicit
unused --ctid. Proxmox still arbitrates allocation if another task races for
that ID. Only a successful create operation plus the matching random run marker
and required settings authorizes guest operations. An uncertain create result
stops the run without adopting, starting or writing into a discovered guest.
The bootstrap waits for DNS, rejects incomplete APT index refreshes, and adds Docker-group membership before starting the user manager. A manager started earlier retains stale groups even when a new interactive shell can use Docker. Credentials and the documented environment settings travel over SSH stdin into private files. The installer sets up Docker, OneCLI, credentials, the agent image, the service and a CLI agent, then requires a real reply and setup verification. Existing channels are not connected.
Supported installer settings are NANOCLAW_ONECLI_API_HOST,
NANOCLAW_ONECLI_API_TOKEN, NANOCLAW_DISPLAY_NAME, NANOCLAW_E2E_TZ and
NANOCLAW_E2E_FORCE_AUTH; the gateway kind travels with them as
NANOCLAW_E2E_GATEWAY, always set from the driver's own choice. --key-file or
NANOCLAW_E2E_KEY_FILE chooses the local credential file. This workflow retains
its CLI agent for verification.
Read the local JSON report, including status, phase, requested_commit,
commit, requested_gateway, gateway (copied from the installer result,
null before it exists), guest.ctid and the nested installer result. A pass
requires the installer's exact commit, successful exit, ping: ok, completed
verification, and the same installed gateway (with requested_gateway and a
gateway_seam boolean saying whether the seam's gateway step ran) to match
this run. A failure may name the other gateway the installer found. commit stays null until a completed installer result proves
which revision ran. The top-level exit code is the driver's exit; the nested
installer retains its original fields and timings.
After argument parsing and result-path checks, a new running report replaces
an earlier pass before preflight. A normal failure records its phase and exit
code. Abrupt termination may leave running; a timeout or lost SSH connection
can leave a remote operation in progress. Inspect the recorded guest and its
task state before retrying. Do not adopt an uncertain guest on a retry.
Every created LXC is retained on success or failure, with its ID printed. There
is no automatic delete, clone, template conversion or change to existing guests.
Inspect the test guest from the node with pct enter <CTID>, then
machinectl shell nanoclaw@ and cd /opt/nanoclaw. Its detailed installer logs
and result are at /opt/nanoclaw/logs/e2e/. It contains test credentials in the
OneCLI vault; treat it accordingly when choosing to retain or remove it.
After the report and relevant logs have been copied to durable local paths and
validated, offer to remove a disposable run-owned guest after a pass. Recommend
retaining an unexpected failure until e2e-triage and any requested inspection
are complete. Cleanup needs a separately scoped request identifying the exact
test CT. Immediately before pct destroy, recheck the random run marker and
that no installer or wizard controller is active; never infer ownership from a
CT ID or name. If evidence export, redaction, checksums, local persistence,
triage, ownership, or controller checks fail, do not remove the guest. Verify
the CT is absent afterward and write a local teardown receipt. Cleanup covers
only the run-owned CT, never the Proxmox node, template, storage, bridge, or any
other guest.
Start with the local report's phase and retained CT ID. Then inspect the
recorded guest rather than rerunning into an uncertain lifecycle state.
| Report or symptom | Inspect in the retained guest | What it distinguishes |
|---|---|---|
running, timeout, or lost SSH | Node task status, pct status <CTID>, then the ownership marker in pct config <CTID> | A still-running operation from a completed failure; never adopt the guest from its name alone. |
bootstrap with DNS or APT output | Resolver state, default route, and the bootstrap output in /opt/nanoclaw/logs/e2e/ | Guest network/template readiness from a NanoClaw setup failure. |
| Docker works in a shell but setup cannot use it | id nanoclaw, the user manager environment, and Docker access through machinectl shell nanoclaw@ | Stale supplementary groups in a user manager started before Docker membership changed. |
onecli, auth, gateway, gateway-auth, or container | The matching step log plus docker ps -a; inspect container logs only on the retained private guest. On the seam, gateway is the /add-<gateway> skill install (Iron also builds its proxy image and starts Iron Control) and gateway-auth the credential hand-over | Gateway/image failure from a later agent or service failure. |
A pass with the wrong gateway | The report's gateway and installer.gateway | The driver refuses to report a pass when the installer result names another gateway; rerun with the intended --gateway. |
ping or verify | logs/nanoclaw.log, logs/nanoclaw.error.log, data/cli.sock, and the exact installer result | A running process from a usable CLI/model path; a socket or process alone is not a pass. |
| A retry reports a used CT ID | The previous report, node task history, and matching random run marker | A retained test guest from an unrelated or uncertain guest; choose a new ID unless ownership is proven. |
The shared installer follows NanoClaw
74224f62a6c08418acccc727114ab02f92e403bf:
setup.sh, setup/install-docker.sh, setup/index.ts, setup/service.ts,
setup/verify.ts, scripts/init-cli-agent.ts, and scripts/chat.ts, and on
gateway-seam refs setup/gateways/step.ts and setup/gateways/auth-step.ts.
Re-check these when NanoClaw's setup or reply classification changes. Proxmox's
pct command reference defines guest
creation and execution; no community-script engine is required by this driver.
The offline suite exercises allocation and identity checks, failed bootstrap, exact commit selection, credential transport, copied skill paths and result validation through simulated SSH. These tests do not establish nested Docker or real inference compatibility. Record a live run's Proxmox and kernel version, template, tested NanoClaw SHA, gateway and installer result before claiming this driver works on a host. Iron Proxy on Proxmox has offline coverage only; the live Iron evidence so far is the exe.dev run in the shared installer's notes. The driver checks initial setup and service health; it does not yet test reboot recovery, cached clones or the transactional updater.
A fresh live run passed on 2026-09-11 with the following configuration:
| Component | Verified value |
|---|---|
| Proxmox VE | 9.2.18, build 614bede5d65599c6 |
| Host kernel | 7.0.14-16-pve |
| Guest template | debian-13-standard_13.6-1_amd64.tar.zst |
| LXC | Unprivileged, nesting=1,keyctl=1, 2 CPUs, 8 GiB RAM, 40 GiB disk |
| NanoClaw commit | 74224f62a6c08418acccc727114ab02f92e403bf |
| Installer result | status: pass, exit_code: 0, ping: ok, phase: complete |
| Service | systemd-user, active and running, linger enabled |
The run completed in about four minutes, returned a real model reply, and passed NanoClaw's final verification. A subsequent inspection confirmed healthy OneCLI and PostgreSQL containers and removal of the temporary credential file. The guest and its OneCLI vault were retained. This establishes fresh-install compatibility for this configuration; reboot recovery was not exercised.
Earlier attempts exposed Proxmox's encoded description newline, transient guest DNS/APT failures, and stale Docker membership in an already-running user manager. The driver and bootstrap handle those cases, with offline regressions for each.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nanocoai/nanoclaw-oss-dev-tools --plugin nanoclaw-e2e10 skills in this plugin
/e2e-channelsFind the test credentials each NanoClaw messaging channel needs (Slack, Telegram, Discord, Teams and the rest), from a file, NC_E2E_* environment variables or ~/.nanoclaw-e2e/channels/, and report every channel as ready or skipped with the missing variable named. Use before a channel E2E run, to see which channels can be tested, or to fill local credential files from 1Password./e2e-exe-devProvision an exe.dev VM and run a headless NanoClaw install on it end to end — Node/pnpm, Docker, OneCLI, vault secret, agent image, service, a cli-channel agent — then assert the same ping round-trip the setup wizard uses. Use to test a branch or PR on a real machine, to reproduce an install failure, or to bake a reusable base VM. Triggers on "e2e test on exe.dev", "install nanoclaw on a vm", "headless install", "test this branch end to end", "exe.dev"./e2e-