Transfer (copy) an image and configure image sharing
A created or uploaded image can be:
- transfer (copy) to another pool segment, project, or account — a new image will be created, which can be managed in both the source and target projects. Storage of all image copies is billed;
- or configure image sharing between projects within the same pool — you will only be able to manage the image in the source project. Storage of the image is only billed in the source project.
In both cases, you will be able to create cloud servers and volumes from the images.
Transfer (copy) an image to another pool segment, project, or account
To copy an image, you must obtain its URL and create a new image from it. You cannot transfer an image directly.
An image can be copied to another pool segment (including a different availability zone or region), project, or account. When copying an image to another project or account, you can also change the pool segment. If you need to copy an image within the same pool segment, configure image sharing between projects — storage of the image is only billed in the source project.
Storage of all image copies is billed according to the cloud platform payment model. You can manage the image and create cloud servers and volumes from it in both the source project and the target project.
After copying, you can delete the source image from the image storage.
Control panel
OpenStack CLI
-
In the Control panel, on the top menu, click Products and select Cloud Servers.
-
Go to the Images section.
-
In the menu of the image, select Copy image URL.
-
Open the project menu and select the target project to which you want to copy the image.
-
Click Create image.
-
Enter the image name.
-
Select the location to which the image will be uploaded.
Images smaller than 16 GB are automatically replicated to adjacent pool segments of the location.
-
Select the operating system.
-
Select URL as the image source.
-
Enter the link you copied in step 3.
-
Select the image format or container format. For more details on formats, see the Custom Images subsection.
If you are unsure which formats to specify, use the image format
rawand the container formatbare. -
Optional: check the Specify minimum disk and memory size checkbox and specify the RAM size in MB and disk size in GB. This is the minimum disk and RAM size required to create a server from this image. For images in
.isoformat, you cannot specify minimum values.After an image is created, you cannot change the minimum disk and memory size in the Control panel. To change the minimum values, you must recreate the image or use OpenStack CLI.
-
Click Create.
Configure image sharing between projects
You can configure image sharing between projects within the same or different accounts. In the target project, you can create cloud servers and volumes from the image, but you can only manage the image (rename, change the operating system, delete the image) in the source project. Storage of the image is only billed in the source project — according to the cloud platform payment model.
You can configure image access only within a pool.
In the target project, you can disable access to an image.
Configure image access for a project within a single account
Control panel
OpenStack CLI
-
In the Control panel, on the top menu, click Products and select Cloud Servers.
-
Copy the ID of the target project to which you want to copy the image. To do this, open the project menu and click in the row of the target project.
-
Switch to the project where the image is located. To do this, open the project menu and select the source project.
-
On the top menu, click Products and select Cloud Servers.
-
Go to the Images section.
-
In the image card, open the Projects block.
-
Click Add project.
-
Paste the ID of the target project you copied in step 2.
-
Click .
-
Copy the image UUID.
-
Open the project menu and select the target project.
-
On the top menu, click Products and select Cloud Servers.
-
Go to the Images section.
-
Ensure you have selected the pool to which you want to transfer the image.
-
On the section page, click .
-
Paste the image UUID you copied in step 10.
-
Click Accept image.
Configure image access for a project from another account
Control panel
OpenStack CLI
-
Open the account with the target project.
-
In the Control panel, on the top menu, click Products and select Cloud Servers.
-
Copy the ID of the target project to which you want to copy the image. To do this, open the project menu and click in the row of the target project.
-
In the top right corner, open the menu (account number) and select the account with the project where the image is located.
-
Switch to the project where the image is located. To do this, open the project menu and select the source project.
-
On the top menu, click Products and select Cloud Servers.
-
Go to the Images section.
-
In the image card, open the Projects block.
-
Click Add project.
-
Paste the ID of the target project you copied in step 4.
-
Click .
-
Copy the image UUID.
-
In the top right corner, open the menu (account number) and select the account with the target project.
-
Switch to the target project. To do this, open the project menu and select the target project.
-
On the top menu, click Products and select Cloud Servers.
-
Go to the Images section.
-
Ensure you have selected the pool to which you want to transfer the image.
-
On the section page, click .
-
Paste the image UUID you copied in step 13.
-
Click Accept image.