Before you start
- Make sure that you have enough quotas for images (Number of images and Total storage capacity of all images). You can view quotas and request changes on the Administration → Limits → Quotas page of the web console.
- Prepare a dedicated VM with the required custom software. Create a VM, connect to it and install the software that the image should inherit. The image will be based on the boot disk of this VM and will include the installed software.
How to create a custom boot disk image
To create an image from an existing boot disk:- Web console
- CLI
-
In the web console, go to
Storage → Disks.
- Click Create resource and then select Image.
-
In the window that opens, specify the required parameters:
- Name: Name of your image.
- Project of source disk: Project that the source disk of your image belongs to.
-
Source disk: Disk used as the source for your image. The image will retain the basic architecture, size and installed software of the source disk.
You cannot create images from disks that are attached to currently running VMs. Stop the VM before attempting to create an image.
- (Optional) Specify the image family. It represents a new or existing label used to group your custom images into a family. If you create a VM or a boot disk from this image family, you will use the latest image in the family.
- (Optional) Specify the image description.
-
(Optional) Under Advanced settings, specify:
- Image family description: Description of the family that your new image belongs to (if you specified one).
- Recommended platforms: Comma-separated list of compatible platforms that your image will use by default.
- Unsupported platforms: Comma-separated list of platforms that your image architecture is not compatible with. Must be in the
<platform>=<description>format. For example,gpu-l40s-d=not supported.
- Click Create image.
How to edit or delete a custom boot disk image
- Web console
- CLI
-
In the web console, go to
Storage → Disks.
- Switch to the Images tab and open the image you want to access. The Image overview tab shows detailed information about the image and the source disk that it’s based on.
- On the image page, switch to the Settings tab.
- Update the image name or click Delete image to delete it.
How to create a VM from a custom image
After your custom boot disk image is ready, you can deploy a VM from it or create a boot disk based on this image.- Web console
- CLI
To create a VM from a custom image:
- In the web console, go to
Storage → Disks → Images.
- Next to the image, click
→ Create virtual machine.
- Configure and create the VM.
You can also select a custom image on the VM creation page. To do that, click
in the Boot disk section and select your custom image or image family in Image configuration.