Anka Virtualization 3.10.0
On this page
USB Passthrough for Silicon
USB passthrough for Silicon is now generally available. See Working with USB Devices for the requirements and the steps.
![]()
Devices that are not supported
macOS does not let a VM capture a USB device that has isochronous endpoints, even when the device does not use them. This includes:
- iPhones. An iPhone has an isochronous endpoint in its audio configuration.
- Most webcams, USB audio devices, and headsets.
When you select one of these devices in the Virtual Machine Accessories menu, the VM does not get the device. The VM log shows
A USB passthrough device with isochronous endpoints is not supported.Android devices disconnect and connect again
Some Android devices disconnect from the VM and connect again approximately one time each second. We saw this with a Samsung phone. The VM gets the device, but the device does not stay connected long enough to use it. This is a macOS issue, and we reported it to Apple as FB25252156.
anka create reuses a macOS build without needing an IPSW
The first anka create for a macOS build still downloads the IPSW and installs it. After the install, Anka stores a tag named .base_<ProductBuild> on that VM and deletes the downloaded IPSW from the image library.
The next anka create for the same ProductBuild clones that tag. It does not download the IPSW again. The clone copies the tag onto the new VM, so later creates can still reuse the disk data after you delete the first VM.
❯ anka create vm1 latest
❯ anka create vm2 latest
vm1 installs from the IPSW. vm2 clones the stored tag.
latest and an explicit version or IPSW share a tag only when they resolve to the same ProductBuild.
FROM darwin:<version> in an Ankafile also uses this tag.
Set
ANKA_CREATE_FORCE=1to skip the stored tag and install from the IPSW again:❯ ANKA_CREATE_FORCE=1 anka create vm3 latest
Supporting OCI Container Registry Protocol
Anka is compatible with the OCI Container Registry Protocol. A tag that you store in an OCI registry is an OCI tag. An OCI tag is one of two types:
- A full tag includes the macOS disk. It is the same as a tag in the Anka Registry. A VM can start from a full tag alone. Anka 3.9.0 and later can push and pull full tags with an OCI registry.
- A thin tag holds only file layers, such as the files of one tool. It does not include the macOS disk. Anka 3.10.0 and later can push and pull thin tags.
Marketing calls these thin tags Portable Thin Tags. In Anka they are thin tags: standard OCI filesystem layers (file-diff tarballs) without the macOS disk. “Thin” means less to store and less to move. “Portable” means you can pull the same tag onto compatible VMs. --thin on push takes only the last layer, not the full chain, and still produces a fully compliant OCI repository and tag. Third-party tools—malware and vulnerability scanners, software inventory, and OCI clients such as skopeo and oras—can process that layer. There is no vendor lock on the layer format.
As expected with the OCI Container Registry Protocol in other tools, you can pull a thin tag from one VM onto any other VM. The other VM can have a different name, a different macOS version, or live on another host. Keep the vanilla macOS disk as a full tag in the Anka Registry or in an OCI registry, and pull that tag when a host needs the foundation. Store each tool as its own thin tag in an OCI registry, and pull those tags when the VM needs them.
A tool update still means composing the thin-tag stack into each final template or tag: pull the thin tags onto the base, then push the finished tag. You do not need to start the VM to reinstall the tool.
You can also pull public OCI artifacts onto a VM. These artifacts are thin tags. Examples: Homebrew bottles from ghcr.io, GGUF models from Hugging Face (oci://hf.co/...), and other OCI-compliant layers such as Ollama image layers (application/vnd.ollama.image). See Pull OCI tags.
Store thin tags in an OCI registry. Use anoci://URL or anhttps://URL whose path contains/v2/. The Anka Registry does not store thin tags. A push to the Anka Registry ignorespush_modeand--thin, and always stores a full tag.
Compression for the OCI Container Registry Protocol can be controlled with theANKA_COMPRESSION_LEVELenvironment variable. Setting it to1turns on gzip and sets zlib’s level to 1 (fastest / lightest compression).
Full tags and thin tags behave differently on a VM. The type of tag sets the behavior. The registry does not.
- A full tag includes the macOS disk. The Anka Registry stores only full tags. An OCI registry stores a full tag when you push with
push_mode1and without--thin. A pull of a full tag puts the VM in the exact state of that tag. This occurs even if you changed the VM and did not push a new tag. The pull removes the thin tags that you pulled before it. - A thin tag holds only file layers. It does not include the macOS disk. Only an OCI registry stores thin tags. A pull of a thin tag adds its files to the VM. It does not remove files from the VM, unless the tag has a whiteout. Thin tags stack on the VM in the order that you pull them.
- A second pull of a thin tag shows
already up-to-date. Anka does not apply the same layers again. - Pull the full tag first, then the thin tags. Pro tip: keep a full tag under your thin tags. When the thin tags put the VM in a bad state, pull that full tag again to get a clean VM.
Exclude files from thin tags with ankaignore
When you push or export a VM with --thin or push_mode 2, Anka does not include the paths in the ankaignore file. The default file is /Applications/Anka.app/Contents/Resources/ankaignore. It excludes caches, logs, temporary files, and Spotlight data.
To exclude more paths, copy the default file, add your paths, and set the ankaignore config key to your copy:
❯ cp /Applications/Anka.app/Contents/Resources/ankaignore ~/ankaignore
❯ echo 'Users/*/Downloads' >> ~/ankaignore
❯ anka config ankaignore ~/ankaignore
To use a different file for one command only, set ANKA_ANKAIGNORE:
❯ ANKA_ANKAIGNORE=~/xcode.ankaignore anka push --thin xcode-builder -t xcode-26.1 oci://registry.example.com/v2/xcode
Anka also uses a .ankaignore file in the current directory. Put one in each tool’s build folder, then run anka push from that folder:
❯ cd ~/tools/xcode
❯ cp /Applications/Anka.app/Contents/Resources/ankaignore .ankaignore
❯ echo 'Users/*/Downloads' >> .ankaignore
❯ anka push --thin xcode-builder -t xcode-26.1 oci://registry.example.com/v2/xcode
Anka uses only one file. It uses the first file that it finds, in this order:
.ankaignorein the current directory.- The file in
ANKA_ANKAIGNORE. - The file in the
ankaignoreconfig key. If you do not change it, this is the default file.
Your file replaces the default file, so keep the default lines. The rules are like .dockerignore:
- Each path is relative to the root of the VM disk, with no leading
/. A path without a/matches that name in any folder. *matches one folder level.**matches any number of levels.- When you exclude a folder, Anka also excludes all of its contents.
- A line that starts with
!keeps a path that a line above it excludes. - A line that starts with
#is a comment.
Learn more
- Templates and Registries: choose the Anka Registry, an OCI registry, or both.
- Templates and tags: full tags, thin tags,
--thin, andpush_mode. - OCI tags: pull and push full and thin OCI tags, with examples.
- Appending archives to OCI tags: add files to a tag, or remove them with a whiteout.
- Moving to OCI tags: move the tool layers of your Anka Registry templates to thin tags, one step at a time.
- Combining both registries: keep the macOS base in the Anka Registry and tools as thin tags.
- Preparing a build VM: build a VM from a full base tag and thin tags on a producer host or on each runner.
- Creating VMs with an Ankafile: create a VM from a file that lists the thin tags.
- Export and import an OCI tag: move an OCI tag without a registry.
- Edit a layer before you push it: browse and change an OCI tag layer with anka-oci-tag-editor.
System proxy and PAC support
CLI HTTP requests now use the macOS system proxy settings for the request URL. VM network traffic does not use this proxy.
These requests use the system proxy:
- Registry HTTP, including
anka pull,anka push, the OCI registry API, and the registry handshake. - An HTTP or HTTPS installer download during
anka create. - The tools feed download during
anka create. - The license key lookup from
anka license show -k.
Anka supports these proxy types:
- HTTP
- HTTPS
- SOCKS
- A Proxy Auto-Configuration (PAC) URL. Anka downloads the PAC script and uses the proxy that the script returns.
Hosts in the system proxy exception list do not use the proxy. A list entry can be *, a host name, a domain suffix, or an IPv4 or IPv6 address with a CIDR mask.