orka3 config set --api-url <ORKA_API_URL>orka3 completion {bash|fish|powershell|zsh}orka3 loginorka3 node listorka3 vm list(you should see 0 results)orka3 remote-image list(this will return available base images in MacStadium’s internal remote repository)orka3 remote-image pull <IMAGE_NAME>(this will copy the image to your cluster’s repository)orka3 image list(this will return the list of locally stored images)orka3 vm deploy --image <IMAGE_NAME>- Alternatively, you can deploy from OCI repositories:
orka3 vm deploy --image ghcr.io/macstadium/orka-images/sonoma:latest
- Alternatively, you can deploy from OCI repositories:
orka3 vm list <VM_NAME>andorka3 vm list <VM_NAME> -o wide- Run Apple Screen Sharing to connect to the VM instance. Use
vnc://<VM-IP>:<Screenshare-port>with the IP and port from Step 7. Use theadmin/admincredentials. - On the VM, change the login credentials, apply the latest OS updates, and install (or upgrade) the Orka VM Tools for added security and functionality.
orka3 vm commit <VM_NAME>ororka3 vm save <VM_NAME>orka3 vm deploy --image <IMAGE_NAME> -y(use the name of the newly saved image or the original image, if you committed the changes to it).- Run Apple Screen Sharing and connect to the newly deployed VM. Use the connection information printed by
orka3 vm deploy. Verify that your changes are there. orka3 vm delete -v <NAME>orka3 vm list
- Beginner and advanced users.
- Users with manual workflows.
- Users with workflows that require automation.
1. Before you begin
- Ensure you can access your cluster account in the MacStadium Customer Portal. See Cluster Access Management: Overview.
- Get your VPN connection information from your IP Plan. You can download it from the MacStadium portal.
- Connect to your Orka cluster via VPN.
- Download and install a VPN client. Note that if you’re using a custom Orka domain, you might need to make some additional configuration changes.
- Use the server address and credentials from the VPN section at the top of your IP Plan.
2. Download and configure the Orka3 CLI
- Download and install the latest Orka3 CLI that matches your environment version.
- On macOS, run the
pkgexecutable. - On Linux, unpack the archive and move the executable to
/usr/local/bin. - On Windows, add the directory of the executable to your
PATH.
- On macOS, run the
brew install orka3.
- Launch your preferred command-line tool (e.g., the Terminal on macOS) and run the following command:
What’s your Orka API URL?
You can get your Orka API URL from your IP Plan:- For clusters deployed with Orka 2.1 or later, it’s the
.20address for yourPrivate-1network (usually10.221.188.20). prefixed withhttp. For example:http://10.221.188.20. - You can also use
https://<orka-domain>andhttps://<custom-domain>(if configured). To get the Orka domain for your Orka cluster, contact MacStadium. To use an external custom domain, see here.
http://<orka-IP>, https://<orka-domain>, and https://<custom-domain> interchangeably in your workflows.
Known limitation
The Orka3 CLI works only with trusted custom domains and valid TLS certificates issued by trusted certificate authorities.
- Enable command autocompletion for the Orka3 CLI
3. Authenticate with your cluster
Orka lets you log in with your MacStadium Customer Portal credentials. Your access privileges are based on the role configured by your account admin in the Customer Portal. By default, you will have access to the orka-default namespace. You can access additional namespaces if you have been added to additional role bindings.orka3 commands. Your token is stored locally in the ~/.kube/config file. Note that your token has a validity duration of one hour. Afterward, you must obtain and pass a new token in your CLI or API calls.
4. Some CLI basics
The Orka3 CLI is a powerful tool in the hands of both inexperienced and advanced users. The default Orka3 CLI output for list commands is table-formatted. You can switch to an expanded table format with the--output wide flag or to JSON with the --output json flag.
To get help, run:
5. Create and deploy your first VM instance
- Open a new command-line prompt and run:
orka-default namespace. Re-run this command as you deploy VM instances later on to keep track of the available resources on your nodes.
Glossary: Node
A genuine Apple physical host that provides computational resources (RAM and CPU) for your workloads.
A host OS runs on top, and you have no direct access (via VNC, SSH, or Screen Sharing).
Glossary: Namespace
A way to isolate and dedicate resources to users and teams within the cluster.
The resources within a namespace are completely isolated from one another and cannot be shared between namespaces. By default, users and service accounts limited to a specific namespace cannot access the resources in other namespaces, unless added to the respective role bindings.
- Run:
orka-default namespace. If nothing prints, no one has created any VM instances yet.
Do you want to see more information about the available VMs?
Runorka3 vm list --output wide.
- List the available base images that you can use to deploy a VM:
sonoma-90gb-orka3-arm item. It is a fully installed and configured Apple Silicon-based macOS Sonoma image with a 90GB disk size. It also has an admin user configured, SSH and Apple Screen Sharing access enabled, and Orka VM Tools installed.
Glossary: Image
A disk image that represents VM storage. Base images are bootable disk images that provide the OS, file system, and storage for your VM configs and VMs.
(Intel-only) Empty images provide added storage or serve as the base image during manual OS installs from ISO.
- Deploying a VM is as simple as just specifying a base image. Run:
Did you know?
Starting with Orka 3.0.0, you can deploy VMs using images from OCI-compatible registries. So, instead of using thesonoma-90gb-orka3-arm image, you can use our latest Sonoma image from GitHub packages.
- Check your nodes and your VMs.
-
Re-run
orka3 node list. Did the number of available resources change? - List your VMs:
orka vm list --output wide. In addition to the name, IP, and connection ports of the VM, it also shows its architecture, base image, and CPU and memory configuration. Note that even though Screenshare and SSH are always listed and configured for every VM; you won’t be able to use them unless the respective connection type is enabled in macOS. This behavior is a security limitation of the OS.
In a pool of many VMs, are you looking for that special one?
When you have a lot of VMs, the output of orka3 vm list might become too crowded to use efficiently. Run orka3 vm list <VM_NAME> instead and get the system information for a single VM.
6. Experience your VM instance
- Look at the last output of
orka3 vm listagain. Get that IP andScreenshareport. - Launch Apple Screen Sharing on your local machine (
Cmd+Kin Finder). Typevnc://<VM-IP>:<Screenshare-port>.
ghcr.io/macstadium/orka-images/sonoma:latest is already preconfigured for you, and you can enjoy out-of-the-box Screen Sharing and SSH connectivity.
-
When prompted by Apple Screen Sharing, provide the credentials for the VM (
admin/admin). You will be prompted for the password again - when Apple connects to the VM. -
On the VM, launch System Preferences > Users & Groups. Select the Admin user and click Change password. Set the
Adminuser password to whatever works for you. - (Optional) Launch the Terminal and run the following command.
- Apply the latest OS updates and restart the VM.
7. Preserve the image changes
Changing a running VM’s configuration or file system does not affect its base image. As soon as you delete the VM, your changes will be lost, and you will need to recreate them manually on other VMs. To create changes that stick and appear on future deployments, you can commit your changes to the base image, save the changes as a new image, or push your changes to an OCI-compatible registry.Glossary: Commit changes
Commitmodifies the original base image of the respective VM instance. With this operation, you apply the current state of a VM instance over the base image of its VM config. This way, newly deployed instances will launch in the same state as your current VM. This operation restarts the VM. Runorka3 vm commit --helpfor more information.
Glossary: Save changes
Savecreates a new base image from the current state of the respective VM instance. To use it, you need to create a new VM config that references the new base image. This operation restarts the VM. Runorka vm save --helpfor more information.
Glossary: Push changes
Pushyour changes to the specified OCI-compatible registry, image, and image tag. Registry credentials are required to push an image. For more information, runorka3 regcred --help. Runorka vm push --helpfor more information.
- Commit the changes, save a new image, or push to a private OCI-compatible registry.
<VM_NAME> from the orka3 vm list output you ran earlier.
Registry credentials are required to push an image. For more information, run orka3 regcred --help.
- See how the changes are preserved for yourself. Deploy a new VM instance:
- Launch Apple Screen Sharing and connect to the newly deployed VM instance. Use the updated admin credentials to log in.
8. Delete VMs
This section is optional. When your VM instances have served their purpose, you candelete them.
- Remove all VM instances you created until now:
- List your VMs again.