If your operating system has reached its end of life (EOL) or you need to upgrade it for business purposes, you can use Server Migration Center (SMC) to migrate the OS. This process retains the data on the system disk of your ECS instance. 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 use these operating systems, we recommend that you take action to continue receiving software updates and security patches. This helps prevent issues caused by the EOL of the operating systems. For more information, see Windows Server operating systems. The operating system migration feature of SMC provides several migration paths. After the migration, the OS kernel version and major system packages are upgraded, and the data on the system disk is retained.
If you do not need to retain system disk data or if you need more OS conversion options, you can change the operating system by replacing the system disk.
Migration paths
Windows Server 2008 R2
Support for Windows Server 2008 R2 has ended. You can migrate it to Windows Server 2016 or 2019, which are in the mainstream support phase, to ensure your applications run in a supported environment.
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 the 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
Support for Windows Server 2012 R2 has ended. You can migrate it to Windows Server 2016 or 2019, which are in the mainstream support phase, to ensure your applications run in a supported environment.
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 |
Migration restrictions
Cross-language migration for Windows is not supported.
Only specific migration paths are supported.
The Windows instance that you want to migrate must have an instance type of 2 vCPU and 2 GiB or higher.
The OS migration tool downloads and installs software packages during the migration. Before you migrate, ensure that the C drive of the instance has at least 20 GiB of free space and that the 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 & 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, make sure you understand the following precautions.
Migration phase | Precautions |
Before migration |
|
During migration |
|
After migration |
|
Migration operations
During the migration, SMC creates pay-as-you-go snapshots of all disks attached to the ECS instance to back up data. You will be charged for these snapshots. For more information, see Billing.
Quick migration (recommended)
If your instance was purchased before December 1, 2017, was created from a custom image that you uploaded, or is a third-party server, you must install Cloud Assistant Agent on the ECS instance to use this method. ECS instances created from public images after December 1, 2017 have the Cloud Assistant Agent pre-installed by default. This note does not apply to such instances.
Log on to the Server Migration Center (SMC) console.
On the OS Migration page, click Start Migration.
In the Migrate Operating System dialog box, select the ECS instance to be migrated and click Pre-check.
You can filter ECS instances by instance ID and region.

In the Migrate Operating System dialog box, the system automatically conduct pre-migration checks for the operating system, which will take approximately 10 seconds.
When the pre-check status changes from
to
, it indicates that the pre-check has passed.When the pre-check status changes from
to
, it indicates that the pre-check has failed. You can follow the prompts to fix the issues and attempt the migration again.
After carefully reading the usage notes for operating system migration, select I acknowledge and accept these risks and authorize Alibaba Cloud to create snapshots for all disks on the instance and click Next.

In the pop-up Migrate Operating System dialog box, select the destination operating system as needed.
Select the Same Destination Operating System: If you migrate the operating systems of multiple ECS instances at a time, you can select this option and specify a destination operating system for all the selected instances.
Select Destination Operating System by Instance: If you migrate the operating systems of multiple ECS instances at a time, you can select this option and specify a destination operating system for each selected instance.
Click Check for Migratability and view the check results.
The migratability check requires approximately 30 seconds to complete.
: You can migrate the instance to the destination operating system.
: You cannot migrate the instance to the destination operating system. You can follow the on-screen instructions to view the reason why you cannot migrate the instance to the destination operating system.
Click Migrate.
You can view the operating system migration progress on the Migrate Operating System page.
WarningDuring the migration process, do not stop, restart, or release the ECS instance in manual mode or by using O&M scripts. Otherwise, operating system migration fails.

Step-by-step migration
Step 1: Import the migration source
Migration sources can be servers of a variety of types to migrate, such as servers in data centers, VMs, and hosts on third-party cloud platforms. SMC supports multiple methods to import the information about migration sources. You can select a method based on your business requirements. For more information, see the How do I choose a method to import migration sources? section of the "FAQ" topic.
Import the migration source using a command (recommended)
The source server must be accessible over the Internet. If your source server is protected by a firewall, refer to What are the service domains of SMC? and ensure that the corresponding domains and ports are whitelisted in your network security policy.
If your source server cannot access the Internet or you want to improve migration efficiency through the VPC, use the method of importing by client.
Go to the SMC console - OS Migration page.
On the OS Migration page, click Import Migration source.
Configure the parameters as prompted and copy the activation code command. The following table describes the parameters.
Parameter
Description
Migration Source Type
Alibaba Cloud ECS Instance.
Import Method
Select Use CLI to Import Server. Generate an activation code and a command, and run the command on the migration source.
Activation Quota
The number of migration sources whose information you want to import by using the activation code. Valid values: 1 to 1000. Default value: 200.
Validity Period
The validity period of the activation code. Unit: day. Valid values: 1 to 90. Default value: 90.
Activation Code
The activation code. Perform the following steps to generate the activation code and copy the generated command:
Click Generate.
Click the Windows Powershell tab.
Click Copy to copy the activation code command.
Import the migration source.
Log on to the Windows server.
Open Windows PowerShell as an administrator.
Run the copied command to import the information about the migration source.

