Skip to main content

Move a cloud server or cloud infrastructure

Last update:

If you need to move a configured infrastructure (servers, networks, volumes, backups, and other resources) or if it is important to save the public IP address when moving a server, we recommend moving the infrastructure project to another account. When moving this way, you cannot select a different pool segment.

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

Move a cloud infrastructure project to another account

To move 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, volumes, and other resources.

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

Move 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 — a public floating IP address, public direct IP address or create a public subnet. 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 selecting a different pool and region.

You can move a server in two ways:

  • move the boot volume image to use it for creating a new server in another pool segment, project, or account. We recommend using this method to move a server with a small amount of data;
  • move the server volume directly to a server in another pool segment, project, or account. We recommend using this method for moving a server with a large amount of data.
  1. See the name and type of the boot volume of the source cloud server.

  2. Create a boot volume image of the source cloud server.

  3. Move the image to the account, project, or pool segment to which you want to move the cloud server.

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

  5. If standard volumes are used on the source server, move 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 boot volume of the source server

  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 there is a Local disk field on the tab, the server has a local boot disk.

  4. Open the Network volumes tab. If there is a Bootable tag in the volume line, 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 Turn 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 to which the image will be uploaded. Images smaller than 16 GB are automatically replicated to neighboring pool segments of the location.

  7. Select a volume as the image source.

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

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

  10. Click Create.

3. Move the image

An image can be moved to another account, project, or pool segment.

When moving 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 you want to move the server to.

  5. Open the projects menu (the current project name) 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 the same location.

  9. Select URL as the image source.

  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, set the image format to raw and the container format to bare.

  12. Select the operating system.

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

  14. Click Create.

4. Create a 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 cloud server name. It will be set as the hostname in the server's operating system.

  4. Select the location to which you moved the boot volume image.

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

  6. Select the boot volume image you created earlier.

  7. Click Select.

  8. Select the configuration of the line for the cloud server:

    • fixed - ranges of configurations with different specifications, in which the resource ratio is fixed;
    • custom - configurations in which any resource ratio can be specified.

    Different processors are used across various server lines and configurations depending on the pool segment. You can add GPUs to configurations — see the Creating a cloud server with GPU instructions for more details.

    After creating the server, you can change its configuration.

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

  9. Select the boot (system) volume of the server:

    • local disk without network latency — check the Local SSD NVMe disk box. If you have 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 type of disk and specify its size.

    After server creation, you will be able to replace only the bootable network volume.

  10. Click Add.

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

    After the server is created, you can detach additional disks from it and attach new ones.

    You can transfer the additional disks that were attached to the original server.

  12. 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 — a static public IP address with a private subnet. The server to which the public IP address is currently connected will be accessible from the internet;
    • no internet access — the server will only be accessible from the private subnet or via the 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, attach 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 section is missing, traffic filtering (port security) is disabled in 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. Key types ed25519, rsa, ecdsa, and dsa are supported.

    Select an existing key or click Add SSH key. Enter a 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 (a user with unlimited permissions for all system operations). Store the password in a secure place and do not transmit it in plain text.

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

  18. 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, we do not guarantee placement on different hosts.

    Select an existing placement group or click Create group and enter a group name. Select a placement policy:

    • best effort on different hosts — soft-anti-affinity, the system will try to place servers on different hosts. If there is no suitable host available when creating the server, it will be created on the same host;
    • mandatory on different hosts — anti-affinity, servers in the group will strictly be placed on different hosts. If we cannot find a suitable host, the server will not be created.

    Once a server is created, it cannot be added to a group directly — only by creating a copy.

  19. Optional: to add additional information to a server or to filter servers in the list, add a tag. You can add multiple tags. OS 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.

  20. Optional: in the User data field, paste or upload a script that will run when the system boots. The maximum size of an unencoded script is 16 KB. Examples of scripts and supported formats can be found in the User data guide.

  21. Click Create server.

5. Transfer additional volumes

If the source cloud server uses additional volumes, you can transfer them.

  1. Create images of the additional volumes.

  2. Transfer the additional volume images 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, click Products in the top menu and select Cloud Servers.

  2. Go to the Network section.

  3. Open the Public IP addresses tab.

  4. Click Create IP address.

  5. Select a location in which the public floating IP address will be created.

  6. Specify the number of public IP addresses.

  7. Click Create.