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/SK pair of your HUAWEI CLOUD account. After the Agent is started successfully, it automatically reports source server information to SMS. All collected data 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/2012 and Windows 10/8.1
  • CLI-based Windows Agent (Python 2): Windows Server 2008 and Windows 7

    You must log in to the Windows source server as user Administrator.

Prerequisites

Downloading the Agent Installation File

  1. Log in to the management console.
  2. Click Service List. Under Migration, click Server Migration Service.

    Figure 1 SMS console

  3. In the navigation pane on the left, click Agents.

    Figure 2 Agents

  4. In the Windows area, 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.

      Copy 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.

      Copy the SMS-Agent-Py2.exe file to a local directory.

  5. (Optional) Click Download SHA256 in the pane of the Agent you have downloaded. Use the the hash value contained in the downloaded file to verify the integrity of the Agent installation package. For details, see How Do I Verify the Integrity of the Agent?

Installing Windows Agent (Python 3)

  1. Upload the SMS-Agent-Py3.exe file to the source server.
  2. Log in to the source server as user Administrator and double-click the SMS-Agent-Py3.exe file.
  3. Click Install and wait for the installation to complete.
  4. Click Finish. The SMS-Agent GUI is displayed.
  5. Enter the AK/SK pair of the HUAWEI CLOUD account that the target server 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 server.
    • 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 3, the details shown are just examples. Enter the actual values based on your specific server configuration.
    Figure 3 Starting the Agent

  6. Click Start.
  7. 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)

  1. Upload the SMS-Agent-Py2.exe file to the source server.
  2. Log in to the source server as user Administrator and double-click the SMS-Agent-Py2.exe file.
  3. Click Install and wait for the installation to complete.
  4. Click Finish. The SMS-Agent CLI is displayed.
  5. 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.

  6. (Optional) Configure an HTTPS proxy server.

    Go to the directory where the Agent was installed (typically C:\SMS-Agent-Py2\config) and edit the auth.cfg file. The values shown here are for reference only. Do not to edit the auth.cfg file unless you need to use an HTTPS proxy.

    [proxy-config]
    enable = true
    proxy_addr = proxyip
    proxy_port = proxyport
    proxy_user =
    use_password = false

    • proxy_addr: IP address of the proxy server. The proxy is used for registering the source server with SMS when Direct Connect or a VPN is used. It is not used for data migration. It is different from the IP address of the target server.
    • enable: Whether to use the proxy. To use the proxy, set this parameter to true.
    • proxy_user: If a username is required to use the proxy, set it to the username. If not username is required, leave it blank.
    • use_password: If a password is required to use the proxy, set it to true. If none is required, set it to false.

  7. When prompted, enter the AK/SK pair of the HUAWEI CLOUD account that the target server belongs to.

    After the authentication succeeds, the Agent starts to report source server information to SMS, and the window is closed.