[Ubuntu 24.04][Onboard] onboard cannot create a GPU-enabled sandbox on Docker-driver GPU host
Description
Description
On a Docker-driver GPU host (NVIDIA GPU auto-detected), `nemoclaw onboard` cannot bring up a GPU-enabled sandbox. While creating the sandbox, onboard enables GPU passthrough — this is the standard create-then-GPU-enable path that runs on a normal FIRST onboard whenever a GPU is present on a Docker-driver gateway (gated by NEMOCLAW_DOCKER_GPU_PATCH); The OpenShell supervisor never reconnects to the GPU-enabled container, so the sandbox enters Error phase before the GPU proof can run, the step aborts with exit 1, and onboard fails. Reproduced on Ubuntu 24.04 (RTX PRO 6000 Blackwell) and Ubuntu 26.04 (RTX A6000) in v0.0.60. Environment
Device: GPU CI runners — Ubuntu 24.04 (NVIDIA RTX PRO 6000 Blackwell Server Edition, 97887 MB) and Ubuntu 26.04 (NVIDIA RTX A6000, 46068 MB)Steps to ReproduceOS: Ubuntu 24.04 / Ubuntu 26.04 Architecture: x86_64 Node.js: v22.22.2 npm: 10.9.7 Docker: docker (Docker-driver gateway; Docker CDI GPU support detected, /etc/cdi/nvidia.yaml) OpenShell CLI: 0.0.44 NemoClaw: v0.0.60
1. On a Docker-driver Linux GPU host (Ubuntu 24.04 or 26.04) with an NVIDIA GPU and Docker CDI GPU support, with no existing NemoClaw sandbox. 2. Run a normal first onboard: nemoclaw onboard (GPU auto-detected; OpenShell GPU passthrough enabled by default). 3. Onboard creates the sandbox and then enables GPU access on the Docker container (the GPU-enable step). 4. Observe the GPU-enable step result and the sandbox phase.Expected Result
The sandbox is created with GPU access, the OpenShell supervisor reconnects to the GPU-enabled container, the GPU proof runs, the sandbox reaches Ready, and the first onboard completes.Actual Result
The GPU-enable step fails and onboard aborts (exit 1). Product log: Docker-driver GPU patch active; creating sandbox first, then recreating the Docker container with GPU access. ... patched_create_option=--gpus all Docker GPU patch failed. OpenShell supervisor did not reconnect to the GPU-enabled container; pre-patch sandbox restored. OpenShell sandbox entered Error phase before the GPU proof could run. sandbox_phase=Error Diagnostics saved: /var/lib/gitlab-runner/.nemoclaw/onboard-failures/-my-assistant-docker-gpu-patch Escape hatch: set NEMOCLAW_DOCKER_GPU_PATCH=0 to skip this patch.
Bug Details
| Field | Value |
|---|---|
| Priority | Unprioritized |
| Action | Dev - Open - To fix |
| Disposition | Open issue |
| Module | Machine Learning - NemoClaw |
| Keyword | NemoClaw, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Onboard, NemoClaw_Sandbox, NemoClaw-SWQA-RelBlckr-Recommended |
[NVB#6281494]
✨ Thanks for submitting this detailed issue about the onboard process failing to create a GPU-enabled sandbox on a Docker-driver GPU host. This identifies a bug in the onboarding and sandbox areas that affects the NVIDIA provider on Ubuntu.
reproduced on dgx-station
Verified on an NVIDIA H100 80GB Docker-driver host with Docker CDI configured (/etc/cdi/nvidia.yaml present), clean baseline-vs-latest first-onboard with GPU auto-detected:
- v0.0.60 (reported version): reproduces. At [6/8] the GPU-enable step uses
patched_create_option=--gpus all, thenDocker GPU patch failed(Could not start GPU-enabled sandbox container: docker: Error response from daemon: ... CDI spec not found); the sandbox never reaches Ready and onboard aborts (exit 1). - v0.0.65 (latest): does NOT reproduce — fixed. Onboard now selects CDI mode (
✓ Docker GPU mode selected: --device nvidia.com/gpu=all), the GPU proof passes (nvidia-smi,/proc/<pid>/.../commwrite,cuInit(0)vialibcuda.so.1), and the sandbox reaches Ready / onboard completes.
Root cause of the fix: #4956 ("prefer CDI GPU mode over --gpus on CDI hosts") — not in v0.0.60, first shipped in v0.0.62, present in latest v0.0.65.
Caveat re: the reopen ("reproduced on dgx-station"): #4956 only switches to CDI mode on CDI hosts. A Docker-driver GPU host without a CDI spec still falls back to the --gpus all patch — the path that fails here. The dgx-station repro is most likely either that non-CDI fallback or an older build. Could the reporter confirm on that box: ls /etc/cdi/nvidia.yaml and the NemoClaw version? That distinguishes "stale reopen on an old build" from a genuine remaining gap in the non-CDI fallback.
Not closing — flagging for maintainer/reporter confirmation.
Second data point — tried to reproduce on a DGX Spark (GB10 Blackwell, aarch64, Ubuntu 26.04), the reported class. Could not reproduce, on old or latest.
Environment: NVIDIA Container Toolkit present; a CDI spec at /var/run/cdi/nvidia.yaml but no /etc/cdi/nvidia.yaml and no /etc/docker/daemon.json (Docker CDI not explicitly enabled); Docker 29.2.1; Docker-driver gateway.
First-onboard with GPU auto-detected, both code paths created a working GPU sandbox — the GPU-enable step never failed:
| Version | [6/8] GPU mode | Outcome |
|---|---|---|
v0.0.55 (pre-#4956, --gpus) |
Docker GPU mode selected: --gpus all |
supervisor reconnected, cuInit proof passed → sandbox Ready |
| v0.0.65 (latest, #4956 CDI mode) | Docker GPU mode selected: --device nvidia.com/gpu=all |
cuInit proof passed → sandbox Ready |
Notes:
- One unrelated blocker first: onboard aborted at [1/8] on a container-DNS failure (#2101 — this box's network blocks container UDP:53); worked around it to reach [6/8].
- Contrast with the H100 result above: there v0.0.60 with
--gpus allfailed (... CDI spec not found). The failure seems tied to Docker resolving CDI while--gpusis used — i.e., sensitive to Docker version + CDI state, and possibly a supervisor-reconnect race (cf. the prior "debounce/harden reconnect" fixes).
To pin down the reopened repro, could the reporter share from the affected box: docker --version, docker info | grep -i cdi, ls -la /etc/cdi /var/run/cdi, the NemoClaw version, and whether it's intermittent? That distinguishes a Docker/CDI-config trigger from a timing race or a stale build.
@jason-ma-nv could you please confirm the NemoClaw version and CDI state on the DGX Station repro box?
#4956 should fix this on Docker CDI hosts by selecting CDI mode instead of --gpus all, and the v0.0.65 retest on a CDI host no longer reproduced. If the DGX Station repro was on an older build or missing CDI setup, we can close this as resolved by #4956.
Re-ran a fresh GPU onboard on a CDI Docker-driver host I have access to. Summary: I can't reproduce this on that host.
Host / build under test
- DGX Spark (GB10), Ubuntu 26.04 LTS, aarch64
- NemoClaw v0.0.55, OpenShell 0.0.44
- CDI configured:
/run/cdi/nvidia.yamlpresent (nvidia-ctk 1.19.1)
Result — GPU-enabled onboard succeeds:
[1/8] Preflight checks
✓ NVIDIA GPU detected (NVIDIA GB10, 124607 MB)
✓ Docker CDI GPU support detected (/run/cdi/nvidia.yaml)
✓ Sandbox GPU: enabled (auto)
[6/8] Creating sandbox
✓ Docker GPU mode selected: --gpus all
... sandbox reached Ready ...
OpenClaw is ready (exit 0)
nemoclaw <name> status afterward: Phase: Ready, Host GPU: yes, Sandbox GPU: enabled (auto).
Note on #4956: v0.0.55 predates #4956 (v0.0.55 tagged 2026-05-29; #4956 merged 2026-06-10), so it took the --gpus all path rather than the CDI --device nvidia.com/gpu=all mode #4956 adds — and it still created a GPU-enabled sandbox successfully here. So on this host the pre-#4956 --gpus all path isn't broken, which points to the original failure being specific to the DGX Station / Ubuntu 24.04 environment (where --gpus all fails) that #4956's CDI-mode preference targets.
I don't have the original DGX Station repro box, so I can't read its NemoClaw version + CDI state at repro time — that's the piece still needed to confirm it was a pre-#4956 / non-CDI build. If it was, I'm fine closing this as resolved by #4956.