Marketplace AMI
In order to get started using our Marketplace AMIs you have four options:
Other than the hourly price, there is a list of features that differ between the two.
You can find a full list of products available on the AWS marketplace by visiting https://veertu.com/aws-marketplace. Or, once subscribed, you can find and launch instances from the marketplace AMIs on the Manage Subscriptions page.
Marketplace AMIs are charged on an hourly basis and don’t need an Anka License.
You can create custom AMIs from the Marketplace AMI and the license for Anka will continue to work and attach to your existing marketplace subscription. However, if we remove the base AMI you took a snapshot from, it will show an expired license and stop working. We instead recommend using our base AMIs instead of creating your own.
Usage
To get up and running with our AWS EC2 Mac instances using our Marketplace AMI, you’ll need to navigate to one of the Marketplace AMI Product URLs listed above and go through the process of subscribing. Take a look at the official AMI Subscription documentation to understand how to subscribe.
Once subscribed, you can start launching AMIs. Marketplace AMIs require Instance metadata service to be enabled.
(Optional) Automatically join to the Anka Build Cloud Controller using User Data:
This step requires that you first set up the Anka Build Cloud on a Linux server/docker container in AWS (but not on the EC2 Mac instances we provide AMIs for).
IMPORTANT: Amazon confirmed that Terminating from the AWS console/API does not properly send SIGTERMs to services and wait for them to stop. This prevents our cloud-connect script from automatically disjoining with
ankacluster disjoinbefore AWS pulls the plug. Therefore, we recommend executing thesudo launchctl unload -w /Library/LaunchDaemons/com.veertu.aws-ec2-mac-amis.cloud-connect.plistcommand before termination of the instance.User Data ENVs
For user-data, don’t use
;,&&or any other type of separator between envs. You also cannot use multiline strings in the ENVs. However, you can replace newlines with\nand our service will get the ENV with the multiple line textIf you pass in user-data with the exports all on one line, and have non ANKA_ ENVs you’re setting, the
cloud-connect.bashservice we run on instance start/boot will source/execute them. We recommend you split exports and user-data onto separate lines to avoid this.ANKA_CONTROLLER_ADDRESS (string)
Full URL for the Anka Build Cloud Controller.
- Not fully required. For example,
ANKA_EXECUTE_SCRIPT,ANKA_UPGRADE_CLI_TO_LATEST,ANKA_PULL_LATEST_CLOUD_CONNECTcan be used without setting this. However, without it you will need join to the controller. - Must be in the following structure:
http[s]://[IP/DOMAIN]:[PORT].
ANKA_JOIN_ARGS (string)
Allows you to pass in any “Flags” from
ankacluster join --help.- Optional
ANKA_REGISTRY_OVERRIDE_IP + ANKA_REGISTRY_OVERRIDE_DOMAIN (string)
Allows you to set the registry IP address and domain in the
/etc/hostsfile.- Optional
- Use 1: if your corporate registry doesn’t have a public domain name, but does have a public IP.
- Use 2: if you want the EC2 mac mini to pull from a second registry that’s hosted on EC2 instead of a local corporate one (AWS -> AWS is much faster).
ANKA_LICENSE (string)
If not already licensed, the cloud-connect service will license Anka using this ENV’s value.
- Optional
- Only used with Community AMI.
- Only available in >= 2.5.4 AMIs.
- You can also update invalid/expired licenses with this (requires a reboot).
- Starting in AMIs with a macOS version greater than 12.2.1: The Fulfillment ID output from
anka license activate, which is used for releasing cores, is logged to your Cloud Controller > Logs section in the “AWS Cloud Connect Service”.
ANKA_USE_PUBLIC_IP (boolean)
This will determine whether the instance/node is joined using the public ipv4. Otherwise, it will default to the local/private ipv4.
- Optional
ANKA_CONTROLLER_API_CERT / _KEY / _CA | ANKA_REGISTRY_API_CERT / _KEY / _CA (string)
The script which handles joining to your controller has a few calls to the controller as well as the registry APIs. If you’re protecting your APIs with mTLS/Certificate Authentication, you can set the certs to use with these ENVs.
- Optional
- We don’t automatically use these to join the node so that you can use a different cert for the node communication. Add
--cert $ANKA_CONTROLLER_API_CERT --cert-key $ANKA_CONTROLLER_API_KEY --cacert $ANKA_CONTROLLER_API_CAtoANKA_JOIN_ARGSto use these certs for the node communication. - Required permissions are the standard for “third party” API clients +
Nodes > Remove Node.

