If your operating system has reached its end-of-life (EOL) or you need to upgrade to a later version to meet business requirements, you can use Server Migration Center (SMC) to migrate the operating system of an ECS instance while retaining the data on its system disk. This topic describes how to use SMC to migrate Windows Server 2008 R2, 2012 R2, 2016, or 2019 to a later version.
Background information
Microsoft ended support for Windows Server 2008/2008 R2 on January 14, 2020, and for Windows Server 2012/2012 R2 on October 10, 2023. If you have ECS instances that run these operating systems, you must take appropriate measures to continue receiving software updates and security patches to avoid the risks associated with an EOL operating system. For more information, see Windows Server operating systems. The operating system migration feature of Server Migration Center (SMC) provides several migration paths. After the migration, the OS kernel and major system software packages are upgraded in place, and the data on the system disk is retained.
If you do not need to retain data on the system disk or require more OS conversion options, you can replace the system disk to change the operating system.
Migration paths
Windows Server 2008 R2
Windows Server 2008 R2 is no longer supported. You can migrate your workloads to Windows Server 2016 or 2019, which are in mainstream support.
Due to limitations of the Windows OS migration feature, you cannot directly migrate Windows Server 2008 R2 to Windows Server 2016 or 2019. You must first migrate to an intermediate version, Windows Server 2012 R2.
Migrate Windows Server 2008 R2 to the intermediate version, Windows Server 2012 R2.
System architecture
Source operating system
Target operating system
x86
Windows Server 2008 R2 Standard Edition 64-bit (Chinese/English)
Windows Server 2012 R2 Datacenter Edition 64-bit (Chinese/English)
Windows Server 2008 R2 Enterprise Edition 64-bit (Chinese/English)
Migrate Windows Server 2012 R2 to Windows Server 2016 or 2019.
System architecture
Source operating system
Target operating system
x86
Windows Server 2012 R2 Datacenter Edition 64-bit (Chinese/English)
Windows Server 2016 Datacenter Edition 64-bit (Chinese/English)
Windows Server 2019 Datacenter Edition 64-bit (Chinese/English)
Windows Server 2012 R2
Windows Server 2012 R2 is no longer supported. You can migrate your workloads to Windows Server 2016 or 2019, which are in mainstream support.
System architecture | Source operating system | Target operating system |
x86 | Windows Server 2012 R2 Standard Edition 64-bit (Chinese/English) |
|
Windows Server 2012 R2 Datacenter Edition 64-bit (Chinese/English) |
Windows Server 2016
System architecture | Source operating system | Target operating system |
x86 | Windows Server 2016 Standard Edition 64-bit (Chinese/English) |
|
Windows Server 2016 Datacenter Edition 64-bit (Chinese/English) |
Windows Server 2019
System architecture | Source operating system | Target operating system |
x86 | Windows Server 2019 Datacenter Edition 64-bit (Chinese/English) | Windows Server 2022 Datacenter Edition 64-bit (Chinese/English) |
Limitations
Cross-language migration for Windows is not supported.
Only specific migration paths are supported.
The Windows instance to be migrated must have an instance type with at least 2 vCPUs and 2 GiB of memory.
The OS migration tool downloads and installs software packages, which consumes resources. Before you start the migration, ensure that the C drive of the instance has at least 20 GiB of free space and that the amount of free space is larger than the size of the
C:\Windowsfolder.You cannot migrate an instance while a snapshot is being created for it. Wait for the snapshot creation to complete before you start the migration.
Windows OS migration is supported only in the following regions.
Asia-Pacific - China
Asia-Pacific - Other
Europe and Americas
Middle East
China (Hangzhou)
China (Shanghai)
China (Qingdao)
China (Beijing)
China (Zhangjiakou)
China (Hohhot)
China (Ulanqab)
China (Shenzhen)
China (Heyuan)
China (Guangzhou)
China (Chengdu)
China (Hong Kong)
China (Wuhan - Local Region)
Japan (Tokyo)
South Korea (Seoul)
Singapore
Malaysia (Kuala Lumpur)
Indonesia (Jakarta)
Philippines (Manila)
Thailand (Bangkok)
Germany (Frankfurt)
UK (London)
US (Silicon Valley)
US (Virginia)
SAU (Riyadh - Partner Region)
Precautions
Before you migrate the operating system, note the following precautions.
Migration stage | Notes |
Before migration |
|
During migration |
|
After migration |
|
Migration Operations
During the migration, SMC creates pay-as-you-go snapshots of all cloud disks on the ECS instance for data backup. For more information, see Product Billing.
Fast migration (Recommended)
To use this method, you must install Cloud Assistant Agent on the ECS instance if your instance was purchased before December 1, 2017, created from a custom image that you uploaded, or is a third-party server. ECS instances created from public images after December 1, 2017 have the required Cloud Assistant Agent pre-installed. In this case, you can ignore this note.
Go to the SMC console-Cloud Migration-OS Migration.
On the OS Migration page, click Start Migration.
In the Migrate Operating System dialog box, select the ECS instance to migrate by its instance ID and region, then click Pre-check.

