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

Obtaining the Agent Installation File

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

    The SMS console is displayed.

  3. In the navigation pane on the left, choose Migration Agents.

    The Migration Agents page is displayed.

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

  5. (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)

  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.

    The Agent installation wizard is displayed.

  3. Click Install and wait for the installation to complete.
  4. Click Finish. The SMS-Agent GUI is displayed.
  5. 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.
    Figure 1 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. Check whether the source server you have logged in is the server to be migrated.

    • If it is, go to 2.
    • If it is not, upload the SMS-Agent-Py2.exe file to the source server and perform 2 on the source server.

  2. Log in to the source server as user Administrator and double-click the SMS-Agent-Py2.exe file.

    The Agent installation wizard is displayed.

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

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