Skip to main content

Migrate a cloud server from Servers.ru

Before migration, learn how cloud servers work in the Cloud Servers product overview instructions.

  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 snapshot image integrity.
  5. Create a new server from the uploaded snapshot.
  6. Optional: change the DNS server addresses.
  7. Optional: configure network drive backups.
  8. Optional: configure the global router to connect the cloud server with 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 control panel of Servers.ru.

  2. Go to Cloud Servers → Create and Manage.

  3. Open the page of the required server.

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

  5. Open the Snapshots tab.

  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 snapshot via a temporary server

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

  1. Log in to the control panel of Selectel.

  2. Create a temporary cloud server in the control panel of Selectel 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 <path_to_file> "<snapshot_url>"

    Specify:

    • <path_to_file> — path to the file including the filename where the snapshot will be saved. We recommend creating a separate directory to save the snapshot;
    • <snapshot_url> — snapshot URL from the Servers.ru control panel.
  5. Go to the directory where you downloaded the snapshot in step 4.

  6. Start the web server:

    python3 -m http.server 80

    If Python is not installed on the server OS, install it and start the web server again. For more information on installing Python, see the Downloading Python guide in the official Python documentation.

  7. Open the page http://<ip_address>:80 in a browser.

    Specify <ip_address> — public IP address of the cloud server. You can copy it in the control panel: in the top menu, click Products → Cloud Servers → server page → Ports tab → on the port card, click next to the public IP address.

  8. On the page, click the snapshot.

  9. Copy and save the snapshot link from the address bar.

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

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

  1. Log in to the control panel of Selectel.

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

  3. Go to 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 if the snapshot is of a Windows server. This is necessary to ensure that servers created from this snapshot boot correctly.

  8. Upload the image:

  9. Click Upload.

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

  11. Optional: select 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 required to create a server from this image.

  12. You cannot change the minimum disk and memory requirements in the control panel once the image is created.

  13. Check the image price.

  14. Click Create.

4. Check the snapshot integrity

To ensure that the snapshot from the Servers.ru server has loaded correctly, calculate the file's checksum. A file checksum is a string of characters that confirms the integrity of the downloaded file.

The calculation method depends on the method you used to get 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 control panel of Selectel, in the top menu, click Products and select Cloud Servers.

  3. Go to 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 instructions. Select the source — the Servers.ru server snapshot image that you uploaded in step 3;
  2. Optional: delete the image of the snapshot after creating the cloud server so that you are not charged for its storage.
  3. Optional: delete the temporary server through which you transferred the snapshot so that you are not charged for using it.

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 network volume backups

Use the Configure scheduled backups subsection in the Create backups instructions to configure network drive backups.

8. Optional: configure a global router

Use the Connect products and services via global router instructions to configure cloud server connectivity with other Selectel products and services.