Skip to main content
Move the cloud server
Last update:

Move the cloud server

The cloud server can Move to another pool segment, project or account. To do this, you need to create an image of the server boot disk, transfer the image and create a new server from it. When transferring the image to another project or account, you can also change the pool segment. It is not possible to transfer a server directly.

If it is important to keep the public IP address when migrating a server, or if you need to move cloud infrastructure (servers, networks, disks, backups and other resources), we recommend move the project to another account. All infrastructure will remain intact, including public IP addresses. You cannot select a different pool segment during this migration.

Move cloud infrastructure to another account

To migrate your cloud infrastructure to another account, migrate the following project.

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

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

Move the cloud server to another pool segment, project or account

The cloud server can be moved to another pool segment, project and account. When you transfer an image to another project or account, you can also change the pool segment, including selecting a different pool and region.

Limitations when migrating a server using this method:

  • The public IP address of the server will not be migrated. After the server is migrated, you can create a new IP address or public subnet. If you want to keep the public IP address, move the entire project to another account;
  • other project resources are not migrated.

To move the server:

  1. See which cloud server disk is bootable.
  2. Create a boot disk image of the cloud server.
  3. Transfer the image to the account, project, or pool segment to which you want to migrate the cloud server.
  4. Create a cloud server from a boot disk image. If the image is larger than 50 GB, you must first create a disk from it, and then create a server from the disk.
  5. If additional disks are used on the source server, migrate them and connect them to the new server..
  6. If the transfer was not within the same pool, create a new public IP address for the server.

View the boot disk

  1. In control panel go to Cloud platformServers.
  2. Open the tab Servers → server page.
  3. Open the tab Configuration. If there is a field on the tab Local diskthen the server has a bootable local disk.
  4. Open the tab Network disks. If there is a tag in the disk line Loadingthen the server has a bootable network disk.

Create a bootable disk image

  1. If the disk is connected to a cloud server, we recommend that you shut down the cloud server — a non-consistent image may be created from a working disk.
  2. In control panel go to Cloud platformImages.
  3. Click Create an image.
  4. Enter a name for the image.
  5. Select pool segment to which the image will be loaded. Images smaller than 16 GB are automatically replicated to neighboring segments in the pool.
  6. Select the disk as the image source.
  7. Select a disk — you can only create an image in the pool where the disk is located.
  8. Optional: check the checkbox Specify minimum disk and memory requirements. Specify the minimum amount of RAM in MB and disk capacity in GB. When you create a cloud server from this image, the control panel or API will automatically check these limits.
  9. Click Create.

Transfer the image

The image can be transferred to another account, project or pool segment.

When you move an image to another account or project, you can also change the pool segment.

  1. In control panel go to Cloud platformImages.

  2. On the menu. of the boot disk image, select Copy the URL of the image.

  3. Make sure you are in the account and project you want to move the server to. Open the projects menu (name of the current project) and select the desired project.

  4. Click Create an image.

  5. Enter a name for the image.

  6. Select pool segment The cloud server will be moved to the same segment. The cloud server will be moved to the same segment.

  7. Select URL as the image source.

  8. Paste the URL of the image you copied in step 2.

  9. Select the image format and container format.

    If you do not know which formats to specify, specify the image format rawand the container — bare.

  10. Select the operating system.

  11. Optional: check the checkbox Specify minimum disk and memory requirements. Specify the minimum amount of RAM in MB and disk capacity in GB. When you create a cloud server from this image, the control panel or API will automatically check these limits.

  12. Click Create.

Create a cloud server

If the image size is less than 50 GB, you can create a cloud server directly from the boot disk image.

If the image size is larger than 50 GB, we recommend that you first disk image and then create a server from that disk. This will help to avoid an error when creating the server.

  1. If the size of the boot disk image is more than 50 GB, create a disk from the image.

  2. In control panel go to Cloud platformServers.

  3. Click Create a server.

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

  5. Select pool segment into which you transferred the boot disk image.

  6. Click on the default source name. Select the source from which the server will be created:

    • If the size of the created disk image is less than 50 GB, open the tab My images. Select the boot disk image that you previously created;
    • If the image size is more than 50 GB, open the tab Disks. Select the disk created from the boot disk image.

    Click Select.

  7. Select a cloud server configuration:

    • fixed — lineup with different vCPU to RAM ratios up to 36 vCPUs, 128 GB of RAM and 1.25 TB of local disk capacity;
    • arbitrary — choosing any resource ratio up to 32 vCPUs, 256 GB RAM and 1.23 TB of local disk space.

    Different server configurations and lineups use different pool segments depending on the pool segment processors. GPUs can be added to the configurations — more details in the instructions Create a cloud server with GPU.

    Once the server is created, you can reconfigure.

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

  8. Select the server boot (system) disk:

    • local disk without network delays — check the box. Local SSD NVMe disk. If you chose an arbitrary configuration, specify the local disk size. If you selected fixed, the disk size will depend on the configuration;
    • or network disk — in the field Disk type select disk type and specify its size.

    Once the server is created, you can replace only the network boot disk.

    Click Add.

  9. Optional: To add an additional disk to the server, press Add. Multiple disks can be added.

    Once the server is created, you can disconnect additional disks from it and connect new ones.

    You can relocate additional disks that were connected to the original server.

  10. Select or create the subnet to which the server will connect:

    • private subnet — a subnet without access from the Internet;
    • private subnet with public IP address — a private subnet and one static public IP address;
    • public subnet — all addresses in the subnet will be accessible from the Internet.
  11. To securely connect to the server, place an SSH key on the server. Multiple keys can be added. The supported key types are ed25519, rsa, ecdsa, and dsa.

    Select an existing key or press Add an SSH key. Enter a key name and insert a public SSH key in OpenSSH format. Click Add.

    If SSH keys have not been created, generate them.

  12. Optional: copy and save the user password root (a user with unlimited rights to all system operations). Keep the password in a safe place and do not share it publicly.

  13. Optional: to create preemptible server and check the box Preemptible server.

  14. Optional: if you plan to create multiple servers and want to increase the fault tolerance of your infrastructure, we recommend using accommodation groups or place cloud servers in different segments of the pool — in other cases we do not guarantee placement on different hosts.

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

    • Preferably on different hosts — soft-anti-affinity, the system will try to place servers on different hosts. If there is no suitable host when creating a server, it will be created on the same host;
    • Must be on different hosts — anti-affinity, servers in a group must be on different hosts. If we do not find a suitable host, the server will not be created.

    Once a server is created, it cannot be added to a group directly — only through the copy creation.

  15. Optional: to add additional information to the server or filter the servers in the list, add tag. Multiple tags can be added. Operating system and configuration tags are automatically added.

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

  16. Optional: in the field User data insert or upload a script that will be executed at system startup. The maximum size of a script with non-Base64 encoded data is 16 KB. Examples of scripts and supported formats can be found in the manual User data.

  17. Click Create a server.

Move additional disks

If additional disks are used on the original cloud server, you can migrate them.

  1. Create images of additional disks.
  2. Transfer the additional disk images to the account, project, or pool segment to which you migrated the cloud server.
  3. Create network disks from images.
  4. Connect the network drives to the new cloud server.

Create a public IP address for the server

  1. In control panel go to Cloud platformNetwork.
  2. Open the tab Public IP addresses.
  3. Click Create an IP address.
  4. Select pool This will create a public IP address.
  5. Specify the number of public IP addresses.
  6. Click Create.