CellOS Lab On OrbStack
OrbStack can run a NixOS Linux machine on macOS. That is useful for CellOS userland work: cell-agent, Docker/Moby prerequisites, workspace directories, checkout initialization, and devcontainer lifecycle commands.
It is not production validation for Firecracker. On Apple Silicon this path does not validate KVM, TAP networking, virtio-vsock, jailer behavior, kernel/initrd boot, Firecracker process launch, or snapshot semantics.
What This Validates
Section titled “What This Validates”- NixOS CellOS module composition
cell-agentpackage wiring- Docker/Moby userland availability
- workspace and log directory shape
GuestService.InitializeWorkspacerequest shape- devcontainer execution-plan rendering
Nix Evaluation
Section titled “Nix Evaluation”nix flake check --extra-experimental-features 'nix-command flakes' --allow-import-from-derivationThe flake includes an orbstack-cellos-lab NixOS configuration for evaluation. Build/apply commands depend on the OrbStack NixOS machine setup.
Lab Flow
Section titled “Lab Flow”- Create a NixOS machine in OrbStack.
- Enable flakes inside that machine if needed.
- Build or apply the
nix/hosts/orbstack-cellos-labconfiguration. - Run
cell-agent. - Render a workspace execution plan on the host.
- POST that plan to the lab
cell-agentendpoint.
scripts/cellos-lab-smoke.sh examples/workspaces/devcontainer-execution
CELLOS_AGENT_ENDPOINT=http://127.0.0.1:8081 \ scripts/cellos-lab-smoke.sh examples/workspaces/devcontainer-executionBoundary
Section titled “Boundary”hostmacOS
→
workspace planlab machineOrbStack NixOS
→
cell-agentuserlandMoby / Docker
devcontainer lifecycleLab boundary
does not validate Firecracker or KVM