After an SMC migration, certain system configurations and data may change on the target instance. Review the changes listed below for Linux and Windows instances and adjust settings as needed.
Linux instance changes after migration
System configuration changes
-
SMC makes the following changes to ensure the migrated server runs on ECS. These changes do not affect source server services.
Automated change
Reason
Fix boot files
Affected files: /boot/grub/grub.conf, /boot/grub/grub.cfg, or /boot/grub2/grub.cfg
Replaces the system disk UUID so the OS can detect and boot from the correct disk.
Fix automatic mount configuration file
Affected file: etc/fstab
Ensures data disks are detected and automatically mounted on instance startup.
Disable SELinux
Affected file: /etc/selinux/config
Disabled to prevent application startup failures caused by its access control policies.
Re-enable SELinux after migration if needed, after assessing the security impact.
Fix cloud-init configuration
Affected file: /etc/cloud/cloud.cfg
Ensures the migrated instance can receive and run cloud platform initialization configurations.
Rebuild initramfs
Affected file: /boot/initramfs*.img
Installs cloud environment drivers such as the virtio driver.
Install dependencies
Installs block replication dependencies: gcc and make.
Install and run the SMC client
The default installation directory for the SMC client is
/smc. -
The following items require manual changes.
Issue
Cause
SSH remote logon fails
SMC copies the NIC configuration from the source server. After migration, the original NIC name may not match the ECS naming convention (such as eth0 or eth1), preventing the network service from starting. Manually modify the configuration and restart the service.
Example: rename the NIC from
ens192toeth0. Adjust as needed:-
Log on to the migrated ECS instance.
To migrate to an image, you must first create an instance from a custom image or a shared image.
-
Go to ECS console - Instances. In the top-left corner, select the region and resource group for the target resource.
-
Go to the Instance page. Click Connect in the actions column, then click Sign in now in the dialog box that appears. Log in as prompted to go to the terminal page.
-
-
Run
cd /etc/sysconfig/network-scripts/to go to the NIC configuration directory. -
Find the NIC configuration file
ifcfg-ens192and rename it by runningsudo mv ifcfg-ens192 ifcfg-eth0. -
Run
sudo vi ifcfg-eth0. Change theDEVICEparameter toeth0and theBOOTPROTOparameter todhcp. Then, save the file and exit. -
The hostname changes.
The hostname changes during migration. You can reconfigure it as needed.
Original logon password is invalid
The original password becomes invalid after migration.
-
Migration to an image: Set the logon password in the Logon Credentials section when you create an instance from a custom image or shared image.
-
Migrating to an ECS instance: Reset the password.
-
Storage and data changes
|
Issue |
Reason |
|
Disk device name changes |
|
|
The size displayed by the |
By default, SMC uses the '--sparse' option. Sparse files occupy only their actual data size on the target instance, so their logical size exceeds their physical size. This does not affect usage. To fully copy sparse files, add '--no-S' to 'sync.options' in the 'client_data' file and restart the migration. |
|
Data inconsistency after migration |
|
|
Docker environment lost |
SMC fully migrates the Docker environment only with block replication enabled. Considerations for enabling block replication. |
Windows instance changes after migration
System configuration changes
|
Issue |
Solution |
|
Hostname changes |
The hostname changes after migration. You can configure it as needed. |
|
Invalid original logon password |
The logon password is changed after migration.
|
|
Install and run the SMC client |
The default installation directory for the SMC client is |
Storage and data changes
|
Issue |
Reason |
|
Drive letter changes |
On first boot, Windows reassigns drive letters sequentially, which may differ from the original assignment. You can manually reassign them.
|
|
A GPT partition becomes an MBR partition |
This does not affect data operations. For compatibility, SMC converts GPT to MBR on data disks smaller than 2 TiB. To expand beyond 2 TiB later, you must transform the partition to a GPT partition. |
|
The dynamic disk structure is not copied |
SMC does not migrate Windows dynamic disk structures. Dynamic disks are converted to basic disks after migration. |
icon and select Disk Management.