After the command is run, if a message similar to
Import Source Server [s-bp19rlidl3mwuptc****] Successfully!is returned, the information about the migration source is imported.If the command fails to run, see What do I do if the command fails to be run when I import the information of a Windows migration source by using the CLI?
On the OS Migration page in the SMC console, check the status of the migration source in the Real-time Migration Status column.
If the status of the migration source is Migration SourceOnline, the information about the migration source is imported.
If the migration source is in another state, the information fails to be imported. In this case, troubleshoot the failure based on the following solutions and import the information about the migration source again:
Troubleshoot the issue based on the message displayed in the SMC console or the log file in the directory where the SMC client is installed. By default, the SMC client is installed in the C:\smc directory.
For more information about frequently asked questions (FAQ) and solutions, see FAQ and Errors occurred during a server migration.
Import the migration source using the SMC client
For more information about the SMC client, see SMC client guide.
Go to the SMC console - OS Migration page.
On the OS Migration page, click Import Migration source.
On the Import Migration Source page, configure the parameters. The following table describes each parameter.
Parameter
Description
Migration Source Type
Alibaba Cloud ECS Instance
Import Method
Select Client Import.
Import Instructions
In the Import Instructions section, download the appropriate SMC client for your source server's operating system (Linux or Windows) and architecture (32-bit or 64-bit).
Import the information about the migration source.
ImportantDuring the migration, do not shut down the SMC client until the migration is complete. Otherwise, the migration source is disconnected from the SMC console, and the migration fails.
You can use a remote connection tool that supports file transfer. For example, you can use WinSCP to upload the SMC client package to the source Windows server.
On the source Windows server, use the built-in decompression tool of Windows or the decompression tool that you install to decompress the SMC client package.
In the SMC client folder that corresponds to the source server, run the SMC client.
To run the Windows GUI version, double-click the go2aliyun_gui.exe file.
To run the Windows CLI version, double-click the go2aliyun_client.exe file.
NoteWhen you run the program, you must click OK to confirm that you have the administrator permissions.
Obtain an activation code or AccessKey pair.
(Recommend) Obtain an activation code: In the Description section in the SMC console, click Generate and copy the generated activation code information.
Obtain an AccessKey pair: An AccessKey pair consists of an AccessKey ID and an AccessKey secret. If no AccessKey pair is created, create one first. For more information, see Obtain an AccessKey pair.
Enter the activation code or AccessKey pair as prompted.
To run the Windows GUI version, enter the activation code or AccessKey pair in the Token Id/AK and Token Code/SK fields and click Start. For more information, see Use the SMC client.
To run the Windows CLI version, enter the obtained
access_access_token_idandaccess_token_codeand press theEnterkey.
If the information about the migration source is imported, a message similar to the following one is returned:
Import Source Server [s-bp18x8751kgz2oyh****] Successfully!
On the OS Migration page of the SMC console, you can check the status of the migration source in the Real-time Migration Status column.
If the status of the migration source is Migration SourceOnline, the information about the migration source is imported.
If the migration source is in another state, the information fails to be imported. In this case, troubleshoot the failure based on the following solutions and import the information about the migration source again:
Troubleshoot the issue based on the message displayed in the SMC console or the log file in the directory where the SMC client is installed. By default, the SMC client is installed in the C:\smc directory.
For more information about frequently asked questions (FAQ) and solutions, see FAQ and Errors occurred during a server migration.
Step 2: Configure the migration
Find the migration source that you want to manage and click Start Migration in the Actions column.
In the Migration Configuration dialog box, configure the parameters.
The following table describes the OS migration parameters.
Current Operating System: The current operating system. This is a read-only field. 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, carefully read the precautions and click I Confirm That I Understand.
On the OS Migration page, you can view the real-time migration status.
WarningDuring the OS migration, do not stop, restart, or release the Windows instance manually or using O&M scripts. Otherwise, the OS migration will fail.
Verify the migration result
Clean up resources
During the migration, SMC creates pay-as-you-go snapshots named SMC_Backup_Snapshot_XXX for the disks of the ECS instance. If you no longer need these snapshots, delete them to avoid incurring further charges. For more information, see Delete a snapshot.