ANKA_CONTROLLER_API_UAK_ID / _STRING / _FILE_PATH | ANKA_REGISTRY_API_UAK_ID / _STRING / _FILE_PATH (string)
The script which handles joining to your controller has a few calls to the controller as well as the registry APIs. If you’re protecting your APIs with UAK/TAP authentication, you can set the UAK ID or UAK string with these ENVs.
- Optional
- Only available in AMIs for 3.7.1 and above.
- Only use either
ANKA_*_API_UAK_STRINGorANKA_*_API_UAK_FILE_PATH, not both. - We don’t automatically use these to join the node so that you can use a different UAK for the node communication.
- Do not use with mTLS/Certificate Authentication.
- Required permissions are the standard for “third party” API clients +
Nodes > Remove Node.
ANKA_PULL_LATEST_CLOUD_CONNECT (boolean)
This will issue a
git fetchand then, if there are changes pending on our aws-ec2-mac-amis repo, issuegit pullto collect the latest version of the Cloud Connect scripts. This is useful if there is a bug in our scripts and you can’t update to a newer AMI yet.- Optional
- Only available in 3.2.0/13.0 or greater AMIs.
ANKA_UPGRADE_CLI_TO_LATEST (boolean)
This will force an upgrade of Anka Virtualization CLI to its latest version.
- Optional
- Only available in 3.3.4/13.4.1 or greater AMIs.
- This could be dangerous; please don’t rely on it unless newer AMIs are not available.
ANKA_UPGRADE_CLI_TO_VERSION (string)
This will force an upgrade of Anka Virtualization CLI to the given version. It will perform a
curl -S -L -o ./$FULL_FILE_NAME https://downloads.veertu.com/anka/$FULL_FILE_NAMEso take a look at https://downloads.veertu.com/#anka/ to see a complete list of available packages. You’ll need to use the full file name (eg:Anka-3.6.1.198.pkg).- Optional
- Only available in 3.6.1/15.1.1 or greater AMIs.
ANKA_PULL_TEMPLATES_REGEX (string)
This will pull templates from the registry which match the given regex (egrep) pattern.
- Optional
- Only available in 3.3.4/13.4.1 or greater AMIs.
- Only the latest tag will be pulled.
- Pulls will happen before the node is joined.
- If your regex starts with
-, be sure to escape it with\-.
ANKA_PULL_TEMPLATES_REGEX_DISTRIBUTE (boolean)
This will distribute, using the controller API, templates that match the given regex (egrep) pattern to the current node.
- Optional & Dependent on
ANKA_PULL_TEMPLATES_REGEX. - IMPORTANT: Be sure that your regex will match the template NAME and not the id. Otherwise this will fail.
- Only available in 3.4.0 or greater AMIs.
- Only the latest tag will be pulled.
- Because distribution is asynchronous, the node will be joined in “drained” mode.
ANKA_DRAINED_ON_JOIN (string)
This will join the node in Drain Mode.
- Optional
- Only available in 3.3.10 or greater AMIs.
- Requires Controller 1.32.0 or greater.
ANKA_EXECUTE_SCRIPT (string)
This will execute one of the available scripts included with the cloud-connect service. You must specify the full script name.
- A list of available scripts is available here.
- Optional
- Only available in Anka 3.4.0 or greater AMIs.
- If the script fails, the node will still join.
- Most scripts support ENVs being passed in through user-data, so be sure to review them to see what’s possible. Dev note: the cloud-connect will not set/see any ENVs without ANKA_ prefix.
- On the host, logs for the script will be written to
/var/log/execute-script.log.
ANKA_EXECUTE_SCRIPT_[1-9] (string)
This allows you to set multiple scripts to execute in order. You must specify the full script name in the value.
- Example:
export ANKA_EXECUTE_SCRIPT_1="install-anklet.bash"; export ANKA_EXECUTE_SCRIPT_2="script2.bash"; - A list of available scripts is available here.
- Optional
- Only available in Anka 3.8.4 or greater AMIs.
- If the script fails, the node will still join.
- Most scripts support ENVs being passed in through user-data, so be sure to review them to see what’s possible. Dev note: the cloud-connect will not set/see any ENVs without ANKA_ prefix.
- On the host, logs for each script will be written to
/var/log/execute-script-[1-9].log.
- Not fully required. For example,
Manual Preparation (optional)
Amazon EBS volumes can be very slow even when you max iOPS, etc. Because of this, anka create and other processes can take very long times or outright fail (Apple’s installer is sensitive to disk IO). AWS indicates that you have to pre-warm EBS volumes that are restored from snapshots (which our AMIs are). To do this, follow the instructions outlined here: brew install fio && sudo fio --filename=/dev/r$(df -h / | grep -o 'disk[0-9]') --rw=read --bs=1M --iodepth=32 --ioengine=posixaio --direct=1 --name=volume-initialize Finally, pre-warmed volumes stay warmed – no need to run dd after periods of inactivity on the AWS instance. NOTE: This command is not able to run from user-data.
By default all of our AMIs have a cloud-connect agent which on boot will join your AWS instance to the Anka Build Cloud controller automatically with user data ENVs you set. This is issuingankacluster joinunder the hood. Once joined, the agent which runs and communicates with the Anka Build Controller does its best to determine the proper IP to use for the node. On AWS the interfaces are loaded at different times and orders and often you’ll end up with an IP assigned to the node which cannot be used for communication. To solve this, you’ll want to setANKA_JOIN_ARGSwith--host {IP HERE}in the user data for the AWS instance. You can find all available flags/options for the join command here.
Logs
/var/log/resize-disk.log/var/log/cloud-connect.log
Preparing the External Disk on EC2 M4 Mac
AWS EC2 Instances on M4 macs have a second disk attached to the instance by default. This disk is not formatted or used by default. This guide will walk you through how to prepare it for use in Anka.
- SSH into the Instance and enable VNC.
- Once enabled and once you VNC in, go to
System Preferences > Security & Privacy > Full Disk Accessand add/Applications/Anka.appto the list. Also add/Library/Application\ Support/Veertu/Anka/bin/anka_agentif you use the Anka Build Cloud Controller. - Manually in a terminal run the following script to prepare the external disk for use in Anka: https://github.com/veertuinc/aws-ec2-mac-amis/blob/main/prepare-external-disk.bash
- Once the script is complete, you should see a new volume called
/Volumes/Anka. Try creating a VM to confirm it works. You should see files written to the/Volumes/Anka/${current user creating}/vm_lib/directory. - Delete the VM (and any .ipsw file that was downloaded) to free up space.
- Save this Instance as an AMI to use internally in your organization.
Licensing
The Marketplace AMI does not require a license. You are charged hourly for the usage through the AWS marketplace. Anka marketplace AMIs are available with Anka Basic and Anka Enterprise Tier features. For more details on Basic and Enterprise Tier, check out our documentation.
Anka Build Cloud automated setup scripts
We have a script that will set up both a Linux instance with the Anka Build Cloud Controller & Registry. You can find it under our Getting Started repo’s AWS folder.
Clone the getting-started repo
git clone https://github.com/veertuinc/getting-started.git cd getting-startedExecute
./AWS/prepare-build-cloud.bash- Running this script will create everything necessary inside of AWS to run the Anka Build Cloud. This includes a security group, elastic IP, etc.
The script can be run locally from your local macOS laptop with an existing AWS credential, region set, etc. These scripts have not been tested on linux.