Skip to content

What gets one of the two macOS VM slots when everything wants one?

Decided 2026-10-04: A. The work VM stays, the isolated slot is lent out. The decision and its reasons are in the I43I43 (closed): S06-vm-lifecycle: VM slot admission for image builds, updates and GUI work (NFR05-two-macos-vms)NFR05-two-macos-vms allows two running macOS guests per host, and S06-vm-lifecycle uses both: the work VM and the isolated VM. comment that starts Decision (2026-10-04):. Source: I43I43 (closed): S06-vm-lifecycle: VM slot admission for image builds, updates and GUI work (NFR05-two-macos-vms)NFR05-two-macos-vms allows two running macOS guests per host, and S06-vm-lifecycle uses both: the work VM and the isolated VM.. Affects S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does., NFR05-two-macos-vmsNFR05-two-macos-vms: Platform limitmacOS permits at most two concurrently running macOS guests per host., NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. and SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another.. Related: I50I50 (closed): Test infrastructure for work that needs a running macOS guestMost v1 work needs a running macOS guest to test: spikes X02-warm-start to X08-data-disk and X17-image-build to X20-shared-homebrew, the conformance suite, and the benchmarks (S11-verification-and-spikes). (the same limit on development Macs).

host: trustedwb image buildimage update checkXcode GUI workif X06 says soother VM appsUTM, Tartagents’ spike VMsI50wb-hostdadmission controlexplains refusalsat most two macOS VMs: untrustedslot 1: work VMevery trusted projectslot 2: isolated VMuntrusted repositories, GUI workskip wb-hostd

Figure 1. macOS runs at most two macOS guests, and S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. gives both slots to Wraith Box: the work VM and the isolated VM. Image builds, update checks, and possibly Xcode GUI work also need a running VM, and go through wb-hostd. Other VM software and the spike code agents run on a development Mac take a slot without asking wb-hostd (red). The Virtualization framework then refuses the next start.

The issue gives a proposal. The other options are the brief’s.

A. The work VM stays, the isolated slot is lent out

Section titled “A. The work VM stays, the isolated slot is lent out”

An image build or update check takes the isolated slot. If no session runs in the isolated VM, wb-hostd saves its state and stops it, then restores it afterward. If a session runs there, wb refuses, names the session, and says how to end it. When another program holds a slot, the start fails and wb says that a macOS VM outside Wraith Box is running.

A build or update check runs only when a slot is free. Otherwise wb refuses and tells the user to run wb vm stop.

A build takes whichever slot has no running session, the work VM’s included.

RequirementA. Lend isolatedB. RefuseC. Any idleD. As is
NFR05-two-macos-vmsNFR05-two-macos-vms: Platform limitmacOS permits at most two concurrently running macOS guests per host. at most two macOS VMsorderedby handorderedno order
NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. a refusal names its rule and the fixnames sessionnames fixnames sessiongeneric error
FR05-parallel-sessionsFR05-parallel-sessions: Parallel sessionsSeveral sessions can run at once, in the same project and across projects. sessions run in paralleluntrusted waituser stops VMstrusted waitunclear
SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another. untrusted repositories in their own VMholdsunchangedholdsGUI line open
FR06-native-toolsFR06-native-tools: Native guest toolsAgent tool calls run tools native to the guest operating system (on macOS guests: Homebrew packages, Xcode command line tools, optionally full Xcode). full Xcode in the guestX06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login?X06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login?X06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login?X06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login?
Details and glossary

Why the work VM keeps its slot. Every trusted project shares the work VM (S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does.), so stopping it interrupts the most sessions. The isolated VM is used less, and an untrusted session waiting for a build is the smaller cost.

Why the order matters for builds. An image build installs macOS from a restore image and can take long (X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM? measures it). Under A the isolated VM is stopped for that whole time, so wb should say how long, once X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM? has a number.

Glossary

  • Slot: one of the two macOS VMs a Mac may run at once.
  • Work VM: the VM for every trusted project, one guest user per project.
  • Isolated VM: the VM for untrusted repositories and for projects assigned to it.
  • Admission control: the rule in wb-hostd that decides whether a VM may start, and what to stop or refuse.
  • Saved state: a VM’s memory and devices written to a file so it can stop and later resume from that point.
  • GUI login: a user logged in at the guest’s graphical console, which some Xcode features may need.