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 摘要。