Uploading a custom OS image
You can add a custom OS or software product image to install it on your server on your own. To proceed, first upload your image file to the Yandex Object Storage bucket.
Uploading an image file to Object Storage
Alert
The maximum size of the image file you can upload to Object Storage is 50 GB.
Upload the ISO image to Yandex Object Storage and get a link to the uploaded object:
-
Create an Object Storage bucket:
Management consoleYandex Cloud CLI-
In the management console
, select the folder where you want to create a bucket. -
Go to Object Storage.
-
At the top right, click Create bucket.
-
On the bucket creation page:
- Enter a name for the bucket as per the naming conventions.
- Set a bucket size limit or enable No limit, if required.
- Leave all other parameters as they are and click Create bucket.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the
yc config set folder-id <folder_ID>command. You can also set a different folder for any specific command using the--folder-nameor--folder-idparameter.-
Create a bucket in the default folder:
yc storage bucket create --name <bucket_name>Where
--nameis the name of the bucket. This is a required parameter. For more information, see Bucket naming rules.Result:
name: <bucket_name> folder_id: b1gt6g8ht345******** anonymous_access_flags: {} default_storage_class: STANDARD versioning: VERSIONING_DISABLED created_at: "2025-08-06T07:29:40.418079Z" resource_id: e3e9neva43dl********For more information about the
yc storage bucket createcommand, see the Yandex Cloud CLI reference.
-
-
Upload the downloaded image file to the created bucket.
Management consoleYandex Cloud CLINote
You can upload objects of up to 5 GB via the management console (see Quotas and limits in Object Storage). To upload larger objects, use other tools.
- In the management console
, navigate to Object Storage and then to the bucket you want to upload the image to. - In the left-hand panel, click
Objects and then Upload in the top-right corner. - In the window that opens, select the image file and click Open.
- In the object upload window, click Upload and wait for the image to upload.
- Refresh the page.
-
Run this command:
yc storage s3api put-object \ --body <local_file_path> \ --bucket <bucket_name> \ --key <object_path>Where:
--body: Path to the file you need to upload to the bucket, e.g.,./ubuntu.iso.--bucket: Name of your bucket.--key: Key by which to store the object in the bucket, e.g.,Ubuntu-2404.iso.
Result:
etag: '"87740887a5159e2685500c02********"' request_id: 300dceee********
For more information about the
yc storage s3api put-objectcommand, see the Yandex Cloud CLI reference. - In the management console
-
Get a link to the image uploaded to the bucket:
Management console- In the management console
, select a folder. - Go to Object Storage and select the bucket.
- Click the name of the object with the uploaded ISO image.
- In the top-right corner, click Get link.
- Click Get link.
- Copy the link.
- In the management console
Creating an image in BareMetal
Create a new image using the link you got in Object Storage:
-
In the management console
, select a folder where you want to create your image. -
Go to BareMetal.
-
In the left-hand panel, select
Boot images. -
Click Upload image.
-
Specify the image name. The naming requirements are as follows:
- It must be from 2 to 63 characters long.
- It can only contain lowercase Latin letters, numbers, and hyphens.
- It must start with a letter and cannot end with a hyphen.
-
Optionally, provide a description for the image.
-
Paste the link to your image file from Object Storage.
-
Click Upload.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
-
View the image download command description:
yc baremetal boot-image create --help -
Download the image:
yc baremetal boot-image create \ --name demo-boot-image \ --description "Boot image for BareMetal" \ --uri "<image_link>" \ --labels <label_key>=<label_value>Where:
-
--name: Image name. Follow these naming requirements:- It must be from 2 to 63 characters long.
- It can only contain lowercase Latin letters, numbers, and hyphens.
- It must start with a letter and cannot end with a hyphen.
-
--description: Image description. This is an optional setting. -
--uri: Image link you got in Object Storage. -
--labels: Image labels. This is an optional setting.
-
Deleting the image from Object Storage
Once your image is successfully created, you can delete the source image file from Object Storage. You can also delete the bucket if it contains no objects.