Support exec and restart in Windows MXC ProcessContainer sandboxes

未關閉
#5,913 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
30/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust
領域
cli

研究方向

Start from the CLI handlers behind openshell sandbox exec and openshell sandbox start in the Rust sources, then follow how the Windows MXC ProcessContainer backend differs from the paths that already support exec and restart (the SSH-not-configured error is the entry point for exec). Read PR #5859 first, since the issue states it already implements this scope, and treat #5468 (Isolation Session) as out of scope. Done means the reproduction in the issue passes: exec prints hello from MXC and returns exit code 7, and start brings a stopped sandbox back to Ready with the workspace marker file intact on both x64 and ARM64.

由索引模型根據 Issue 內容生成。

描述

state:triage-needed
User Story

I use OpenShell on Windows to run and test workloads in MXC ProcessContainer sandboxes. I need to run another command in a Ready sandbox and restart a sandbox while keeping its workspace.

Problem Statement

Running an additional command in a Ready ProcessContainer sandbox fails. Restarting a stopped sandbox is unsupported.

Impact / Why This Matters

Impact / Why This Matters

Recreating the sandbox for each command interrupts the workload and forces me to repeat setup.

Acceptance Criteria

Support the existing openshell sandbox exec <name> --no-tty -- <program> [args...] and openshell sandbox start <name> commands on Windows x64 and ARM64 ProcessContainer. PR #5859 implements this scope. Isolation Session remains tracked in #5468.

Reproduction Steps
  1. On Windows, select a native OpenShell gateway configured to use MXC ProcessContainer.

  2. Create a sandbox named mxc-repro with a long-running startup command. Wait until openshell sandbox list shows it as Ready.

  3. Run a second command in the same sandbox and check its exit code.

    openshell sandbox exec mxc-repro --no-tty -- 'C:\Windows\System32\cmd.exe' /d /c 'echo hello from MXC&exit /b 7'
    $LASTEXITCODE
    

    Expected output is hello from MXC with exit code 7. On the affected build, exec reports SSH access is not configured for this supervisor.

  4. Place a marker file in the sandbox workspace, then stop the sandbox.

    openshell sandbox stop mxc-repro
    
  5. Once the sandbox shows Stopped, start it again.

    openshell sandbox start mxc-repro
    

    The sandbox should return to Ready with the marker file still present. On the affected build, start returns Unimplemented.

Suggested UX (if applicable)

No response

Environment

Windows x64 and ARM

Logs

主要語言
Rust
星號
21.5k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。