Skip to content

[WSL2] [6/7] SSH exited with status 1 - OpenClaw never initializes inside sandbox #627

Closed

Description

@b0970981111-dev

Description

Environment

  • OS: Windows 11, 64-bit
  • WSL2 with Ubuntu 24.04
  • Docker version: 28.2.2
  • NemoClaw version: 0.1.0
  • OpenShell CLI: 0.0.12
  • CPU: Intel i7-9700F
  • RAM: 32GB
  • GPU: NVIDIA GeForce GTX 1660 Super (6GB VRAM)

Problem

Every time the onboard wizard reaches [6/7] Setting up OpenClaw inside sandbox,
it fails with the following error:

Error: × ssh exited with status exit status: 1
Command failed (exit 1): cat <<'EOF_NEMOCLAW_SYNC' | openshell sandbox connect "my-assistant"
set -euo pi

Steps to Reproduce

  1. Install WSL2 with Ubuntu on Windows
  2. Install Docker inside WSL2
  3. Run: curl -fsSL https://nvidia.com/nemoclaw.sh | bash
  4. Follow the onboard wizard
  5. Steps [1/7] through [5/7] complete successfully
  6. [6/7] fails with SSH error every time

What I Tried

  • Re-running nemoclaw onboard multiple times
  • Manually starting the gateway first
  • Running nemoclaw setup my-assistant
  • Manually connecting via openshell sandbox connect my-assistant
    (this works, but openclaw command is not found inside the sandbox)
  • Manually running npm install -g openclaw inside sandbox
    (fails due to network DNS resolution failure inside sandbox)

Result

The sandbox is created but OpenClaw is never initialized inside it.
The /sandbox/.openclaw/ directory does not exist.
Network access inside sandbox is completely blocked (expected by design),
but the initialization never happens because [6/7] SSH step fails first.

Expected Behavior

[6/7] should successfully connect to the sandbox via SSH and
initialize OpenClaw with the proper configuration and network policies.

Additional Notes

This appears to be a known WSL2 nested virtualization issue
(WSL2 → Docker → k3s → sandbox container = 4 layers of virtualization).
The SSH connection attempt happens before the sandbox is fully ready.
Adding a delay or retry mechanism in [6/7] might fix this.

Reproduction Steps

  1. Install WSL2 with Ubuntu 24.04 on Windows 11
  2. Install Docker inside WSL2 manually (sudo apt install docker.io)
  3. Run: curl -fsSL https://nvidia.com/nemoclaw.sh | bash
  4. Follow the onboard wizard, select model 1 (Nemotron 3 Super 120B)
  5. Steps [1/7] through [5/7] complete successfully
  6. [6/7] Setting up OpenClaw inside sandbox fails every time with SSH error
  7. Manually connecting via: openshell sandbox connect my-assistant works
  8. But openclaw command not found inside sandbox
  9. Tried npm install -g openclaw inside sandbox - fails due to DNS resolution failure

Environment

  • OS: Windows 11 64-bit + WSL2 Ubuntu 24.04
  • Node.js: v22 (auto-installed by nemoclaw)
  • Docker: 28.2.2 (installed via apt inside WSL2)
  • NemoClaw: 0.1.0
  • OpenShell CLI: 0.0.12
  • CPU: Intel Core i7-9700F
  • RAM: 32GB
  • GPU: NVIDIA GeForce GTX 1660 Super 6GB
  • Docker NOT running as systemd service (manual dockerd start required in WSL2)

Debug Output

Error: × ssh exited with status exit status: 1
Command failed (exit 1): cat <<'EOF_NEMOCLAW_SYNC' | openshell sandbox connect "my-assistant"
set -euo pi

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. wscurran commented on Mar 30, 2026

    @wscurran
    Contributor

    ✨ Thanks for submitting this issue with a detailed summary, it identifies a bug with OpenClaw initialization inside a sandbox on WSL2, which could be related to the OpenClaw configuration or platform-specific issues.

  2. jieunl24 commented on Apr 1, 2026

    @jieunl24
    Contributor

    Hi, apologies for the delay in getting to this issue. This issue is no longer reproducible with the latest nemoclaw and openshell versions. Kindly re-open issue if the issue persists. Thanks!

  3. added
    platform: wsl
    and removed on Jun 3, 2026
  4. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    integration: openclawplatform: wsl

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions