Skip to main content

Migrate a 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. Upload the Servers.ru server snapshot as an image to Selectel.
  4. Verify the integrity of the snapshot image.
  5. Create a new server from the uploaded snapshot.
  6. Optional: change the DNS server addresses.
  7. Optional: configure backups for network volumes.
  8. Optional: configure a global router to connect your cloud server to other products and services.

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

  1. Connect to the Servers.ru cloud server.

  2. Check the agent status:

    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 a Servers.ru cloud server

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

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

  1. Log in to the Servers.ru control panel..

  2. Go to the Cloud ServersCreate and Manage.

  3. Open the page of the required server.

  4. Turn off the server to reduce the risk of data loss when creating a snapshot.

  5. Open the Snapshots.

  6. Click Take Snapshot.

  7. Enter a snapshot name.

  8. Click Take Snapshot.

  9. Wait for the snapshot to be created.

  10. Click Download.

Transfer a snapshot using a temporary server

If you cannot download a snapshot from the Servers.ru control panel, you can upload it as a file using a temporary Selectel server.

  1. Log in to 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 the 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 the snapshot from the Servers.ru control panel.

3. Upload a Servers.ru server snapshot as an image to Selectel

If the Servers.ru server snapshot is larger than 5 GB, we recommend uploading it to the pool via S3. Details are in the Upload an image via S3 subsection of the Upload and create an image instruction.

  1. Log in to the Selectel control panel..

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

  3. Go to the Images.

  4. Click Create Image.

  5. Enter an image name.

  6. Select the region and pool segment where the server will be created.

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

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

  9. Click Upload.

  10. Select the image format qcow2 and the container format bare. If you are unsure which formats to select, choose the image format raw and the container format bare.

  11. Optional: check the Specify minimum disk and memory size box and specify the RAM in MB and the disk size in GB. This is the minimum disk and RAM size with which you can create a server from this image.

  12. Once an image is created, you cannot change the minimum disk and memory size in the control panel.

  13. Check the image price.

  14. Click Create.

4. Verify snapshot integrity

To ensure that the snapshot of the Servers.ru server uploaded correctly, calculate the file checksum. A file checksum is a character string that verifies the integrity of an uploaded file.

The calculation method depends on how you obtained the snapshot in step 2.

  1. If you downloaded the snapshot via the Servers.ru control panel, calculate the snapshot checksum. If you downloaded the snapshot via 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> — path to the snapshot file.

    1.3. Save the snapshot checksum.

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

  3. Go to the Images.

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

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

5. Create a server from the added snapshot

  1. Use the Create a cloud server instruction. Select the source — the Servers.ru server snapshot image that you uploaded in step 3.
  2. Optional: delete the snapshot image after the cloud server is created to avoid storage charges.
  3. Optional: delete the temporary server used to transfer the snapshot to avoid usage charges.

6. Optional: change DNS server addresses

Use the Change DNS servers in a private subnet and Change DNS servers in a public subnet instructions. Enter the Selectel DNS server addresses: 188.93.16.19 and 188.93.17.19.

7. Optional: configure backups for network volumes

Use the Configure scheduled backups section of the Create backups instruction to configure network volume backups.

8. Optional: configure a global router

Use the Connect products and services via a global router instruction to connect your cloud server to other Selectel products and services.