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).
The problem
Section titled “The problem”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.
Options
Section titled “Options”The issue gives a proposal. The other options are the brief’s.
Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified The Virtualization framework has an error for “an attempt to start a virtual machine (VM) exceeded the limit of the number of running VMs the framework allows”,
VZErrorVirtualMachineLimitExceeded(VZError.h, macOS 27 SDK). - verified S06-04-vms-and-placementS06-04-vms-and-placement: VMs and PlacementThe work VM and the isolated VM, Xcode in them, and which VM a project's sessions run in. gives the two slots to the work VM and the isolated VM, counts VMs “started by other software”, and has
wb-hostdperform admission control. S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. lists admission control underwb-hostd. - verified Images are built locally on each host (V1-07-local-imagesV1-07-local-images: Images are built locallyEach host builds its own guest images (S06-vm-lifecycle).). Every image build therefore takes a slot on the user’s own Mac.
- verified Image updates swap the system disk for a fresh clone (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.). A test boot before the swap is the issue’s idea, 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. doesn’t have it yet.
- verified Whether a saved state can be restored reliably, and reused, is X02-warm-startX02-warm-start: Warm startMeasure time to restore a macOS guest from saved state with a vsock device and a file-handle network attachment. (I16I16 (closed): X02-warm-start: Warm startHow long does it take to restore a macOS guest from saved state with a vsock device and a file-handle network attachment?).
- assumed That a VM whose state is saved and which is stopped no longer counts against the limit. Option A depends on it. X02-warm-startX02-warm-start: Warm startMeasure time to restore a macOS guest from saved state with a vsock device and a file-handle network attachment. can confirm it in passing.
- assumed That no public API lists macOS VMs other programs run. If one exists,
wbcan name them in the refusal. - assumed Whether Xcode builds and simulators need a GUI login. That is X06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login? (I20I20 (closed): X06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login?).
What this unblocks
Section titled “What this unblocks”- The admission section in 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., now, for builds, update checks, and other software.
- GUI placement, after X06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login? (I20I20 (closed): X06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login?). 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. is blocked by it.
wb image buildin V1-M2-walking-skeletonV1-M2-walking-skeleton: Walking skeletonwb-vmd boots a fixture VM bundle in its confined process, wb-guestd answers over vsock, a data disk made on the host holds the homes, and wb shell opens a PTY as a project user, with its output through the terminal fi…, which needs a slot rule.- 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)., which applies the same limit to agents on development Macs.
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-hostdthat 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.