Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to Migrate GNU/Linux Servers from On-Premise to Cloud

Migrating a GNU/Linux server from on-premise to Plenit is reduced to three blocks: you prepare the import from the platform, generate an image of the source disk and upload it to the migration SFTP server.

The flow is designed for on-premise Linux servers, but it works just as well for other sources if you can obtain the disk image in the required format.

👍 What you get

The import prepared in Plenit and the image .raw of your disk uploaded to the migration environment, ready for the platform to deploy the target server.

Before you begin

  • Log in to the Plenit platform.

  • Have access to the section Migrations within Cloud Services.

  • Have the source GNU/Linux server ready from which you will generate the image.

Step 1. Start the migration from the wizard

In Cloud Services → Migrations, click New migration to open the wizard. If you have migrated before, this screen also shows the history.

1.1 Source service and type

Select Servers as the service to migrate and, as server type, Virtual to import the disk.

{/* 📸 SCREENSHOT 1 · wizard · Servers service and Virtual type */}

Selection of Servers and Virtual type in the wizard

1.2 Disk format and delivery method

Select Compatible Virtual Disks as the format and FTP as the delivery method. Then, fill in the disk details:

  • File name to import: with extension .raw (a raw disk is uploaded, copied bit for bit).

  • Partition: if it is a system or data disk.

  • Display Name: with which the disk will be identified in the console.

Click Create and then Next.

{/* 📸 SCREENSHOT 2 · wizard · Compatible Virtual Disks format, FTP and .raw disk data */}

Disk format and delivery method via FTP

1.3 Organization, subscription and deployment

Indicate the organization, the subscription and the availability zone where to upload the disk. To the question Do you want to deploy a new server with the imported disks?, the usual answer is Yes, to continue with the deployment in the same flow.

{/* 📸 SCREENSHOT 3 · wizard · organization, subscription, zone and deployment option */}

Selection of organization, subscription and deployment

1.4 Target server

If you chose to deploy, specify the name, the operating system, the size and the network type (standard or VPC). Click Finish.

{/* 📸 SCREENSHOT 4 · wizard · target server configuration */}

Target server configuration

1.5 SFTP connection data

When finished, Plenit leaves the import prepared and shows the SFTP connection details: server, user, and password. Save them: you will use them to upload the image.

{/* 📸 SCREENSHOT 5 · final screen with the SFTP connection details */}

SFTP connection details after preparing the import

Step 2. Generate the disk image and upload it

Before you start, delete unnecessary files or data from the source server: the image .raw takes up the full disk size, not just the used space, so cleaning reduces what you will upload.

❗️ Clone the disk cold so the image is consistent

Copying a system disk while it is mounted and services are writing to it can capture a half-finished state. For a reliable image, clone it with the machine stopped, from a live environment, or with the services stopped and the file system at rest.

2.1 Identify the source disk

Check the machine's disks. If there are several, repeat the process for each one, distinguishing the system disk from the data disks.

Clone the disk entire one (for example /dev/sda), not the partition (/dev/sda1).

{/* 📸 SCREENSHOT 6 · output of lsblk/fdisk -l identifying the source disk */}

Source disk identification with lsblk

2.2 Generate the .raw image

Create the bit-for-bit copy with dd. A large block and the progress indicator make it faster and more visible than the classic example with bs=1024:

Verify that the file has been generated and its size:

{/* 📸 SCREENSHOT 7 · generating the image with dd and checking the size */}

Generating the .raw image with dd

2.3 Upload the image to the SFTP

With the image ready, upload it to Plenit SFTP using the wizard data, with a graphical client or by command line:

(-P 22 is the port; <user> and <sftp-server> are the ones given by the wizard; put uploads the local file.)

{/* 📸 SCREENSHOT 8 · SFTP connection and upload of the .raw file */}

Upload of the disk image to the migration SFTP server

When the upload finishes, the import continues on the platform. After a while you will see in the migration console the messages to complete the configuration and the server startup.

Conclusion

The migration of an on-premise Linux lives in two places at once: the Plenit wizard, which prepares the import and gives you the SFTP, and your source server, where you generate and upload the image.

The point that decides whether the migration goes well is not the dd itself, but the state of the disk when you clone it: an image taken cold boots clean; one taken hot, on a system that is writing, may boot with the file system damaged. If you take care of that and clean the disk first so you don't upload more than necessary, the rest is just following the wizard.

Last updated

Was this helpful?