In the Migrate Operating System dialog box, the system automatically performs a pre-migration check, which takes about 10 seconds.
If the pre-check status changes from
to
, the pre-check is successful.If the pre-check status changes from
to
, the pre-check failed. Follow the prompts on the interface to resolve the issue and then try migrating again.
After you carefully read the notes for operating system migration, select I acknowledge and accept these risks and authorize Alibaba Cloud to create snapshots for all disks on the ECS instance, and then click Next.

In the Migrate Operating System dialog box, you can select the destination operating system.
Select the Same Destination Operating System: If you perform a batch migration, you can migrate multiple instances to the same operating system.
Select Destination Operating System by Instance: If you perform a batch migration, you can migrate multiple instances to different operating systems.
Click Check for Migratability to view the migration check result.
The check takes about 30 seconds.
: The operating system can be migrated.
: Migration is not supported. You can view the reason for the failure in the interface prompts.
Click Migrate.
You can view the progress of the operating system migration on the Migrate Operating System page.
WarningDuring the operating system migration, do not manually stop, restart, or release the ECS instance. Do not use O&M scripts to perform these operations. Otherwise, the migration fails.
Staged migration
Step 1: Import the migration source
A migration source is the data center server, VM, or cloud host from another platform that you plan to migrate.
Import the migration source from the command line (Recommended)
The source server must have public network access. If the source server has firewall restrictions, see What are the endpoints of SMC? to obtain the SMC domain names and ports, and add them to the firewall whitelist.
If your source server cannot access the public network or you want to improve migration efficiency by transferring data over a private network, see the private network migration solution.
Go to the SMC console - Operating System Migration page.
On the OS Migration page, click Import Migration source.
Configure the parameters as prompted on the page and copy the activation code command. The parameters are described in the following table.
Parameter
Description
Migration Source Type
Alibaba Cloud ECS Server.
Import Method
Select Use CLI To Import Server.
Activation Quota
The number of migration sources that can be activated by the activation code. The value ranges from 1 to 1000. The default value is 200.
Validity Period
The validity period of the activation code. The value ranges from 1 to 90 days. The default value is 90 days.
Activation Code
After generating the activation code, copy the command. Perform the following steps:
Click Generate.
Click the Windows Powershell tab.
Click Copy to copy the activation code command.
Import the migration source.
Log on to the Windows source server.
Open Windows PowerShell with administrator privileges.
Paste and run the copied command to import the migration source.

