Support exec and restart in Windows MXC ProcessContainer sandboxes

Ouverte
#5,913 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
30/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
rust
Domaine
cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Rust
Étoiles
21.5k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NVIDIA/OpenShell

Toutes les issues de NVIDIA/OpenShell

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.