Skip to main content
Often in your workloads, you might need to modify the underlying OS configuration or file system of the VM. You might need to preserve these changes for future deployments. When working with OCI-compatible images, you can preserve changes by saving a new image locally in the cluster or pushing your changes to a registry. Note that you cannot push changes to the official images, maintained by MacStadium, unless you are pushing a version to your own registry. For how VM configs, deployment, lifecycle operations, and images fit together, see How Orka manages VMs. Did you know? Starting with Orka 3.0, all VM disks are OCI-compatible. So, even if you have deployed from a locally stored image, you can push your VM as an image to an OCI-compatible registry. Before you can push an image to an OCI-compatible registry, you need to have the registry credentials configured in the respective namespace before attempting to push the changes. Unlike most orka commands, vm push routes through the Orka API server rather than the Kubernetes API. This means a kubeconfig obtained via certificate-based authentication (common in AWS and on-prem deployments) is not sufficient on its own. If you run vm push without a valid Orka API token, you will receive an Unauthorized error; this error comes from the Orka API server, not the OCI registry, even if it appears registry-related.
Before running vm push, authenticate with orka login or orka user set-token to obtain an Orka API token.

Orka CLI

Orka API

Note that you need to provide the registry path to the image name and optionally its tag. For example: ghcr.io/my-organization/orka-images/orka-arm:latest. This is an async operation. It returns a push job ID (in the vm-push- format) which you can use to check the status of the operation. Note that the push job ID is valid for 1 hour after the operation completes. Note that this check is not available with the Orka API.

Orka CLI

Keep images patched with vm push

To roll out macOS updates or new app versions, build a new version of your image and push it under a new tag. A new tag for each round, for example a date, keeps the previous version available, so you can roll back by deploying the earlier tag.
  1. Deploy a VM from your current image:
  2. Connect to the VM and apply your updates.
    In-place macOS 15.x and 26.x updates inside a VM currently fail unless you apply a workaround first. See the known issue in the compatibility matrix.
  3. Push the VM as a new tag, and check the push job until it finishes:
  4. Cache the new tag on your nodes, so the first VMs deployed from it don’t wait for the pull:
  5. Point your VM configs and pipelines at the new tag, then delete the VM you patched.

Save Changes as a New Locally Stored Image

If you don’t want to push your changes to an OCI-compatible registry, you can save a new image locally to your cluster.
In Orka 4.0, orka vm save and orka vm commit are deprecated. They still work on clusters that use cluster (NFS) image storage, but use orka vm push to an OCI registry instead.

Orka CLI

Orka API

This is an async operation. To check the status of the operation, run:

Orka CLI

Orka API