Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Installing the Agent on Windows

Updated on 2025-01-24 GMT+08:00

Scenarios

You need to install the Agent on the source server to be migrated. During the installation, you need to enter the AK/SK pair of the Huawei Cloud account you are migrating to. After the Agent is started, it automatically reports source server information to SMS. The information is used for migration only. For details, see What Information Does SMS Collect About Source Servers?

NOTE:

Before using SMS to migrate servers, you need to manually install and register the Agent on each server to be migrated. If there are more than 50 servers to migrate, you can create a server migration workflow on MgC to automate batch installation and registration of the Agent.

There are two options for Windows:

  • GUI-based Windows Agent (Python 3): Windows Server 2019, Windows Server 2016, Windows Server 2012, Windows 10, and Windows 8.1
  • CLI-based Windows Agent (Python 2): Windows Server 2008 and Windows 7
    CAUTION:

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

Prerequisites

Downloading the Agent Installation File

  1. Sign in to the SMS console.
  2. In the navigation pane on the left, choose Agents.
  3. Select the Windows card, locate the Agent that matches the source server OS, and click the icon next to Agent.

    • GUI-based Windows Agent (Python 3): Windows Server 2019, Windows Server 2016, Windows Server 2012, Windows 10, and Windows 8.1
    • CLI-based Windows Agent (Python 2): Windows Server 2008 and Windows 7

  4. Read and agree to the service disclaimer, and click Yes to download the Agent installation file.
  5. Click the icon next to SHA256 File to download the file that contains a hash value to a local directory. Verify the integrity of the Agent installation file. For details, see How Do I Verify the Integrity of the Agent Installation File?

Installing the Windows Agent (Python 3)

  1. Transmit 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 for the Huawei Cloud account and the SMS domain name for the region you are migrating to. You can obtain the SMS domain name on the Agents page of the SMS console, as shown in Figure 2.

    • If you do not need to use an HTTP/HTTPS proxy, select Direct Connection.
    • If you need to use an HTTP/HTTPS proxy, select Use Proxy and enter the IP address, port number, username, and password of the proxy server.
      NOTE:
      • Proxy Server IP: Follow the format https://your-proxy-addr.com. Use the protocol configured for your proxy server. HTTPS is recommended. Replace your-proxy-addr with the IP address of your proxy server, not that of the target server.
      • Port: Enter the port used by the proxy server.
      • Proxy user name: Enter the username required for using the proxy software. If no username is required, leave this parameter blank.
      • Password: Enter the password corresponding to the proxy username. If no password is required, leave this parameter blank.
    Figure 1 Starting the Agent
    Figure 2 Obtaining the SMS domain name

  6. If the EPS service has been enabled for the Huawei Cloud account, after you entered the AK/SK pair, the Agent will list all enterprise projects the account is allowed to access. You can select the enterprise project you would like to migrate the source server to. This enables you to isolate permissions, resources, and finance during the migration. For details, see Migrating Servers into an Enterprise Project.
  7. Click start.
  8. Carefully review the Privacy Statement and click Yes if you want to continue.

    When the message "Upload success. Waiting for the SMS instruction" is displayed, the Agent has been started. You can sign in to the SMS console and perform subsequent operations.

Installing the Windows Agent (Python 2)

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

    NOTE:

    If you need to rerun the Agent, double-click agent-start.exe in the C:\SMS-Agent-Py2 directory where the Agent was installed.

  5. If you need to use an HTTP/HTTPS proxy, go to 6.

    If you do not need to use an HTTP/HTTPS proxy, go to 7.

    NOTE:
    • If your source server cannot access Huawei Cloud over the Internet, you can use a proxy server. You will need to configure the proxy server yourself.
    • In a migration over a private line or VPN, a proxy server is used for registering the source server with SMS. It is not used for data migration.

  6. (Optional) Configure the HTTP/HTTPS proxy for the Agent.

    Go to the directory where the Agent was installed (typically C:\SMS-Agent-Py2\config) and edit the auth.cfg file. Do not edit the auth.cfg file unless you need to use an HTTP/HTTPS proxy.

    [proxy-config]
    enable = true
    proxy_addr = https://your-proxy-addr.com
    proxy_port = proxyport
    proxy_user =
    use_password = false

    NOTE:
    • enable: To use a proxy, set this parameter to true.
    • proxy_addr: Replace your-proxy-addr with the IP address of the proxy server, not that of the target server. Use the protocol configured for the proxy. HTTPS is recommended.
    • proxy_user: Enter the username required for the proxy. If no username is required, leave it blank.
    • use_password: If a password is required for the proxy, set it to true. If no password is required, set it to false.

  7. When prompted, enter the AK/SK pair for the Huawei Cloud account and the SMS domain name for the region you are migrating to. You can obtain the SMS domain name on the Agents page of the SMS console, as shown in Figure 3.

    If the EPS service has been enabled for the Huawei Cloud account, after you entered the AK/SK pair, the Agent will list all enterprise projects the account is allowed to access. You can select the enterprise project you would like to migrate the source server to. This enables you to isolate permissions, resources, and finance during the migration. For details, see Migrating Servers into an Enterprise Project.
    Figure 3 Obtaining the SMS domain name

    After the authentication succeeds, the Agent starts to report source server information to SMS, and the window is closed. You can go to the Servers page on the SMS console to view the record of the source server.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback