Windows
Scenarios
You need to install the Agent on each windows source server that you want to migrate. During the Agent installation, you need to enter the AK and SK of your HUAWEI CLOUD account. After the Agent is started successfully, it automatically reports source server information to SMS. All collected information is used for migration only. For details, see What Information Does SMS Collect About Source Servers?
There are two options for Windows:
- GUI-based Windows Agent (Python 3): Windows Server 2019, 2016, or 2012/Windows 10 or 8.1
- CLI-based Windows Agent (Python 2): Windows Server 2008/Windows 7
You must log in to the Windows source server as user Administrator.
Prerequisites
- You have obtained the AK/SK pair of the HUAWEI CLOUD account that the target ECS belongs to.
- To create an AK/SK pair for an IAM user, see How Do I Create an AK/SK Pair for an IAM User?
- To create an AK/SK pair for an account, see How Do I Create an AK/SK Pair for an Account?
- (Optional) You have created a migration project. For details, see Creating a Migration Project. If you want to use the default migration project, ignore this requirement.
- You have obtained the administrator permissions of the source server.
- You have confirmed that the source server is running an OS included in Supported Source Server OSs.
- There is no antivirus software installed on the source server. Antivirus software may prevent the Agent from starting up.
If the message "Failed to start I/O monitoring" is displayed when you start the Agent, rectify the fault by following the operations provided in How Do I Fix the Error "Failed to start the I/O monitoring module" When I Start the Agent?
Obtaining the Agent Installation File
- Log in to the management console.
- Click Service List. Under Migration, click Server Migration Service.
The SMS console is displayed.
- In the navigation pane on the left, choose Migration Agents.
The Migration Agents page is displayed.
- Click Download to download the Agent you need.
- Windows Agent (Python 3)
This GUI-based version is designed for Windows Server 2019/2016/2012 and Windows 10/8.1.
Save the SMS-Agent-Py3.exe file to a local directory.
- Windows Agent (Python 2)
This CLI-based version is designed for Windows Server 2008 and Windows 7
Save the SMS-Agent-Py2.exe file to a local directory.
- Windows Agent (Python 3)
- (Optional) Verify the software integrity of the Agent. For details, see How Do I Verify the Integrity of the Agent?
Installing Windows Agent (Python 3)
- Upload the SMS-Agent-Py3.exe file to the source server.
- Log in to the source server as user Administrator and double-click the SMS-Agent-Py3.exe file.
The Agent installation wizard is displayed.
- Click Install and wait for the installation to complete.
- Click Finish. The SMS-Agent GUI is displayed.
- Enter the AK and SK of the HUAWEI CLOUD account that the target ECS belongs to, and click Start.
If you do not need to use an HTTPS proxy, select Directly connection.
If you need to use to use an HTTPS proxy, select Use proxy and enter the IP address, port number, username, and password of the proxy server.
- A proxy server is a special network service. If your source server cannot access HUAWEI CLOUD through the Internet, you can use a proxy server to access HUAWEI CLOUD. You need to configure a proxy server by yourself.
- The IP address of the proxy server is not the IP address of the target ECS.
- The proxy is used for registering the source server with SMS when a Direct Connect or VPN connection is used. It is not used for data migration.
- In Figure 1, the details shown are just examples. Enter the actual values based on your specific server configuration.
- Click Start.
- Carefully review the Privacy Statement and click Yes if you want to continue.
When message Upload success. Waiting for the SMS instruction is displayed, the Agent has been started. You need to log in to the SMS console and perform subsequent operations.
Installing Windows Agent (Python 2)
- Check whether the source server you have logged in is the server to be migrated.
- Log in to the source server as user Administrator and double-click the SMS-Agent-Py2.exe file.
The Agent installation wizard is displayed.
- Click Install and wait for the installation to complete.
- Click Finish. The SMS-Agent CLI is displayed.
- If you need to use an HTTPS proxy server, go to 6.
If you do not need to use an HTTPS proxy server, go to 7.
- A proxy server is a special network service. If your source server cannot access HUAWEI CLOUD through the Internet, you can use a proxy server to access HUAWEI CLOUD. You need to configure a proxy server by yourself.
- The proxy is used for registering the source server with SMS when a Direct Connect or VPN connection is used. It is not used for data migration.
- (Optional) Configure an HTTPS proxy server.
Go to the directory where the Agent was installed (typically C:\SMS-Agent-Py2\config) and modify the auth.cfg file.
[proxy-config] enable = true proxy_addr = proxyip proxy_port = proxyport proxy_user = use_password = false
- proxy_addr indicates the IP address of the proxy server the source server uses to access SMS.
- enable controls if the proxy is used or not. To use the proxy, set this to true.
- If a username is required to use the proxy, set proxy_user to the username, for example, root. If not username is required, leave this parameter blank.
- If a password is required to use the proxy, set use_password to true. If none is required, set it to false.
- If the HTTPS proxy is not used during the migration, you are not allowed to modify the auth.cfg file.
- When prompted, enter the AK and SK of the HUAWEI CLOUD account that the target ECS belongs to.
After the authentication succeeds, the Agent starts to report source server information to SMS, and the window is closed.
Last Article: Installing the Agent on Source Servers
Next Article: Linux

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.