Transfer a cloud server or cloud infrastructure
If you need to transfer configured infrastructure (servers, networks, disks, backups, and other resources) or if it is important to keep the public IP address when transferring a server, we recommend transferring the infrastructure project to another account. With this type of transfer, you cannot select a different pool segment.
A cloud server can be transferred to another pool segment, project, or account. To do this, create and transfer an image of the server's boot disk or transfer the server disk directly. When transferring an image to another project or account, you can also change the pool segment. Direct server transfer is not possible.
Transfer a cloud infrastructure project to another account
To transfer cloud infrastructure to another account, transfer the project.
You can only transfer a project within the same pool segment. All project objects will be preserved: servers, networks, public IP addresses, disks, and other resources.
To transfer a project to another account, use the instructions in Transfer services to another account.
Transfer a cloud server to another pool segment, project, or account
When transferring a cloud server, its public IP address and other project resources will not be transferred. After the transfer, you can connect a new public IP address:
If you want to keep the public IP address, transfer the entire project to another account.
A cloud server can be transferred to another pool segment, project, and account. When transferring an image to another project or account, you can also change the pool segment, including choosing a different pool and region.
You can transfer a server in two ways:
- transfer the boot volume image to use it to create a new server in another pool segment, project, or account. We recommend using this method for transferring a server with a small amount of data;
- transfer the server disk directly to a server in another pool segment, project, or account. We recommend using this method for transferring a server with a large amount of data.
Transfer a volume image
Transfer disk directly
-
View the name and type of the source cloud server boot disk.
-
If the source server uses additional disks, transfer them and attach them to the target server.
-
If the source and target servers are in different pools, create a new public floating IP address for the server.
1. View the name and type of the source server's boot volume
-
In the Control panel, in the top menu, click Products and select Cloud servers.
-
Open the Servers tab → server page.
-
Open the Configuration tab. If the tab has a Local disk field, the server has a local boot disk.
-
Open the Network volumes tab. If the disk row has the Bootable tag, the server has a network boot disk.
2. Create a boot volume image of the source server
Control panel
OpenStack CLI
-
In the Control panel, in the top menu, click Products and select Cloud servers.
-
In the server menu, select Shut down. The server status will change to
SHUTOFF. -
Go to the Images section.
-
Click Create image.
-
Enter the image name.
-
Select the location where the image will be uploaded. Images smaller than 16 GB are automatically replicated to neighboring pool segments in the location.
-
Select a disk as the image source.
-
Select a disk — an image can only be created in the pool where the disk is located.
-
Optional: select the Specify minimum disk and memory requirements checkbox. Specify the minimum RAM in MB and disk size in GB. When creating a cloud server from this image, the control panel or API will automatically check these limits.
-
Click Create.
3. Transfer the image
The image can be transferred to another account, project, or pool segment.
When transferring an image to another account or project, you can also change the pool segment.
Control panel
OpenStack CLI
-
In the Control panel, in the top menu, click Products and select Cloud servers.
-
Go to the Images section.
-
In the menu of the boot disk image, select Copy link.
-
Go to the account to which you need to transfer the server.
-
Open the projects menu (name of the current project) and select the required project.
-
Click Create image.
-
Enter the image name.
-
Select the location to transfer the image to. The cloud server will be transferred to the same location.
-
As the image source, select URL.
-
Paste the image URL that you copied in step 3.
-
Select the image format and container format.
If you do not know which formats to specify, set the image format to
rawand the container format tobare. -
Select an operating system.
-
Optional: select the Specify minimum disk and memory requirements checkbox. Specify the minimum RAM in MB and disk size in GB. When creating a cloud server from this image, the control panel or API will automatically check these limits.
-
Click Create.
4. Create the target server from the image
Control panel
OpenStack CLI
-
In the Control panel, in the top menu, click Products and select Cloud servers.
-
Click Create server.
-
Enter the name of the cloud server. It will be set as the hostname in the operating system on the server.
-
Select the location where you transferred the boot disk image.
-
In the Source block, open the Images tab.
-
Select the boot disk image you created earlier.
-
Click Select.
-
Select the cloud server flavor line configuration:
- fixed — ranges of configurations with different technical specifications, in which the resource ratio is fixed;
- custom — configurations in which any resource ratio can be specified.
Different server lines and configurations use different processors depending on the pool segment. You can add GPUs to configurations — learn more in the Create a cloud server with GPU instructions.
After creating the server, you can change the configuration.
The amount of RAM allocated to the server may be less than specified — the operating system kernel reserves a portion of RAM depending on the kernel version and distribution. You can check the allocated amount on an existing server using the
sudo dmesg | grep Memorycommand. -
Select a boot (system) disk for the server:
- local disk without network latency — select the Local SSD NVMe disk checkbox. If you selected a custom configuration, specify the local disk size. If you selected a fixed configuration, the disk size will depend on the configuration;
- or network volume — in the Disk type field, select the disk type and specify its size.
After creating the server, you can only replace the network boot disk.
-
Click Add.
-
Optional: to add an additional disk to the server, click Add. You can add multiple disks.
After creating the server, you can detach additional disks and attach new ones.
You can transfer additional disks that were attached to the source server.
-
In the Internet block, configure public access to the server:
12.1. In the Internet connection field, select the access type:
- public floating IP address — static public IP address with a private subnet. The server will be accessible from the internet, to which the public IP address would be connected at that time;
- no internet access — the server will only be accessible from a private subnet or via console.
12.2. If you selected Public floating IP address, select a public IP address or create a new one.
-
In the Private network block, connect an existing private subnet with a cloud router or create a new one:
Existing private subnet
New private subnet
13.1. In the Subnet field, select a subnet.
13.2. Optional: in the IP address field, change the default IP address.
-
Select security groups to filter traffic on the server ports. Without security groups, traffic will be denied. If the block is missing, traffic filtering (port security) is disabled on the server network. With traffic filtering disabled, all traffic will be allowed.
-
To connect to the server securely, place an SSH key on it. You can add multiple keys. The supported key types are ed25519, rsa, ecdsa, and dsa.
Select an existing key or click Add SSH key. Enter the key name and paste the public SSH key in OpenSSH format. Click Add.
If SSH keys have not been created, generate them.
-
Optional: copy and save the password for the
rootuser (the user with unrestricted privileges for all actions on the system). Store the password in a safe place and do not transfer it in unencrypted form. -
Optional: to create a preemptible server, select the Preemptible server checkbox.
-
Optional: if you plan to create multiple servers and want to increase infrastructure fault tolerance, we recommend using placement groups or placing cloud servers in different pool segments — in other cases, placement on different hosts is not guaranteed.
Select an existing placement group or click Create group and enter the group name. Select the placement policy:
- preferably on different hosts — soft-anti-affinity, the system will try to place the servers on different hosts. If there is no suitable host when creating the server, it will be created on the same host;
- must be on different hosts — anti-affinity, the servers in the group are guaranteed to be located on different hosts. If we do not find a suitable host, the server will not be created.
After creating the server, you cannot add it to a group directly — only by creating a copy.
-
Optional: to add extra information to the server or filter servers in the list, add a tag. You can add multiple tags. Operating system and configuration tags are added automatically.
In the Tags field, select existing tags or enter a new one. The maximum tag length is 60 characters. You can use Latin and Cyrillic letters, digits, and hyphens.
-
Optional: in the User data field, paste or upload a script that will run when the system boots. The maximum size for a script with non-Base64-encoded data is 16 KB. For script examples and supported formats, see the User data instructions.
-
Click Create server.
5. Transfer additional disks
If the source cloud server uses additional disks, they can be transferred.
6. Create a public floating IP address for the server
Control panel
OpenStack CLI
-
In the Control panel, in the top menu, click Products and select Cloud servers.
-
Go to the Network section → Public floating IPs tab.
-
Click Create IP address.
-
Select the location where the public floating IP address will be created.
-
Specify the quantity of public floating IP addresses.
-
Click Create.