For the complete documentation index, see llms.txt. A markdown version of this page is at /workstations/providers/mac/index.md.

Mac workstations (vz)

On a Mac, Ringleader runs each workstation as a Linux virtual machine through vz, the default local provider on macOS.

On a Mac, Ringleader runs each workstation as a Linux virtual machine through vz, the default local provider on macOS. A workstation that names no provider runs on it. A vz workstation resolves names the way your Mac does. It can also share folders from your Mac, so a project on your Mac is the same project inside the workstation.

vz requirements

vz runs on a Mac that meets Ringleader’s macOS requirements. It also needs the ringleader-vz helper, which the Ringleader application carries. If the helper is missing, reinstall the application.

rl status marks the provider your Mac uses, and says why vz can’t run when it can’t. A Mac that can’t run vz has no default local provider, as Default local provider describes.

Virtual machine monitors on a Mac

On macOS 15 and later, vz runs each workstation on Ringleader’s own virtual machine monitor by default, built on Apple’s Hypervisor framework. On macOS 13 and 14, or where the ringleader-vz helper can’t run that monitor, vz uses Apple’s Virtualization framework, which is part of macOS.

Workstation size on a Mac

A workstation that sets no size gets one from your Mac, such as all of its CPUs and half its memory. The vz keys in the Providers reference give each default.

When you change cpus, memory or disk on an existing workstation, Ringleader stops it, applies the new size and starts it again. A disk can grow but never shrink. If you set a smaller disk, Ringleader refuses the change, and the workstation reports the field it can’t change. A workstation that sets no size keeps the one it was created with, even when your Mac’s defaults change.

Names and addresses a Mac workstation reaches

A vz workstation resolves names the way your Mac does, including names that only a VPN’s resolver or a file in /etc/resolver answers.

On your Mac’s own 127.0.0.1, a vz workstation reaches only what Ringleader itself needs. Nothing running in it, a coding agent included, reaches your Mac’s databases or model servers unless you carry them in. Reach a service on your Mac shows how.

Egress policy without an Edge on a Mac

A vz workstation enforces an egress policy and injects a credential with no Edge. Its network process on your Mac acts as the workstation’s Edge. Network processes and edge VMs says how, and what a declared Edge for vz changes. A strict or audit policy is accepted when you apply the workstation. One created before vz gave each workstation its own address reports NoEdge, as Enforcement by provider says.

Shared folders from your Mac

A shared folder is a folder on your Mac that appears inside a vz workstation, listed in the workstation’s providerConfig.mounts. A share is read-only unless you make it writable.

Only the Workstation’s own spec lists shares. A WorkstationConfig can’t carry providerConfig, so it can’t add a share to the workstations it reaches. qemu, hcs and the cloud providers ignore mounts and share nothing. Ringleader still checks the list when you apply a workstation on any of them.

When you change the list, Ringleader stops the workstation and starts it again once. Changing only the order of the entries changes nothing.

If a folder doesn’t exist on your Mac when the workstation starts, Ringleader leaves it out and starts the workstation without it. rl workstation describe then lists the folder under Shared folders not attached. To attach it, create the folder, then restart the workstation.

Inside the workstation, the files in a share belong to your Mac user, and chown changes nothing. A file the workstation writes to a writable share appears on your Mac at once, owned by your Mac user.

File changes in a shared folder

When you edit or create a file in a writable share on your Mac, a program in the workstation that watches it sees the change. A dev server in watch mode is one such program. Deleting or renaming a file on your Mac raises no event in the workstation. An editor that saves by writing a new copy and renaming it over the file is seen as a change in that file’s folder. A change in a read-only share raises no event.

Protected folders raise no events

Ringleader doesn’t pass on changes in your Desktop, Documents, Downloads or Library folder, or on an external volume. macOS asks before an application opens those folders, and Library holds iCloud Drive. An edit to a project kept in one of them raises no event. For a watcher to see your edits, keep the project elsewhere in your home folder, such as ~/code.

A writable share trusts the workstation with that folder

Everything that runs in the workstation, a coding agent included, can change a writable share as your Mac user can. So can everyone who gets a shell on the workstation. A read-only share holds, even against root inside the workstation. Share a project folder rather than your home folder. Your home folder holds ~/.ringleader, which has Ringleader’s own data and the SSH key it uses to log in to every local workstation.

Size a workstation on a Mac

To size a workstation, set cpus, memory in GiB and disk in GiB under providerConfig, then apply the file:

apiVersion: workstations.ringleader.dev/v1
kind: Workstation
metadata:
  name: my-mac-box
  namespace: local
spec:
  provider: vz
  providerConfig:
    cpus: 4
    memory: 8
    disk: 60

Share a folder from your Mac

To share folders, list each one under providerConfig.mounts with its hostPath, the folder’s absolute path on your Mac. Add guestPath to put it somewhere else in the workstation, and writable: true to let the workstation change it:

apiVersion: workstations.ringleader.dev/v1
kind: Workstation
metadata:
  name: my-mac-box
  namespace: local
spec:
  provider: vz
  providerConfig:
    mounts:
      - hostPath: /Users/alice/src/app      # read-only, at the same path
      - hostPath: /Users/alice/datasets
        guestPath: /mnt/datasets
        writable: true

Apply the file. The workstation restarts once with the folders attached. If you apply a path that Ringleader refuses, the refusal names the entry and suggests sharing the folder under /mnt instead. Shared folder keys lists every key and the paths Ringleader refuses.

Reach a service on your Mac

To let a workstation reach a service on your Mac, such as a local model server, add the service’s port to a LocalBinding’s reversePorts. The workstation then reaches it at its own 127.0.0.1.

A container started with docker run --network host inside the workstation reaches that port too. A container on Docker’s default bridge network doesn’t.

Next steps