How to Migrate On-Premise Windows Servers to Plenit
To migrate a Windows physical machine to Plenit, you can generate a VHD of its disk with Disk2vhd, the SysInternals utility (Mark Russinovich, 2009) that creates a virtual hard disk from a running physical machine.
The workflow has three stages: you prepare the import on the platform, map the migration SFTP as a drive, and generate the VHD with Disk2vhd directly onto that drive, so it is uploaded to Plenit without intermediate steps.
👍 What you get
The import prepared in Plenit and the VHD from your Windows physical server generated with Disk2vhd and uploaded to the SFTP, ready to deploy the target server.
Before you begin
Log in to the Plenit platform.
Have access to the section Migrations within Cloud Services.
Have a physical machine with Windows to migrate from.
📘 Windows Server 2012: defragment first
Unlike 2016 and later, Windows Server 2012 does not defragment on its own. Do it before migrating so the image does not end up larger than necessary and the transfer does not take longer.
Step 1. Prepare the migration in Plenit
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, Physical.
{/* 📸 SCREENSHOT 1 · wizard · Servers service and Physical type */}

1.2 Disk format and delivery method
Select VHD – Disk Conversion as the format and copy via FTP as the delivery method. Specify the name of the disk to import (the one the system will expect when uploading the data) and the Display Name (the name under which it will be identified in the console). Click Next.
{/* 📸 SCREENSHOT 2 · wizard · VHD-Disk Conversion format, copy via FTP and disk names */}

1.3 Organization, subscription and deployment
Indicate the organization, the subscription and the availability zone where to deploy. If you do not have a subscription, you can create it here. To the question Do you want to deploy a new server with the imported disks?, the usual answer is Yes.
{/* 📸 SCREENSHOT 3 · wizard · organization, subscription, zone and deployment option */}

1.4 Target server
If you chose to deploy, specify the server name (spaces allowed), the operating system, the sizing (CPU and RAM) and the network type (standard or VPC; the most common is standard). Click Finish.
{/* 📸 SCREENSHOT 4 · wizard · target server configuration */}

1.5 SFTP connection data
When finished, Plenit shows the status (preparing transfer and, then, waiting for transfer) and the FTP connection data: server, username and password. Save them: you need them in Step 2.
{/* 📸 SCREENSHOT 5 · migration summary with FTP connection data */}

Step 2. Map Plenit SFTP as a drive
For a large image, it is advisable to generate the VHD directly onto the Plenit SFTP instead of saving it locally first. In this guide, we use SFTP Drive from NSoftware, but any similar tool will do.
2.1 Install SFTP Drive
Download it from NSoftware (the download asks you to register an email) and install it with administrator privileges. During installation, use the same email and a name for the registration. It is a good idea to restart when finished, although it can work without doing so.
{/* 📸 SCREENSHOT 6 · SFTP Drive installation/registration */}

2.2 Create the mapped drive
Open SFTP Drive and click New to create the drive with the SFTP data from Step 1:
Drive Name: connection name (this is how it appears in Windows Explorer).
Drive Letter: the drive letter (if you do not specify one, it will be assigned automatically).
Remote Host: the address of the SFTP server.
Remote Port:
22.Username / Password: the credentials provided by Plenit.
Remote Folder: leave User's home folder (default path, the folder
uploads).
Click Test SSH Connection and, if all goes well, OK. Check in Windows Explorer that the drive appears mapped.
📘 Accept the SSH keys if prompted
When connecting, prompts to accept SSH keys may appear. Accept them: they are part of the key exchange that establishes the secure connection.
{/* 📸 SCREENSHOT 7 · SFTP Drive · connection data and Test SSH Connection */}

Step 3. Generate the copy with Disk2vhd
3.1 Download and run Disk2vhd
Download Disk2vhd from the official project page on Microsoft (the full SysInternals suite or just Disk2vhd). Unzip it and run it as administrator. There are two versions depending on the architecture: disk2vhd for x86 and disk2vhd64 for x64.
{/* 📸 SCREENSHOT 8 · Disk2vhd · download from Microsoft / SysInternals website */}

3.2 Select the volumes and the output
In the Disk2vhd interface:
VHD File name: specify the path and the name of the file to generate. It must be on an external or additional disk (never one of the ones you are going to copy) and with enough space for the VHD. Here you can point directly to the mapped drive with SFTP Drive from Step 2, so the disk is written to Plenit while it is being generated.
Volumes to include: mark only the partitions you are going to migrate, keeping an eye on the size. Do not mark the server's additional disks: those are migrated by repeating the process for each one.
In the side options, check Use Volume Shadow Copy and leave the other two unchecked.
Click Create.
📘 Why Volume Shadow Copy
With Volume Shadow Copy, Disk2vhd generates a consistent image of the machine even while it is running. That is what lets you migrate without stopping the source server.
{/* 📸 SCREENSHOT 9 · Disk2vhd · selected volumes, Use Volume Shadow Copy and output path on the mapped drive */}

The time the process takes depends on the size of the source disk, the power of the machine and, if you write to the mapped drive, the network speed.
When finished, you will have the VHD. Then return to the Migrations menu and follow the guided process the tool prompts you through to complete the import.
Conclusion
The advantage of Disk2vhd over cloning a disk cold is that it uses Volume Shadow Copy: it generates a consistent image of the physical server without stopping it. And if you direct the output straight to the mapped SFTP drive, the VHD is written to Plenit as it is created, without the detour of saving it locally and uploading it again.
Just take care of two things: that the file name matches the disk to import you declared in the wizard, and, on Windows Server 2012, defragment first so you do not carry around an image heavier than necessary.
Last updated
Was this helpful?

