Skip to content

bug(vm): sandbox entered error phase while provisioning #2940

Description

@linusyong

User Story

As an OpenShell users,
I want to be able to create a sandbox,
so that I can run my coding agents in the sandbox

Problem Statement

During creation of sandbox using openshell sandbox create, the following error encountered

❯ openshell sandbox create --name linus

Created sandbox: linus

✗ Error: ProcessExited: VM process exited with status 1
✓ Sandbox allocated (0s)
✓ Image pulled (3.4 GB) (6m 50s)
Error:   × sandbox entered error phase while provisioning: ProcessExited: VM process exited with status 1

Impact / Why This Matters

When this happens, user is not able to create a sandbox.
This result in user not able to use OpenShell with vm compute driver
This matters because OpenShell should be able to create sandbox with vm computer driver

Acceptance Criteria

  • sandbox can be created

Reproduction Steps

  1. Make sure that vm computer driver is used
    ❯ cat ~/.config/openshell/gateway.toml
    [openshell.gateway]
    compute_drivers = ["vm"]
    
  2. Run openshell sandbox create

Environment

  • OpenShell: v0.0.113
  • OS: macOS Tahoe 26.6.2
  • Runtime: vm
  • gateway.toml
    [openshell.gateway]
    compute_drivers = ["vm"]
    

Logs

[1787707350.459] [gateway] [INFO ] [openshell_server::grpc::sandbox] minted sandbox JWT
[1787707350.463] [gateway] [INFO ] [openshell_server::grpc::sandbox] CreateSandbox request completed successfully
[1787707763.721] [gateway] [INFO ] [openshell_server::compute] Sandbox phase changed
[1787707763.721] [gateway] [WARN ] [openshell_server::compute] VM process exited with status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:triage-neededOpened without agent diagnostics and needs triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions