Support exec and restart in Windows MXC ProcessContainer sandboxes

Offen
#5,913 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Rust
Sterne
21.5k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NVIDIA/OpenShell

Alle Issues in NVIDIA/OpenShell

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.