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 the source from which the image inherits configuration and architecture. Choose one of the following types of sources:
- Boot disk. 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.
- File with the ready image. Upload an image file to a bucket in Object Storage and use this file to create the image.
How to create a custom boot disk image
- 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 name of your image.
-
Select the image source:
-
To create an image from a disk, select Disk and specify the following parameters:
- 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 a VM that is currently running. Stop the VM before attempting to create an image.
-
To import an image from a bucket, select Object Storage file and specify the path to the file that you uploaded to the bucket. For example,
s3://nebius-bucket-test/my-image-file.qcow2. You can copy and paste this value. To copy it, go to the bucket page. In the line of the uploaded image file, click→ Copy key. For information about requirements to the image file, see Importing your own image into Compute.
-
To create an image from a disk, select Disk and specify the following parameters:
- (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.