Skip to main content

Transfer a cloud server or cloud infrastructure

If you need to transfer a configured infrastructure (servers, networks, volumes, backups, and other resources) or if it is important to keep the public IP address when transferring a server, we recommend you transfer the infrastructure project to another account. You cannot select a different pool segment during such a transfer.

A cloud server can be transferred to another pool segment, project, or account. To do this, you need to create and transfer a boot volume image of the server or transfer the server disk directly. When transferring an image to another project or account, you can also change the pool segment. It is impossible to transfer a server directly.

Transfer a cloud infrastructure project to another account

To transfer cloud infrastructure to another account, move the project.

You can only transfer a project within a single pool segment. All project objects will be preserved: servers, networks, public IP addresses, disks, and other resources.

To move a project to another account, use the instructions Moving services to another account.

Transfer a cloud server to another pool segment, project, or account

warning

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.
  1. View the name and type of the source cloud server's boot volume.

  2. Create an image of the source cloud server's boot volume.

  3. Transfer the image to the account, project, or pool segment to which you need to transfer the cloud server.

  4. Create the target cloud server from the boot volume image.

  5. If the source server uses additional disks, transfer them and connect them to the target server.

  6. 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

  1. In the Control panel, on the top menu, click Products and select Cloud Servers.

  2. Open the Servers tab → server page.

  3. Open the Configuration tab. If the tab has a Local disk field, the server has a bootable local disk.

  4. Open the Network volumes tab. If the disk line has a Bootable tag, the server has a bootable network volume.

2. Create a boot volume image of the source server

  1. In the Control panel on the top menu, click Products and select Cloud Servers.

  2. In the server menu, select Shut off. The server status will change to SHUTOFF.

  3. Go to the Images section.

  4. Click Create image.

  5. Enter the image name.

  6. Select a location where the image will be uploaded. Images smaller than 16 GB are automatically replicated to neighboring pool segments in the location.

  7. Select a disk as the image source.

  8. Select a disk — an image can only be created in the pool where the disk is located.

  9. Optional: check the Specify minimum disk and memory requirements checkbox. Specify the minimum amount of RAM in MB and the disk size in GB. When creating a cloud server from this image, the Control panel or API will automatically check these restrictions.

  10. 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.

  1. In the Control panel on the top menu, click Products and select Cloud Servers.

  2. Go to the Images section.

  3. In the menu of the boot volume image, select Copy link.

  4. Go to the account to which you need to transfer the server.

  5. Open the projects menu (name of the current project) and select the required project.

  6. Click Create image.

  7. Enter the image name.

  8. Select a location to which you want to transfer the image. The cloud server will be transferred to this same location.

  9. As the image source, select URL.

  10. Paste the image URL that you copied in step 3.

  11. Select the image format and container format.

    If you do not know which formats to specify, specify the image format raw and the container format as bare.

  12. Select an operating system.

  13. Optional: check the Specify minimum disk and memory requirements checkbox. Specify the minimum amount of RAM in MB and the disk size in GB. When creating a cloud server from this image, the Control panel or API will automatically check these restrictions.

  14. Click Create.

4. Create the target server from the image

  1. In the Control panel on the top menu, click Products and select Cloud Servers.

  2. Click Create server.

  3. Enter the name of the cloud server. It will be set as the hostname in the operating system on the server.

  4. Select a location to which you transferred the boot volume image.

  5. In the Source block, open the Images tab.

  6. Select the boot volume image that you created earlier.

  7. Click Select.

  8. Select a cloud server configuration range:

    • 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 processors are used in different ranges and server configurations depending on the pool segment. You can add GPUs to configurations — read more in the Create a cloud server with GPU instruction.

    After creating the server, you can change the configuration.

    The amount of RAM allocated to the server may be less than the specified amount — the operating system kernel reserves part of the RAM depending on the kernel version and distribution. You can check the allocated volume on an existing server using the command sudo dmesg | grep Memory.

  9. Select a boot (system) disk for the server:

    • local disk without network latency — mark the Local SSD NVMe disk checkbox. If you selected a custom configuration, specify the local disk size. If you selected a fixed one, the disk size will depend on the configuration;
    • or network volume — in the Disk type field, select a disk type and specify its size.

    After creating the server, you will be able to replace only the network boot volume.

  10. Click Add.

  11. Optional: to add an additional disk to the server, click Add. You can add multiple disks.

    After creating the server, you can disconnect additional disks from it and connect new ones.

    You can transfer additional disks that were connected to the source server.

  12. In the Internet block, configure public access to the server:

    12.1. In the Internet access 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.

  13. In the Private network block, connect an existing private subnet with a cloud router or create a new one:

    13.1. In the Subnet field, select a subnet.

    13.2. Optional: in the IP address field, change the default IP address.

  14. Select security groups to filter traffic on 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 filtering disabled, all traffic will be allowed.

  15. 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 no SSH keys are created, generate them.

  16. Optional: copy and save the root user password (the user with unlimited system privileges). Store the password in a safe place and do not share it in plain text.

  17. Optional: to create a preemptible server, check the Preemptible server checkbox.

  18. Optional: if you plan to create several servers and want to increase infrastructure fault tolerance, we recommend using placement groups or placing cloud servers in different pool segments — otherwise, we do not guarantee placement on different hosts.

    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 a server is created, it cannot be added to a group directly — only by creating a copy.

  19. Optional: to add extra information to the server or filter servers in the list, add a tag. You can add multiple tags. OS and configuration tags are added automatically.

    In the Tags field, check the existing tags or enter a new one. The maximum tag length is 60 characters. You can use Latin and Cyrillic letters, numbers, and the hyphen sign.

  20. Optional: in the User data field, paste or upload a script that will execute upon system boot. The maximum size of the script with data that is not Base64 encoded is 16 KB. Examples of scripts and supported formats can be viewed in the User data instruction.

  21. Click Create server.

5. Transfer additional disks

If the source cloud server uses additional disks, they can be transferred.

  1. Create images of the additional disks.

  2. Transfer the images of the additional disks to the account, project, or pool segment to which you transferred the cloud server.

  3. Create network volumes from the images.

  4. Connect the network volumes to the new cloud server.

6. Create a public floating IP address for the server

  1. In the Control panel on the top menu, click Products and select Cloud Servers.

  2. Go to the Network section → Public floating IP addresses tab.

  3. Click Create IP address.

  4. Select a location where the public floating IP address will be created.

  5. Specify the quantity of public floating IP addresses.

  6. Click Create.