Repository navigation
Description
Investigation Summary
- Initial onboarding from
mainwith--experimental-profile portablesucceeds on a custom Linux desktop with rootless Podman and host Ollama. - After ending the user session or restarting the host,
NEMOCLAW_EXPERIMENTAL_PROFILE,CONTAINERS_CONF, andNETAVARK_FWare absent from both the new shell and the systemd user-manager environment. - The OpenShell sandbox reports
Error; its stopped Podman container cannot start because Netavark falls back to nftables and reportsunable to execute nft: No such file or directory. - Restoring the portable environment lets the container start and OpenShell reports it as
Ready, butrecoverandgateway restartfail withfailure layer: privileged control unavailable. - The recovered Podman container has no
openshell.ai/*labels, andpodman topshows onlyopenshell-sandbox: nonemoclaw-startsupervisor and no OpenClaw gateway.
Description
The hidden portable Podman profile works during its initial onboarding process but cannot recover the sandbox after a new user session or host restart.
Initial onboarding launches the managed workload through the live openshell sandbox create ... -- env ... nemoclaw-start operation. After the session ends, the portable host environment and managed startup authority are not replayed. Restoring only the Netavark environment can make the underlying container run, but it returns as a basic OpenShell Podman sandbox without the container ownership metadata or managed process topology required by NemoClaw lifecycle control.
Expected behavior: a sandbox that completes portable onboarding can recover after a user-session or host restart, including Podman networking, managed startup, OpenClaw gateway health, and inference.local. At minimum, the hidden experiment should not report successful onboarding if its durable recovery authority is incomplete.
Actual behavior: the sandbox becomes unrecoverable through start, recover, gateway restart, rebuild, and onboard --resume.
This is a focused real-host reproduction of the restart and lifecycle-recovery acceptance gap already tracked by #7744. It does not request a public Podman support claim.
Reproduction Steps
-
On a custom Linux desktop with rootless Podman and host Ollama, install from
main:curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_INSTALL_REF=main bash -s -- \ --experimental-profile portable \ --yes-i-accept-third-party-software -
Confirm the initial sandbox, OpenClaw gateway, Ollama backend on port 11434, auth proxy on port 11435, and
inference.localare healthy. -
End the desktop user session or restart the host, then start a new session.
-
Run
openshell sandbox list. The sandbox reportsError, whilepodman ps -ashows its container stopped. -
Confirm these return no value:
echo "$NEMOCLAW_EXPERIMENTAL_PROFILE" systemctl --user show-environment | grep NETAVARK systemctl --user show-environment | grep CONTAINERS_CONF
-
Run
podman start <container>. It fails with a Netavark nftables error becausenftdoes not exist. -
Restore
NEMOCLAW_EXPERIMENTAL_PROFILE=portable,CONTAINERS_CONF=~/.config/nemoclaw/portable/containers.conf, andNETAVARK_FW=iptables; import the runtime values withsystemctl --user set-environment; restart the Podman and NemoClaw OpenShell services; then start the container. -
Confirm
openshell sandbox listnow reportsReady. -
Run
nemoclaw <name> connect --probe-only,nemoclaw <name> recover, ornemoclaw <name> gateway restart. Recovery fails because the OpenClaw gateway is not running; the explicit failure layer isprivileged control unavailable. -
Run
podman inspect <container> | grep openshell.ai: no matching labels are present. -
Run
podman top <container>: onlyopenshell-sandboxis present; neithernemoclaw-startnor OpenClaw is running.
Environment
- OS: custom Linux desktop; exact distribution and version not captured
- Container runtime: rootless Podman; exact version not captured
- NemoClaw:
main, installed on 2026-08-06 with the hidden portable profile after fix(onboard): omit Docker-only Podman config #8415 merged - OpenShell: installer-selected version
- Agent: OpenClaw
- Inference: host Ollama on port 11434 through the NemoClaw auth proxy on port 11435
- Networking: Netavark with the generated portable
containers.conf, configured forpastaandiptables
Debug Output
A full debug archive was not transferred from the Linux host. The following focused diagnostics were collected without credentials:
After the new session:
NEMOCLAW_EXPERIMENTAL_PROFILE: empty
systemd user environment NETAVARK_FW: absent
systemd user environment CONTAINERS_CONF: absent
openshell sandbox list: Error
podman container state: stopped
podman start:
netavark: nftables error: unable to execute nft: No such file or directory
After restoring the portable environment:
openshell sandbox list: Ready
OpenClaw gateway probe: not running
automatic recovery: failed
failure layer: privileged control unavailable
openshell.ai labels: none
podman top: openshell-sandbox only
Related Work
- [Epic] Support native Podman with buildless managed onboarding #7744 defines the accepted native-Podman outcome and requires persisted identity, restart, rebuild, and crash recovery before activation.
- fix(onboard): omit Docker-only Podman config #8415 fixes the Podman gateway schema by omitting Docker-only
supervisor_bin, but its E2E proves gateway startup rather than sandbox recovery after a user-manager or host restart.
Suggested Validation
Add a real rootless-Podman scenario that:
- Completes portable onboarding and proves an OpenClaw inference turn.
- Restarts the systemd user manager or reboots the host.
- Recovers the existing sandbox without recreating user state.
- Proves the managed supervisor, OpenClaw gateway, port 11435, and
https://inference.local/v1/models. - Proves lifecycle commands use provider-owned durable authority rather than Docker-specific labels or process-global environment.
Activity
Dongni-Yang commentedon Aug 6, 2026
Source-level triage of this repro, offered as evidence for classification. I did not reproduce on a rootless Podman host; the notes below are code reading against
mainthat corroborates each observed symptom.The two failure layers are owned differently
Layer 1: the Netavark failure (steps 4-7) is NemoClaw-owned.
preparePortableExperimentalHostpersists the portable runtime withsystemctl --user set-environment(src/lib/onboard/experimental/portable-host-preparation.ts:168-179). That call writes the user manager's runtime environment, which does not survive a user-manager restart. Nothing in the repository writes~/.config/environment.d/, which is the durable equivalent.NEMOCLAW_EXPERIMENTAL_PROFILEis never persisted either. It is exported only inside the installer process (scripts/install.sh:5047).Those two facts close the loop on the reported symptom. On a new session the profile variable is absent, so the
isPortableExperimentalProfile(env)gate returns early (portable-host-preparation.ts:148) and the host is never re-prepared. The only caller is the onboarding path (src/lib/onboard/fatal-runtime-preflight.ts:65), so no lifecycle command re-applies it. Netavark then falls back to nftables, which matches the reportedunable to execute nft: No such file or directory.Layer 2: the recovery failure (steps 9-11) is not reachable from this repository.
NemoClaw discovers sandbox containers by the
openshell.ai/managed-by=openshellandopenshell.ai/sandbox-namelabels (src/lib/sandbox/privileged-exec.ts:7-9). Step 10 reports the container carries noopenshell.ai/*labels, and step 11 reports nonemoclaw-startsupervisor. Both are stamped by the OpenShell sandbox provider, not by NemoClaw.That explains why
recover,gateway restart, andconnectall report the same layer: they route through the same label-filtered discovery, andprivileged control unavailableis the expected result for a container that does not present as an OpenShell-managed sandbox (src/lib/actions/sandbox/gateway-restart.ts:173). Restoring the environment makes the container run, but it comes back as a plain Podman container, so no NemoClaw-side change makes it recoverable.What this implies for classification
Fixing layer 1 alone would remove the
nfterror and letpodman startsucceed without manual environment restoration. It would not make the sandbox recoverable, so it does not close this issue.Layer 2 is the durable-authority requirement that epic #7744 already lists as a precondition for activation, so this reads as evidence that an accepted epic criterion is not yet met rather than as a regression from #8415. #8415 proves gateway startup during onboarding, which is a different path from post-restart recovery, so the two are consistent.
I am taking the layer 1 slice. It is a self-contained defect in code this repository owns, and it is a prerequisite for layer 2 rather than an alternative to it: a container that will not start cannot be re-adopted however the provider-owned authority is eventually resolved.
The scope I am claiming is only the durable portable runtime, so that the profile survives a user-manager restart and a new session can run
podman startand seeopenshell sandbox listreportReadywithout manual environment restoration. That covers repro steps 4-8.I am not taking the
openshell.ai/*label authority, thenemoclaw-startsupervisor topology, or lifecycle recovery. Those stay with epic #7744. Any PR from me will useRefs #8441rather than a closing keyword, so this issue stays open for the maintainer to close when the recovery half lands.fix(onboard): keep the portable firewall driver in the Podman search …
fix(onboard): recover portable sandbox lifecycle (NVIDIA#8462)