# Provider images and keys

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


> The images and providerConfig keys of each provider: vz, qemu and hcs on your computer, and GCP, Azure and AWS in your cloud.


A **provider** is the part of Ringleader that runs a
[Workstation](https://docs-stg.ringleader.dev/reference/resources/workstation/): vz on macOS, qemu on Linux and hcs on
Windows run it on your computer, and GCP, Azure and AWS run it in your cloud. This page lists
each provider's images and `spec.providerConfig` keys.
The providers section of [workstation basics](https://docs-stg.ringleader.dev/workstations/basics/#providers) explains how a
workstation gets its provider, and the
[workstation provider](https://docs-stg.ringleader.dev/workstations/providers/) pages cover each provider, including how it enforces an egress policy without an Edge.

## vz (local, macOS)

vz runs workstations on a Mac, as [Mac workstations (vz)](https://docs-stg.ringleader.dev/workstations/providers/mac/)
explains.

The OS images are `debian` `12`/`13` and `ubuntu` `24.04`/`26.04`. With no `version`,
`debian` is 13 and `ubuntu` is 24.04.

All `providerConfig` keys are optional. A workstation that sets none is sized from your Mac, as
the table says:

| Key | Type | Description |
|-----|------|-------------|
| `cpus` | `int` | vCPU count. Default: all host CPUs. |
| `memory` | `int` | RAM in GiB. Default: half host RAM. |
| `disk` | `int` | Disk in GiB. Default: half the size of the disk that holds Ringleader's data. A value below 8 is raised to 8. |
| `arch` | `string` | Guest architecture. Only your Mac's own architecture is accepted, because a vz VM cannot run another one. |
| `mounts` | `list` | Folders on your Mac to share into the workstation. See [Shared folder keys](#shared-folder-keys). |

### Shared folder keys

`mounts` lists the folders on your Mac to share into a vz workstation, as
[Shared folders from your Mac](https://docs-stg.ringleader.dev/workstations/providers/mac/#shared-folders-from-your-mac)
explains. Each entry takes these keys:

| Key | Type | Description |
|-----|------|-------------|
| `hostPath` | `string` | **Required.** The folder on your Mac, as an absolute path. `~` is not expanded. |
| `guestPath` | `string` | Where the folder appears inside the workstation, as an absolute path. Default: the same path as `hostPath`. |
| `writable` | `bool` | Whether the workstation can change the folder. Default `false`, a read-only share. |

Write both paths plainly: no `..`, no doubled `/` and no `/` at the end.

A `guestPath` is refused when you apply the workstation if it:

- is `/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/opt/ringleader`, `/proc`,
  `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var` or `/var/lib/docker`, or a folder
  that holds one of them, such as `/opt` or `/var/lib`;
- is inside `/boot`, `/dev`, `/etc`, `/opt/ringleader`, `/proc`, `/run`, `/sys` or `/usr`;
- is, or goes through, a symlink in the workstation: `/bin`, `/lib`, `/lib32`, `/lib64`,
  `/libx32`, `/sbin`, `/var/lock`, `/var/run` or `/var/spool/mail`;
- ends in a space. A `hostPath` that ends in a space needs a `guestPath` of its own;
- is the same as another entry's `guestPath`;
- is inside another entry's `guestPath`, unless its `hostPath` is the folder at the same place
  inside that entry's `hostPath`. So `/Users` with `/Users/alice/src/app` is accepted, and
  `/mnt/data` from one folder with `/mnt/data/raw` from another is refused;
- is too long. The limit is about 240 characters, and a space, a hyphen and each byte of a
  non-ASCII character count as four.

`/Users`, `/Volumes`, `/private`, `/var/folders` and folders under `/mnt` or `/srv` are
accepted.

## qemu (local, Linux)

qemu runs workstations on Linux.

The OS images are `debian` `12`/`13` and `ubuntu` `24.04`/`26.04`. With no `version`,
`debian` is 13 and `ubuntu` is 26.04.

The `providerConfig` keys sit directly under `providerConfig`, not in a block named after a
cloud:

| Key | Type | Description |
|-----|------|-------------|
| `cpus` | `int` | Guest vCPUs. Default `2`. |
| `memory` | `int` | Guest RAM in GiB. Default `1`. |
| `disk` | `int` | Overlay disk in GiB. Default **and minimum** `8`. |

## hcs (local, Windows)

hcs runs workstations on Windows, as [Windows workstations (hcs)](https://docs-stg.ringleader.dev/workstations/providers/windows/)
explains.

The OS images are `debian` `13` and `ubuntu` `24.04`/`26.04`. With no `version`, `debian` is 13
and `ubuntu` is 26.04.

All `providerConfig` keys are optional. A workstation that sets none is sized from your PC, as
the table says:

| Key | Type | Description |
|-----|------|-------------|
| `cpus` | `int` | vCPU count. Default: all your PC's CPUs. |
| `memory` | `int` | RAM in GiB. Default: a quarter of your PC's RAM, at least 2. |
| `disk` | `int` | Disk in GiB. Default: an eighth of the size of the drive that holds `%ProgramData%`, but not less than 16 or more than 256. A value below 8 is raised to 8. |
| `arch` | `string` | Guest architecture. Only your PC's own architecture, `amd64`, is accepted, because an HCS VM cannot run another one. |
| `keepRunningAfterSignOut` | `bool` | Keep the workstation running when you sign out of Windows. Default: `false`, so it stops when you sign out and starts again after you sign back in. |

## Keys a namespace member may set

On a cloud workstation, you set the keys that size the machine, and a namespace admin sets the
keys that place it, on a [CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/).
[Keys you set and keys an administrator sets](https://docs-stg.ringleader.dev/workstations/providers/cloud/#keys-you-set-and-keys-an-administrator-sets)
explains the rule and what changes it. This table lists the keys a namespace member may set:

| Cloud | Keys a namespace member may set |
|-------|---------------------------------|
| `gcp` | `machineType`, `diskType`, `diskGiB`, `enableNestedVirtualization`, `labels`, `addRingleaderLabels`, `assignPublicIp` |
| `aws` | `instanceType`, `rootVolumeGiB`, `rootVolumeType`, `nestedVirtualization`, `tags`, `addRingleaderLabels`, `assignPublicIp` |
| `azure` | `size`, `osDiskType`, `osDiskCaching`, `osDiskGiB`, `ephemeralOsDisk`, `tags`, `addRingleaderLabels`, `publicIp` |

## GCP (cloud)

The GCP provider creates a Compute Engine VM, as
[GCP workstations](https://docs-stg.ringleader.dev/workstations/providers/cloud/#gcp-workstations) explains.
[Cloud accounts](https://docs-stg.ringleader.dev/cloud-accounts/) says what to configure in your account.

These keys are yours to set on a workstation:

| Key | Type | Description |
|-----|------|-------------|
| `machineType` | `string` | Machine type. Default `e2-medium`; e.g. `n2-standard-4`. Arm families (`t2a`, `c4a`, `n4a`, …) require an arm64 image. |
| `diskGiB` | `int` | Boot disk size. Default 40 GiB. Raising it grows the disk on the running VM, and the filesystem follows at the next start. A smaller value is refused. |
| `diskType` | `string` | e.g. `pd-balanced` (default), `pd-ssd`; hyperdisk-only families default to `hyperdisk-balanced`. A family/type mismatch fails loudly. |
| `assignPublicIp` | `bool` | Give the VM an external IP. Default `true`. A VM without one needs an outbound route to Ringleader, such as Cloud NAT, or it never finishes setting up. |
| `enableNestedVirtualization` | `bool` | Enable nested virtualization on the VM. Default `false`. |
| `labels` | `map` | GCE instance labels. |
| `addRingleaderLabels` | `bool` | Add the standard set of labels Ringleader owns. See [Cost allocation labels](https://docs-stg.ringleader.dev/cloud-accounts/cloud-identities/cost-allocation-labels/). |

These keys place the VM and shape its network. A namespace admin sets them on the
[CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/)'s `defaultProviderConfig` or
`overrideProviderConfig`. A workstation can carry one only when its writer holds the
`cloudconfig` right or the CloudIdentity's `allow` list names it:

| Key | Type | Description |
|-----|------|-------------|
| `project` | `string` | GCP project ID. Needed, but Ringleader fills it in when the `subnetwork` is a full self-link, which names its project, or when the CloudIdentity reaches GCP through a federated CloudAccount, whose target service account names it. |
| `zone` | `string` | e.g. `us-central1-a`. Optional when a `region` or a full `subnetwork` self-link says where the VM goes. |
| `region` | `string` | e.g. `us-central1`. With no `zone`, Ringleader picks a zone in this region. |
| `network` | `string` | VPC network name. Default `default`. |
| `subnetwork` | `string` | Subnetwork name, or a full self-link. Required if `network` is a custom-mode VPC. |
| `networkTags` | `[]string` | GCE network tags, which firewall rules target. Default: `ringleader-workstation`. An empty list, `[]`, means no tags. Ringleader always adds tags of its own for the firewall rules it writes. |
| `metadata` | `map` | Extra GCE instance metadata. |

`serviceAccount` is the one key nobody sets on a workstation. It names the identity the VM runs
as, and Ringleader fills it in from the CloudIdentity that matches the workstation. A write that
carries it is refused, whatever the writer holds.

When the matching CloudIdentity declares a `serviceAccount`, the block appears in the output of
`rl workstation get-resolved-configuration` and names the service account the VM runs as. To
change it, edit the CloudIdentity; see
[Cloud runtime identities](https://docs-stg.ringleader.dev/cloud-accounts/cloud-identities/runtime-identities/).

The OS image is the ordinary configuration-layer `image` field (`distribution` + `version`):
`debian` `12`/`13`, or `ubuntu` `22.04`/`24.04`/`26.04`, each resolved to the matching
Google-published image family for the machine type's architecture.

## Azure (cloud)

The Azure provider creates a VM in one resource group, as
[Azure workstations](https://docs-stg.ringleader.dev/workstations/providers/cloud/#azure-workstations) explains.

These keys are yours to set on a workstation:

| Key | Type | Description |
|-----|------|-------------|
| `size` | `string` | The VM size. Default `Standard_D2s_v5`; e.g. `Standard_D4s_v5`. |
| `osDiskGiB` | `int` | OS disk size. With no size, the disk is sized from the image. Raising it grows the disk with a stop and a start of the VM. A smaller value is refused. |
| `osDiskType` | `string` | OS disk storage type. Default `Premium_LRS`. |
| `osDiskCaching` | `string` | OS disk caching mode. Default `ReadWrite`. |
| `ephemeralOsDisk` | `bool` | Use an ephemeral OS disk. |
| `publicIp` | `bool` | Attach a Standard public IP. Default `true`. A workstation created before this default changed keeps the setting it was created with. A workstation without one needs an outbound route to Ringleader, such as a NAT gateway, or it never finishes setting up. |
| `tags` | `map` | Azure resource tags. |
| `addRingleaderLabels` | `bool` | Add the standard set of tags Ringleader owns. See [Cost allocation labels](https://docs-stg.ringleader.dev/cloud-accounts/cloud-identities/cost-allocation-labels/). |

These keys place the VM and shape its network. A namespace admin sets them on the
[CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/)'s `defaultProviderConfig` or
`overrideProviderConfig`. A workstation can carry one only when its writer holds the
`cloudconfig` right or the CloudIdentity's `allow` list names it. `region` and `zone`, with
`availabilityZone`, which names the same setting as `zone`, are admin-set on Azure too:

| Key | Type | Description |
|-----|------|-------------|
| `subscriptionId` | `string` | **Required.** The subscription the VM runs in. |
| `resourceGroup` | `string` | **Required.** The resource group (your cost/RBAC boundary). |
| `location` | `string` | **Required.** e.g. `eastus`. Immutable. |
| `subnetId` | `string` | The full ARM subnet resource id. Ringleader creates a per-VM NIC in it, and tears it down with the VM. |
| `networkInterfaceId` | `string` | Attach a **pre-existing** NIC instead. Ringleader never deletes a NIC it did not create. |
| `securityType` | `string` | Defaults to `Standard`, which nested virtualization requires (and which needs a subscription feature registered; see [Onboard Microsoft Azure](https://docs-stg.ringleader.dev/guides/onboard-azure/)). |
| `adminUsername` | `string` | The bootstrap admin user Azure creates on the VM. Default `ringleader`. |

`managedIdentity` is the one key nobody sets on a workstation. The VM's runtime identity comes
from the CloudIdentity's `serviceAccount`, and a write that carries the key is refused,
whatever the writer holds.

The OS image is the ordinary configuration-layer `image` field (`distribution` + `version`):
`debian` `12`/`13`, or `ubuntu` `22.04`/`24.04`/`26.04`, each resolved to the matching
marketplace image for the size's architecture.

## AWS (cloud)

The AWS provider creates an EC2 instance, as
[AWS workstations](https://docs-stg.ringleader.dev/workstations/providers/cloud/#aws-workstations) explains.
[Onboard AWS](https://docs-stg.ringleader.dev/guides/onboard-aws/) covers the IAM role to create in your
account.

These keys are yours to set on a workstation:

| Key | Type | Description |
|-----|------|-------------|
| `instanceType` | `string` | e.g. `m6i.xlarge`. Default `t3.medium`. Must be **x86-64**, since the image alias table resolves x86-64 AMIs. |
| `assignPublicIp` | `bool` | Attach a public IP. Default `true`. A workstation without one needs an outbound route to Ringleader, such as a NAT gateway, or it never finishes setting up. |
| `rootVolumeGiB` | `int` | Root volume size. Default 40 GiB. Raising it grows the volume on the running instance, and the filesystem follows at the next start. A smaller value is refused. |
| `rootVolumeType` | `string` | Root volume type. Default `gp3`. |
| `nestedVirtualization` | `bool` | Request an instance configuration that supports nested virtualization. |
| `tags` | `map` | EC2 resource tags. |
| `addRingleaderLabels` | `bool` | Add the standard set of tags Ringleader owns. See [Cost allocation labels](https://docs-stg.ringleader.dev/cloud-accounts/cloud-identities/cost-allocation-labels/). |

These keys place the instance and shape its network. A namespace admin sets them on the
[CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/)'s `defaultProviderConfig` or
`overrideProviderConfig`. A workstation can carry one only when its writer holds the
`cloudconfig` right or the CloudIdentity's `allow` list names it:

| Key | Type | Description |
|-----|------|-------------|
| `region` | `string` | The region the instance runs in. **Required**, unless a `zone` names it. Immutable. |
| `subnetId` | `string` | The subnet the instance is placed in (also fixes the availability zone and VPC). |
| `zone` | `string` | The availability zone, e.g. `us-east-1a`. `availabilityZone` is the same setting under its AWS name. See [AWS availability zones](https://docs-stg.ringleader.dev/workstations/providers/cloud/#aws-availability-zones). |
| `securityGroupIds` | `list` | Security groups to attach, by id. Read only when the instance is created. |
| `securityGroupNames` | `list` | Security groups to attach, by name, alongside those in `securityGroupIds`. Read only when the instance is created. See [AWS security groups](https://docs-stg.ringleader.dev/workstations/providers/cloud/#aws-security-groups). |
| `rootDeviceName` | `string` | Root device name, if the AMI's differs from the default. |

`iamInstanceProfile` is the one key nobody sets on a workstation. It attaches an instance
profile, so software on the workstation has its own AWS identity, the AWS analogue of the GCP
runtime service account (Ringleader attaches, but does not create, the profile). An admin sets it
on the CloudIdentity, under `overrideProviderConfig.aws.iamInstanceProfile`, and a write that
carries it on a workstation is refused, whatever the writer holds.

The OS image is the ordinary configuration-layer `image` field (`distribution` + `version`),
resolved to a vendor-published public AMI: `debian` `12`/`13`, `ubuntu`
`22.04`/`24.04`/`26.04`, or `amazonlinux` `2023`. The AMI is resolved at launch, so
you always get the latest patched image for the release you named rather than a
pinned snapshot.

## Next steps
- [CloudIdentity](https://docs-stg.ringleader.dev/reference/resources/cloudidentity/): how Ringleader authenticates to a cloud
  provider and injects provider-config defaults and overrides.
- [Workstation](https://docs-stg.ringleader.dev/reference/resources/workstation/): `requirements`, `provider`, and `providerConfig`.

