Repository navigation
Description
WSL2 Support Tracking — Known Gaps & Workarounds
Summary
NemoClaw can run on WSL2 (Windows Subsystem for Linux 2), but requires significant manual intervention due to nested container networking issues. The embedded k3s cluster inside OpenShell cannot reliably reach container registries from within WSL2's virtualized network stack.
This issue tracks all known WSL2-specific bugs, workarounds, and proposed fixes in one place.
Full field guide with step-by-step fixes: Installing NemoClaw on WSL2: A Field Guide (link TBD)
Current WSL2 Status
| Feature | Status | Notes |
|---|---|---|
| Install NemoClaw CLI | ✅ Works | npm install succeeds |
| OpenShell gateway start | ❌ Fails | Timeout waiting for namespace (image pull failure) |
| Gateway with manual image seeding | ✅ Works | Requires crane + manual ctr import |
| TLS certificate bootstrap | ❌ Fails | Must generate X.509 v3 certs manually |
nemoclaw onboard |
Destroys working gateway, starts fresh (hits same timeout) | |
| Sandbox creation | imagePullPolicy: Always must be changed to IfNotPresent |
|
| NVIDIA Cloud NIM inference | ✅ Works | Once sandbox is running |
| Local Ollama inference | ❓ Untested |
Root Cause
WSL2 runs a Linux kernel inside a Hyper-V VM. Docker runs inside that VM. OpenShell creates a container running k3s, which runs its own containerd. That's four layers of virtualization:
Windows Host
└── WSL2 VM (Hyper-V)
└── Docker Engine
└── openshell-cluster-nemoclaw container
└── k3s + containerd
└── tries to reach registry-1.docker.io ← FAILS
The outermost Docker can reach registries. The innermost containerd cannot — likely due to how WSL2's virtual network adapter handles nested container DNS and routing. This isn't unique to NemoClaw; any tool running containerd-inside-Docker-inside-WSL2 (k3d, kind, Rancher Desktop) can hit similar issues.
Known Issues
1. Gateway bootstrap timeout — nested containerd can't pull images
Symptom:
K8s namespace not ready
timed out waiting for namespace 'openshell' to exist
Root cause: Pods are stuck in ImagePullBackOff because containerd inside k3s can't reach Docker Hub or GHCR.
Workaround: Use crane (Google's container registry tool) to pull images on the host, then manually import them into the embedded containerd:
crane pull --platform linux/amd64 docker.io/rancher/mirrored-pause:3.6 /tmp/pause.tar
docker cp /tmp/pause.tar openshell-cluster-nemoclaw:/tmp/pause.tar
docker exec openshell-cluster-nemoclaw ctr -n k8s.io images import /tmp/pause.tarWhy not docker save? Docker Desktop produces OCI index archives that ctr import cannot parse. You'll get content digest sha256:...: not found. crane produces the correct single-platform tarball format.
2. nemoclaw onboard destroys working gateway
Symptom: You manually fix the gateway (seed images, create TLS certs, get it healthy), then run nemoclaw onboard. It destroys your working gateway and starts fresh, hitting the same timeout.
Root cause: bin/lib/onboard.js unconditionally calls openshell gateway destroy before openshell gateway start.
Proposed fix (PR candidate):
// In startGateway(), before the destroy+start block:
const statusCheck = await $`openshell gateway status -g ${gatewayName}`.nothrow();
if (statusCheck.exitCode === 0 && statusCheck.stdout.includes('connected')) {
console.log(`Gateway '${gatewayName}' is already connected, skipping restart.`);
return;
}This benefits any environment where the gateway was pre-configured — not just WSL2.
3. imagePullPolicy: Always prevents using seeded images
Symptom: Images are imported into containerd, but pods still fail with ImagePullBackOff.
Root cause: The OpenShell gateway StatefulSet and sandbox pods have imagePullPolicy: Always, which forces k8s to contact the registry even when the image exists locally.
Workaround:
docker exec openshell-cluster-nemoclaw kubectl patch statefulset openshell \
-n openshell --type='json' \
-p='[{"op":"replace","path":"/spec/template/spec/containers/0/imagePullPolicy","value":"IfNotPresent"}]'Proposed fix: Default to IfNotPresent or make it configurable.
4. TLS certificates must be X.509 v3
Symptom:
invalid peer certificate: Other(OtherError(UnsupportedCertVersion))
Root cause: Basic openssl commands produce X.509 v1 certs. OpenShell requires v3.
Workaround: Generate certs with proper extensions:
openssl req -new -x509 -days 365 -key /tmp/ca.key -out /tmp/ca.crt \
-subj "/CN=openshell-ca" \
-addext "basicConstraints=critical,CA:TRUE" \
-addext "keyUsage=critical,keyCertSign,cRLSign"Environment
Tested on:
- Windows 11 + WSL2 Ubuntu 22.04
- Docker Engine 28.x (inside WSL2)
- 16GB RAM allocated to WSL
- NemoClaw from npm / GitHub main
- OpenShell 0.0.9 / 0.0.10
Proposed Improvements
- [Easy] Skip gateway destroy if already connected — PR the
startGateway()patch above - [Medium] Default
imagePullPolicytoIfNotPresent— or make it configurable via env var - [Docs] Add WSL2 troubleshooting section — link to field guide or inline the key workarounds
- [Hard] Investigate nested containerd networking — root cause fix in OpenShell or k3s config
Related Issues
- install failed #280 — Similar "namespace not ready" error (different root cause: cgroup v2)
- Sandbox image push fails with 'Connection reset by peer' at 2459 MiB during onboard #245 — Image push failures during onboard (related networking issues)
- macOS/Apple Silicon Support Tracking — Known Gaps & Fixes #260 — macOS tracking issue (similar platform-specific gaps)
Tested and documented by Substr8 Labs — building trust infrastructure for AI agents.
Activity
rudiheydra commentedon Mar 18, 2026
Full field guide published: https://substr8labs.substack.com/p/installing-nemoclaw-on-wsl2-a-field
Step-by-step walkthrough of every failure mode and fix, including the automated
fix-nemoclaw-wsl2.shscript.straimtheone commentedon Mar 18, 2026
Could this be related to a Docker Desktop installation? I'm running it on WSL2 by using an updated docker-ce (containerd) installation, and the only thing I did was make sure WSL can use up to 12GB of RAM (and the cgroups v2 "host" setup).
feat(wsl2): seamless RTX GPU inference via host-side Ollama
feat(wsl2): RTX GPU local inference with Ollama and LM Studio support
chore: derive build version from git tags for all components (NVIDIA#305
jieunl24 commentedon Apr 4, 2026
Thanks for the detailed analysis! Issues here have been addressed in the past 2 weeks
Closing this tracking issue - please feel free to raise any bugs or feature requests with the latest versions. Thanks!
fix(onboard): probe-and-pick WSL2 host IP candidates for local inference