Images
The orka image
group of commands in the Orka CLI. These commands are used for the management of base images.
Quick navigation
Listing: List images | List images in the remote repo
Upload and download: Upload an image | Download an image
Pull: Pull an image from the remote repo
Generate: Generate empty image
Management: Copy image | Rename an image | Delete an image | Resize an image
Save and commit: Create a new base image from a deployed VM | Update an existing base image by committing changes to it
Quick command summary
orka image list orka image list-remote orka image upload --image <FILE_PATH> -y orka image download --image <NAME> --output <FILE_PATH> -y orka image pull --image <REMOTE_IMAGE> -o <NEW_IMAGE_NAME> -y orka image generate --image <NAME.img> -q <SIZE> -y orka image copy --image <IMAGE> -o <NEW_IMAGE_NAME> -y orka image rename --image <IMAGE> -o <NEW_IMAGE_NAME> -y orka image delete --image <IMAGE> -y orka image resize -v <VM_ID> -q <NEW_SIZE> --vm-username <VM_USERNAME> --vm-password <VM_PASSWORD> -o <NEW_IMAGE_NAME> -y orka image save -v <VM_ID> -b <NEW_IMAGE_NAME> -y orka image commit -v <VM_ID> -y
List images
Command
List the base images available in your local Orka storage.
orka image list
OR
orka image list --json
OR
orka image list --raw
Options
You can pass the following options with orka image list
in direct mode:
Option | Description |
---|---|
--json | Returns the output of the command in JSON . |
--raw | Returns the output of the command in raw, greppable format. |
List images in the remote repo
Command
List the base images available in your remote Orka repo. MacStadium sets up and maintains the remote repo.
To use any of the images available in the remote repo, you need to pull them locally.
orka image list-remote
OR
orka image list-remote --json
OR
orka image list-remote --raw
Options
You can pass the following options with orka image list-remote
in direct mode:
Option | Description |
---|---|
--json | Returns the output of the command in JSON . |
--raw | Returns the output of the command in raw, greppable format. |
Upload an image
Command
Upload a base image from your local file system to the Orka local storage. The image format must be .raw
or .qcow2
.
Known limitation
This command is applicable only to Intel images.
For more information, see Apple Silicon-Based Support.
orka image upload
OR
orka image upload --image <FILE_PATH> -y
Output
Options
You can pass the following options with orka image upload
in direct mode:
Option | Shorthand option | Description | Sample value |
---|---|---|---|
--image | The path to the image on your local file system. | /Users/myuser/Downloads/myimage.img |
Download an image
Command
Download a base image from the Orka cluster storage to your local filesystem.
Known limitation
This command is only applicable to Intel images.
For more information, see Apple Silicon-Based Support.
orka image download
OR
orka image download --image <NAME> --output <FILE_PATH> -y
Options
You can pass the following options with orka image download
in direct mode:
Option | Shorthand option | Description | Sample value |
---|---|---|---|
--image | The name of the image you wish to download. | 90GBigSurSSH.img | |
--output | (Optional) The path on the local filesystem where you would like to download the image. The path may be relative or absolute and will resolve. | ./my-image.img OR /Users/myuser/Downloads/my-image.img |
Pull an image from the remote repo
Command
Pull the specified base image from the remote repo. Orka clones the image in your local Orka storage and retains the original image in the remote repo.
orka image pull
OR
orka image pull --image <REMOTE_IMAGE> -y
OR (specify new name for the local copy)
orka image pull --image <REMOTE_IMAGE> -o <NEW_IMAGE_NAME> -y
Output
Options
You can pass the following options with orka image pull
in direct mode:
Option | Description | Sample value |
---|---|---|
--image | The name of the remote image that you want to pull. | 90GBVenturaSSH.img |
-o | (Optional) A new name for the pulled image. | my90GBVenturaSSH.img |
Generate empty image
Command
Generate an empty base image of the specified size. You can set the size in k, M, G, and T (for kilobytes, megabytes, gigabytes, and terabytes, respectively).
Known limitation
This command is only applicable to Intel images.
For more information, see Apple Silicon-Based Support.
Orka lists an unexpected size?
If you run
orka image list
, Orka lists generated empty storage disks with a fixed size of ~192k. When attached to a VM and formatted, the disk will appear with its correct size in the VM.
orka image generate
OR
orka image generate --image <NAME.img> -q <SIZE> -y
Output
Options
You can pass the following options with orka image generate
in direct mode:
Option | Shorthand option | Description | Sample value |
---|---|---|---|
--image | The name of the new image. | myEmptyBase.img | |
--size | -q | The size of the image (in k, M, G, or T). | 90G |
Copy image
Command
Create a copy of an existing base image . The base image must be available in your local Orka storage.
orka image copy
OR
orka image copy --image <IMAGE> -o <NEW_IMAGE_NAME> -y
Output
Options
You can pass the following options with orka image copy
in direct mode:
Option | Shorthand option | Description | Sample value |
---|---|---|---|
--image | The name of the image that you want to copy. | 90GBVenturaSSH.img | |
--new-name | -o | The name of the copy. | my90GBVenturaSSH.img |
Rename an image
Command
Rename the specified base image. The image must be stored in your local Orka storage.
orka image rename
OR
orka image rename --image <IMAGE> -o <NEW_IMAGE_NAME> -y
Output
Options
Option | Shorthand option | Sample value |
---|---|---|
--image | The name of the image that you want to rename. | myEmptyBase.img |
-o | The new name for the image. | myBase.img |
Delete an image
Command
Delete the specified base image from your local Orka storage. Make sure that the image is not in use.
orka image delete
OR
orka image delete --image <IMAGE> -y
Output
Options
You can pass the following options with orka image delete
in direct mode:
Option | Shorthand option | Description |
---|---|---|
--image | The name of the image that you want to delete. | myEmptyBase.img |
Create a new base image from a deployed VM
Command
Save the current disk of a deployed VM as a new base image. This does not affect the original base image of the VM.
orka image save
OR
orka image save -v <VM_ID> -b <NEW_IMAGE_NAME> -y
Output
Options
You can pass the following options with orka image save
in direct mode:
Option | Description | Sample value |
---|---|---|
-v | The ID of the VM that you want to use to create the base image. | e58cec3844a7d |
-b | The name of the new base image. | myBase.img |
Update an existing base image by committing changes to it
Command
Take the changes from the specified deployed VM and commit them back to its respective base image. The base image must not be in use by any other VMs.
orka image commit
OR
orka image commit -v <VM_ID> -y
Output
Options
You can pass the following option with orka image commit
in direct mode:
Option | Description | Sample value |
---|---|---|
-v | The ID of the VM that you want to use. | b58f95271102e |
Resize an image
Command
Resize the current disk of a deployed VM and save it as a new base image. This does not affect the original base image of the VM.
orka image resize
OR (resize image and save a new base image)
orka image resize -v <VM_ID> -q <NEW_SIZE> --vm-username <VM_USERNAME> --vm-password <VM_PASSWORD> -o <NEW_IMAGE_NAME> -y
OR (resize image and save a new base image manually)
orka image resize -v <VM_ID> -q <NEW_SIZE> --vm-username <VM_USERNAME> --vm-password <VM_PASSWORD> -y
OR (resize image and perform the partition resize manually)
orka image resize -v <VM_ID> -q <NEW_SIZE> -y
Output
Option | Shorthand option | Description | Sample value |
---|---|---|---|
--vm | -v | The ID of the VM that you want to use. | d0b4c98da1ba2 |
--size | -q | The size of the new image (in k, M, G, or T). | 160G |
--vm-username | The username of the VM user Not applicable when resizing Apple ARM-based VM disk. | admin | |
--vm-password | The password of the VM user Not applicable when resizing Apple ARM-based VM disk. | mypassword | |
--new-name | -o | The new name for the resized image. | myResizedBase.img |
Updated over 1 year ago