Skip to main content

Migrate cloud server from Servers.ru

Last update:
  1. Install the cloud-init agent on the Servers.ru cloud server.
  2. Get a snapshot of the Servers.ru cloud server.
  3. Download the Servers.ru snapshot as an image to Selectel.
  4. Check the integrity of the snapshot image.
  5. Create a new server from the downloaded snapshot.
  6. Optional: Change the DNS server addresses.
  7. Optional: configure network disk backups.
  8. Optional: configure a global router to link the cloud server with other products and services.

1. Install the cloud-init agent on the cloud server Servers.ru

  1. Connect to the Servers.ru cloud server.

  2. Check the status of the agent:

    cloud-init status
  3. If cloud-init is not installed on the server, install it:

    sudo apt update  
    sudo apt install cloud-init

2. Get a snapshot of the cloud server Servers.ru

To get a snapshot from the Servers.ru control panel:

Create and download a snapshot from the Servers.ru control panel

  1. Authorize in the Servers.ru control panel.

  2. Go to Cloud ServersCreate and Manage.

  3. Open the page of the desired server.

  4. Shut down the server to reduce the chance of data loss when creating a snapshot.

  5. Open the Snapshots tab.

  6. Click Take a snapshot.

  7. Enter the name of the snapshot.

  8. Click Take Picture.

  9. Wait for the snapshot to be created.

  10. Click Download.

Transfer snapshot via temporary server

If you are unable to download the snapshot from the Servers.ru control panel, you can download it as a file via Selectel's temporary server.

  1. Authorize in the Selectel control panel.

  2. Create a temporary cloud server in the Selectel Control Panel with a disk larger than the snapshot size.

  3. Connect to the temporary server.

  4. Download the snapshot from Servers.ru to a temporary server:

    curl -o <file_name> "<snapshot_url>"

    Specify:

    • <file_name> - name of the file to which the snapshot will be saved;
    • <snapshot_url> - link to snapshot from Servers.ru control panel.

3. Upload the Servers.ru snapshot as an image to Selectel

If the size of the Servers.ru snapshot is larger than 5 GB, we recommend adding it to the pool via S3. For more details, see Upload image via S3 in the Upload and create image instructions.

  1. Authorize in the Selectel control panel.

  2. From the top menu, click Products and select Cloud Servers.

  3. Go to the Images section.

  4. Click Create Image.

  5. Enter a name for the image.

  6. Select the region and pool segment in which to create the server.

  7. Select a Linux operating system, even for a Windows server snapshot. This is necessary so that the servers that will be created from this snapshot will boot correctly.

  8. If you downloaded the snapshot, select the snapshot file as the image source. If you transferred the snapshot via a temporary server, provide a link to the snapshot file.

  9. Click Download.

  10. Select qcow2 image format and bare container format . If you do not know which formats to specify, specify raw image format and bare container format.

  11. 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 with which you can create a server from this image.

  12. Once the image is created, you cannot change the minimum disk and memory size in the Control Panel.

  13. Check the price of the image.

  14. Click Create.

4. Check the integrity of the snapshot

To make sure that the server snapshot from Servers.ru was downloaded correctly, calculate the file checksum. File checksum is a string of characters that confirms the integrity of the uploaded file.

The method of counting depends on the method you used to get the snapshot in step 2.

  1. If you downloaded the snapshot through the Servers.ru control panel, calculate the checksum of the snapshot. If you downloaded the snapshot through the OpenStack CLI, skip this step.

    1.1 Open the CLI.

    1.2 Calculate the checksum of the snapshot file:

    md5sum <file_path>

    Specify <file_path> - the path to the snapshot file..

    1.3 Save the checksum of the snapshot.

  2. In the Selectel control panel, click Products in the top menu and select Cloud Servers.

  3. Go to the Images section.

  4. In the image card, find the MD5 value. The value should match the checksum of the snapshot you saved in step 1.3.

    If you downloaded the snapshot in step 2 through the OpenStack CLI, the checksum should match the value you saved in step 4.2.

5. Create a server from the added snapshot

  1. Use the instructions Create a cloud server. Select the source - the server snapshot image from Servers.ru that you downloaded in step 3;
  2. Optional: delete the snapshot image after creating the cloud server so that you are not charged for storing it.
  3. Optional: delete the temporary server through which you transferred the snapshot, so that it will not be charged for its use.

6. Optional: change DNS server addresses

Use the Change DNS Servers on Private Subnet and Change DNS Servers on Public Subnet instructions. Enter the Selectel DNS server addresses: 188.93.16.19 and 188.93.17.19.

7. Optional: configure network disk backups

Use the Configure scheduled backups subsection of the Create backups instruction to configure network disk backups.

8. Optional: configure the global router

Use the instructions Link Products and Services via Global Router to set up Cloud Server communication with other Selectel products and services.