VM Images Overview
Create Custom Images
- CLI
- UI
Use the compute images create
to create a custom image:
crusoe compute images create --name <image-name> --vm-name <vm-name> --tags <tag1,tag2> --description <description> --project-name <project-name>
In order to create a new custom image via the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Compute" tab in the left nav
- Click the "Instances" tab on the top bar
- Select the instance from which you would like to create a custom image (ensure it is powered off to create a custom image)
- Click the "Create a custom image" button in the top right corner
- Enter the Custom Image name, description and tags and click on the Create button
Custom Image can also be created using the following workflow:
- Visit the Crusoe Cloud console
- Click on "Compute" tab in the left nav
- Click the "Custom Images" tab on the top bar
- Click the "Create Custom Image"
- Select the dropdown to "Select a source image"
- If you do not see the VM from which you intend to create a custom image, please power it off and retry the operation.
The Create Custom Image workflow can take a few minutes to complete and the time taken depends on the used capacity of the source VM OS disk.
Listing Images
- CLI
- UI
Use the compute images list
to list all images:
crusoe compute images list
In order to view all currently deployed images via the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Compute" tab in the left nav
- Click the "Instances" tab on the top bar
- Click the "Create Instance" button in the top right corner
- When the Instance Options is set to "Default", Click the "Select an image" and "Select an image version" dropdowns to view all Curated images
- When the Instance Options is set to "Custom", Click the "Select a custom image" dropdown to view all custom images
- Custom Images can also be viewed by selecting "Storage" tab in the left nav and clicking on the Custom Images tab in the top bar.
In order to only view Custom Images in Crusoe Cloud Console:
- Visit the Crusoe Cloud console
- Click on "Compute" tab in the left nav
- Click the "Custom Images" tab on the top bar
Using Images
- CLI
- UI
Use the compute vms create
command, passing an image
flag with the chosen curated image or passing a --custom-image
flag with the chosen custom image:
crusoe compute vms create \
--image ubuntu:22.04 \
...
crusoe compute vms create \
--custom-image my-custom-image \
...
In order to use a VM image in the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Compute" tab in the left nav
- Click the "Instances" tab on the top bar
- Click the "Create Instance" button in the top right corner
- To create an instance with a curated image, select "Default" on Instance Options and click the "Select an image" and "Select an image version" dropdown and select an image and version
- To create an instance with a custom image, select "Custom" on the Instance Options and click the "Select an image" dropdown
- Continue with the remainder of the "Create Instance" flow
Update Custom Images
- CLI
- UI
Use the compute images update
command, passing an description
flag to update the description:
crusoe compute images update <vm-name>\
--description my-new-description \
...
Use the compute images add-tags
command, passing an tags
flag to add tags to the custom image:
crusoe compute images add-tags <vm-name>\
--tags my-new-tag1,my-new-tag2 \
...
Use the compute images delete-tags
command, passing an tags
flag to delete tags from the custom image:
crusoe compute images delete-tags <vm-name>\
--tags my-tags-to-delete1,my-tags-to-delete2 \
...
In order to update a Custom image in the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Compute" tab in the left nav
- Click the "Custom Images" tab on the top bar
- Navigate to the Custom Image you wish to edit
- Click the pencil icon on the far right side of the row
- Edit the tags and description as necessary
- Click on the update button to apply the changes
Delete Custom Images
- CLI
- UI
Use the compute images delete
command:
crusoe compute images delete <my-custom-image>
In order to delete a custom image in the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Compute" tab in the left nav
- Click the "Custom Images" tab on the top bar
- Navigate to the Custom Image you wish to delete
- Click the trash can icon on the far right side of the row
- Input the name of the custom image in the input box and click "Confirm"