After you run the command, a message similar to
Import Source Server [s-bp19rlidl3mwuptc****] Successfully!appears, which indicates that the migration source was imported successfully.If the command fails to run, see What do I do if the command fails to run when I import a Windows migration source from the command line?.
On the Operating System Migration page in the SMC console, check the migration source status in the Migration Status column.
A status of Migration SourceOnline indicates a successful import.
If the status is not Source Online, the import failed. Troubleshoot the issue using the following methods and then re-import the source.
Troubleshoot the issue based on the error message in the console or by viewing the log files in the SMC client directory. The default installation directory of the SMC client is C:\smc.
For common issues and solutions, see SMC FAQ and Troubleshooting.
Import the migration source using the SMC client
For more information about the SMC client, see SMC client usage guide.
Go to the SMC console - Operating System Migration page.
On the OS Migration page, click Import Migration source.
On the Import Migration Source page, configure the parameters as described in the following table.
Parameter
Description
Migration Source Type
Alibaba Cloud ECS Server
Import Method
Select Client Import.
Import Instructions
In the Import Instructions section, download the SMC client that corresponds to the operating system (Linux or Windows) and architecture (32-bit or 64-bit) of the source server.
Import the migration source.
ImportantDo not close the SMC client during the migration. Otherwise, the migration source will lose its connection to the SMC console and the migration will fail.
Use a remote connection tool that supports file transfer, such as WinSCP, to upload the SMC client to the Windows source server.
On the Windows source server, use the system's built-in or a third-party decompression tool to unzip the SMC client package.
In the SMC client folder that matches the system version of your source server, run the SMC client.
When prompted for administrator privileges, click OK.
GUI version: Double-click the go2aliyun_gui.exe application to run it.
Command-line version: Double-click the go2aliyun_client.exe application to run it.
Obtain an activation code or an AccessKey pair.
(Recommended) Obtain an activation code. In the SMC console, go to the Description section, click Generate, and copy the activation code.
Obtain an AccessKey pair: An AccessKey pair for an Alibaba Cloud account includes an AccessKey ID and an AccessKey secret. If you have not created an AccessKey pair, you must create one. For more information, see Create an AccessKey pair.
Enter the activation code or AccessKey pair as prompted.
In the GUI, enter the activation code or AccessKey pair into the Token Id/AK and Token Code/SK text boxes and click Start. For more information, see the SMC client user guide.
Command-line version: Enter the values for
access_access_token_idandaccess_token_code, and press theEnterkey.
When a message similar to
Import Source Server [s-bp18x8751kgz2oyh****] Successfully!appears, it indicates that the migration source was imported successfully.
On the Operating System Migration page in the SMC console, check the status of the migration source in the Migration Status column.
A status of Migration SourceOnline indicates a successful import.
If the status is not Source Online, the import failed. Troubleshoot the issue using the following methods and then re-import the source.
Troubleshoot the issue based on the error message in the console or by viewing the log files in the SMC client directory. The default installation directory of the SMC client is C:\smc.
For common issues and solutions, see SMC FAQ and Troubleshooting.
Step 2: Configure the migration
Find the migration source that you want to manage and click Start Migration in the Actions column.
Configure the parameters in the Migration Configuration dialog box.
The following table describes the OS migration parameters.
Current Operating System: Displays the name of the current operating system. This parameter is read-only. Example: Windows Server 2008 R2 64-bit Chinese.
Target Operating System: Select an operating system from the drop-down list, such as Windows Server 2012 R2 Datacenter Edition 64-bit Chinese.
Click Start Migration. In the Confirm OS Migration dialog box, read the notes carefully and click I Confirm.
On the Operating System Migration page, you can view the migration status.
WarningDuring the OS migration, do not stop, restart, or release the Windows instance, either manually or using O&M scripts. Doing so may cause the OS migration to fail.
Verify the migration result
Clean up resources
During the migration, SMC creates pay-as-you-go snapshots named SMC_Backup_Snapshot_XXX to back up data on the cloud disks of the ECS instance. If you no longer need these snapshots, delete them promptly to avoid unnecessary charges. For more information, see Delete a snapshot.
