[WSL2 x86][Onboard] nemoclaw onboard exits silently when Local Ollama is unreachable from Docker container via host.openshell.internal:11434
Description
Description
On WSL2 (x86_64) with Docker Desktop, nemoclaw onboard fails at the inference provider setup step when the user selects Local Ollama. Ollama binds to 127.0.0.1 by default, but Docker containers reach the host via host.openshell.internal — a different network path that cannot resolve to WSL2's loopback. The reachability check fails after 3 retries and onboard exits with no actionable guidance. The installer detects both "Running under WSL" and "Detected container runtime: docker-desktop" but does not warn that Ollama must be configured with OLLAMA_HOST=0.0.0.0.Environment
Device: WSL2 x86_64 (Docker Desktop on Windows, hostname: 2u1g-x570-0313) OS: Ubuntu 24.04 (WSL2) Architecture: x86_64 Node.js: v22.22.2 npm: 10.9.7 Docker: 29.4.1 OpenShell CLI: openshell 0.0.36 NemoClaw: v0.0.31 (installed via curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash) OpenClaw: N/A (onboard not completed) Ollama: latest (installed via https://ollama.com/install.sh) Model pulled: qwen2.5:7bSteps to Reproduce
1. On a WSL2 (Ubuntu 24.04 x86_64) machine with Docker Desktop running: curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash 2. Accept license, proceed to onboard 3. At [3/8] Configuring inference (NIM), select option 7 — Install Ollama (Linux) → Ollama installer fails with "requires zstd" error 4. Install zstd: sudo apt-get install zstd 5. Install Ollama manually: curl -fsSL https://ollama.com/install.sh | sh → Ollama installed, listening on 127.0.0.1:11434 6. Re-run nemoclaw onboard (resume), select option 7 — Local Ollama (localhost:11434) 7. Choose model qwen2.5:7b, pull completes successfully 8. Set sandbox name and confirm configurationExpected Result
Either:
(a) The installer detects WSL2 + docker-desktop + Ollama on 127.0.0.1, warns the user that
Ollama must listen on 0.0.0.0 for Docker containers to reach it, and provides the fix:
sudo systemctl edit ollama → add: Environment="OLLAMA_HOST=0.0.0.0"
OR prompts the user to let the installer reconfigure Ollama automatically.
(b) If the reachability check fails, the error message includes the WSL2-specific root cause
and actionable fix steps — not just "may still work" followed by silent exit.
Actual Result
Local Ollama is responding on 127.0.0.1, but the Docker container reachability check failed for http://host.openshell.internal:11434. This may be a Docker networking issue — the sandbox uses a different network path and may still work. Diagnostic: Docker command failed (image pull error or runtime failure). Retried 3 times. Onboard exits immediately. No sandbox is created. No fix guidance is provided.Root Cause
In WSL2 + Docker Desktop, Docker containers are in a separate network namespace from the
WSL2 host. Ollama's default binding (127.0.0.1) is the WSL2 loopback — inaccessible from
within Docker containers. The nemoclaw onboard wizard routes sandbox-to-Ollama traffic via
host.openshell.internal:11434, which maps to the Docker host bridge IP, not WSL2's loopback.
Fix: Ollama must be configured with OLLAMA_HOST=0.0.0.0 before onboard in WSL2 environments.
The installer already detects both conditions ("Running under WSL" + "docker-desktop") but
does not act on them.
Log:
local-qa@2u1g-x570-0313:/mnt/c/Users/local-mercl$ curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash███╗ ██╗███████╗███╗ ███╗ ██████╗ ██████╗██╗ █████╗ ██╗ ██╗ ████╗ ██║██╔════╝████╗ ████║██╔═══██╗██╔════╝██║ ██╔══██╗██║ ██║ ██╔██╗ ██║█████╗ ██╔████╔██║██║ ██║██║ ██║ ███████║██║ █╗ ██║ ██║╚██╗██║██╔══╝ ██║╚██╔╝██║██║ ██║██║ ██║ ██╔══██║██║███╗██║ ██║ ╚████║███████╗██║ ╚═╝ ██║╚██████╔╝╚██████╗███████╗██║ ██║╚███╔███╔╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝
Launch OpenClaw in an OpenShell sandbox.
[1/3] Node.js ────────────────────────────────────────────────── [INFO] Node.js found: v22.22.2 [INFO] Runtime OK: Node.js v22.22.2, npm 10.9.7
[2/3] NemoClaw CLI ────────────────────────────────────────────────── [INFO] Installer payload is not a persistent source checkout — installing from GitHub… [INFO] Installing NemoClaw from GitHub… [INFO] Resolved install ref: latest ✓ Cloning NemoClaw source ✓ Preparing OpenClaw package ✓ Installing NemoClaw dependencies ✓ Building NemoClaw CLI modules ✓ Building NemoClaw plugin ✓ Linking NemoClaw CLI ✓ Installing OpenShell CLI [INFO] Created user-local shim at /home/local-qa/.local/bin/nemoclaw [INFO] Created user-local shim at /home/local-qa/.local/bin/nemoclaw [INFO] Verified: nemoclaw is available at /home/local-qa/.local/bin/nemoclaw
[3/3] Onboarding ──────────────────────────────────────────────────
Detected container runtime: docker-desktop Running under WSL [INFO] Installer stdin is piped; attaching the usage notice to /dev/tty…
Third-Party Software Notice - NemoClaw Installer ────────────────────────────────────────────────── NemoClaw is licensed under Apache 2.0 and automatically retrieves, accesses or interacts with third-party software and materials, including by deploying OpenClaw in an OpenShell sandbox. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses.
You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case.
This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any third-party software, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.
OpenClaw security guidance https://docs.openclaw.ai/gateway/security
Type 'yes' to accept the NemoClaw license and and third-party software notice and continue [no]: yes [INFO] Running nemoclaw onboard… [INFO] Installer stdin is piped; attaching onboarding to /dev/tty…
NemoClaw Onboarding
[1/8] Preflight checks ────────────────────────────────────────────────── ✓ Docker is running ✓ Container DNS resolution works ✓ Container runtime: docker-desktop ⓘ Running under WSL ✓ openshell CLI: openshell 0.0.36 Cleaning up orphaned gateway container... ✓ Orphaned gateway container removed ✓ Port 8080 available (OpenShell gateway) ⓘ Local NIM unavailable — no GPU detected ✓ Memory OK: 64266 MB RAM + 16384 MB swap
[2/8] Starting OpenShell gateway ────────────────────────────────────────────────── Using pinned OpenShell gateway image: ghcr.io/nvidia/openshell/cluster:0.0.36 Starting gateway cluster... Still starting gateway cluster... (5s elapsed) Still starting gateway cluster... (10s elapsed) Still starting gateway cluster... (20s elapsed) Still starting gateway cluster... (30s elapsed) Still starting gateway cluster... (40s elapsed) Installing OpenShell components... Starting OpenShell gateway pod... Still starting OpenShell gateway pod... (50s elapsed) Still starting OpenShell gateway pod... (60s elapsed) Waiting for gateway health... Waiting for gateway health... Gateway container is still running healthy; allowing up to 60s for first-time startup. ✓ Gateway is healthy ✓ Active gateway set to 'nemoclaw'
[3/8] Configuring inference (NIM) ──────────────────────────────────────────────────
Inference options: 1) NVIDIA Endpoints 2) OpenAI 3) Other OpenAI-compatible endpoint 4) Anthropic 5) Other Anthropic-compatible endpoint 6) Google Gemini 7) Install Ollama (Linux)
Choose [1]: 7 Installing Ollama via official installer... [sudo] password for local-qa: ERROR: This version requires zstd for extraction. Please install zstd and try again:
- Debian/Ubuntu: sudo apt-get install zstd
- RHEL/CentOS/Fedora: sudo dnf install zstd
- Arch: sudo pacman -S zstd
Installing ollama to /usr/local Command failed (exit 1): set -o pipefail; curl -fsSL https://ollama.com/install.sh | sh local-qa@2u1g-x570-0313:/mnt/c/Users/local-mercl$ set -o pipefail; curl -fsSL https://ollama.com/install.sh | sh Cleaning up old version at /usr/local/lib/ollama Installing ollama to /usr/local ERROR: This version requires zstd for extraction. Please install zstd and try again:
- Debian/Ubuntu: sudo apt-get install zstd
- RHEL/CentOS/Fedora: sudo dnf install zstd
- Arch: sudo pacman -S zstd local-qa@2u1g-x570-0313:/mnt/c/Users/local-mercl$ sudo apt-get install zstd Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: zstd 0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded. Need to get 644 kB of archives. After this operation, 1845 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 zstd amd64 1.5.5+dfsg2-2build1.1 [644 kB] Fetched 644 kB in 1s (1068 kB/s) Selecting previously unselected package zstd. (Reading database ... 49947 files and directories currently installed.) Preparing to unpack .../zstd_1.5.5+dfsg2-2build1.1_amd64.deb ... Unpacking zstd (1.5.5+dfsg2-2build1.1) ... Setting up zstd (1.5.5+dfsg2-2build1.1) ... Processing triggers for man-db (2.12.0-4build2) ... local-qa@2u1g-x570-0313:/mnt/c/Users/local-mercl$ set -o pipefail; curl -fsSL https://ollama.com/install.sh | sh
Cleaning up old version at /usr/local/lib/ollama Installing ollama to /usr/local Downloading ollama-linux-amd64.tar.zst ######################################################################## 100.0% Creating ollama user... Adding ollama user to render group... Adding ollama user to video group... Adding current user to ollama group... Creating ollama systemd service... Enabling and starting ollama service... Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service. The Ollama API is now available at 127.0.0.1:11434. Install complete. Run "ollama" from the command line. local-qa@2u1g-x570-0313:/mnt/c/Users/local-mercl$ curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
███╗ ██╗███████╗███╗ ███╗ ██████╗ ██████╗██╗ █████╗ ██╗ ██╗ ████╗ ██║██╔════╝████╗ ████║██╔═══██╗██╔════╝██║ ██╔══██╗██║ ██║ ██╔██╗ ██║█████╗ ██╔████╔██║██║ ██║██║ ██║ ███████║██║ █╗ ██║ ██║╚██╗██║██╔══╝ ██║╚██╔╝██║██║ ██║██║ ██║ ██╔══██║██║███╗██║ ██║ ╚████║███████╗██║ ╚═╝ ██║╚██████╔╝╚██████╗███████╗██║ ██║╚███╔███╔╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝
Launch OpenClaw in an OpenShell sandbox.
[1/3] Node.js ────────────────────────────────────────────────── [INFO] Node.js found: v22.22.2 [INFO] Runtime OK: Node.js v22.22.2, npm 10.9.7
[2/3] NemoClaw CLI ────────────────────────────────────────────────── [INFO] Installer payload is not a persistent source checkout — installing from GitHub… [INFO] Installing NemoClaw from GitHub… [INFO] Resolved install ref: latest ✓ Cloning NemoClaw source ✓ Preparing OpenClaw package ✓ Installing NemoClaw dependencies ✓ Building NemoClaw CLI modules ✓ Building NemoClaw plugin ✓ Linking NemoClaw CLI ✓ Installing OpenShell CLI [INFO] Created user-local shim at /home/local-qa/.local/bin/nemoclaw [INFO] Created user-local shim at /home/local-qa/.local/bin/nemoclaw [INFO] Verified: nemoclaw is available at /home/local-qa/.local/bin/nemoclaw
[3/3] Onboarding ──────────────────────────────────────────────────
Detected container runtime: docker-desktop Running under WSL [INFO] Installer stdin is piped; attaching the usage notice to /dev/tty… [INFO] Running nemoclaw onboard… [INFO] Previous onboarding session failed. Resume the failed session, or start fresh? [R/f]: R [INFO] Installer stdin is piped; attaching onboarding to /dev/tty…
NemoClaw Onboarding (resume mode)
[1/8] Preflight checks ────────────────────────────────────────────────── [resume] Skipping preflight (cached)
[2/8] Starting OpenShell gateway ────────────────────────────────────────────────── [resume] Skipping gateway (running)
[3/8] Configuring inference (NIM) ────────────────────────────────────────────────── Detected local inference option: Ollama
Inference options: 1) NVIDIA Endpoints 2) OpenAI 3) Other OpenAI-compatible endpoint 4) Anthropic 5) Other Anthropic-compatible endpoint 6) Google Gemini 7) Local Ollama (localhost:11434) — running (suggested)
Choose [1]: 7 ✓ Using Ollama on localhost:11434
Ollama starter models: 1) qwen2.5:7b 2) Other...
No local Ollama models are installed yet. Choose one to pull and load now.
Choose model [1]: 1 Pulling Ollama model: qwen2.5:7b pulling manifest pulling 2bada8a74506: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 4.7 GB pulling 66b9ea09bd5b: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 68 B pulling eb4402837c78: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 1.5 KB pulling 832dd9e00a68: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 11 KB pulling 2f15b3218f05: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 487 B verifying sha256 digest writing manifest success Loading Ollama model: qwen2.5:7b Responses API available — OpenClaw will use openai-responses. ℹ Using chat completions API (Ollama tool calls require /v1/chat/completions) Sandbox name (lowercase, starts with letter, hyphens ok) [my-assistant]: abc
────────────────────────────────────────────────── Review configuration ────────────────────────────────────────────────── Provider: ollama-local Model: qwen2.5:7b API key: (not required for ollama-local) Web search: disabled Messaging: none Sandbox name: abc Note: Sandbox build takes ~6 minutes on this host. ────────────────────────────────────────────────── Web search and messaging channels will be prompted next. Apply this configuration? [Y/n]: Y
[4/8] Setting up inference provider ────────────────────────────────────────────────── ✓ Active gateway set to 'nemoclaw' Local Ollama is responding on 127.0.0.1, but the Docker container reachability check failed for http://host.openshell.internal:11434. This may be a Docker networking issue — the sandbox uses a different network path and may still work. Diagnostic: Docker command failed (image pull error or runtime failure). Retried 3 times. local-qa@2u1g-x570-0313:/mnt/c/Users/local-mercl$ Workaround
sudo systemctl stop ollama sudo systemctl edit ollama # Add under [Service]: # Environment="OLLAMA_HOST=0.0.0.0" sudo systemctl restart ollama # Then re-run: nemoclaw onboardRelated Bugs
- Bug 6045023: [macOS][Ollama] Local Ollama inference hangs via host.openshell.internal (same routing path, different platform and failure mode) - Bug 6095995: [WSL2][Install] Gateway fails with cpuset cgroup (v2) error (same platform, different issue)
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_Inference, NemoClaw_Onboard, NemoClaw-SWQA-RelBlckr-Recommended |
[NVB#6131584]
@hulynn , can you run these commands and copy the results here?
-
Remove Environment="OLLAMA_HOST=0.0.0.0" from ollama service.
-
in Windows PowerShell
Get-Content "$env:USERPROFILE\.wslconfig" -ErrorAction SilentlyContinue -
in Windows PowerShell
wsl --version -
in WSL
ip -4 addr show eth0 | awk '/inet /{print $2}' -
In Windows PowerShell
Get-NetIPAddress -AddressFamily IPv4 | Where-Object { $_.InterfaceAlias -match "WSL|Hyper-V" } | Select-Object InterfaceAlias, IPAddress -
In Windows PowerShell
Get-NetTCPConnection -LocalPort 11434 -State Listen -ErrorAction SilentlyContinue | Select-Object LocalAddress, OwningProcess -
in sandbox shell (run
nemoclaw <name> connectfirst)getent hosts host.openshell.internal
Checked the machine that has this issue. It's because docker-ce is used instead of docker desktop.
Closing this issue. It should be fixed by https://github.com/NVIDIA/NemoClaw/pull/3732.