# Mac workstations (vz)

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).


> 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](https://docs.ringleader.dev/install/#macos).
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](https://docs.ringleader.dev/workstations/basics/#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](https://docs.ringleader.dev/reference/providers/images-keys/#vz-local-macos) 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](#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](https://docs.ringleader.dev/security/outbound/enforcement/#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](https://docs.ringleader.dev/security/outbound/enforcement/#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.

<div class="callout callout-note">
  <p class="callout-title">Protected folders raise no events</p>
  <div class="callout-body">
    Ringleader doesn&rsquo;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>~/code</code>.
  </div>
</div>


<div class="callout callout-warning">
  <p class="callout-title">A writable share trusts the workstation with that folder</p>
  <div class="callout-body">
    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 <code>~/.ringleader</code>, which has Ringleader&rsquo;s own data and the
SSH key it uses to log in to every local workstation.
  </div>
</div>


## 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:

```yaml
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:

```yaml
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](https://docs.ringleader.dev/reference/providers/images-keys/#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](https://docs.ringleader.dev/reference/resources/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

- [Provider images and keys](https://docs.ringleader.dev/reference/providers/images-keys/#vz-local-macos) lists vz's images and
  `providerConfig` keys.
- [Local container runtime](https://docs.ringleader.dev/reference/local-container-runtime/)
  covers the Linux virtual machine your `docker` command talks to, and the folders it shares.
- [Lock down Claude Code for unattended runs](https://docs.ringleader.dev/guides/lock-down-claude-code/)
  limits what a workstation on your computer can reach.

