Linux
Scenarios
You need to install the Agent on each Linux source server that you want to migrate. During the Agent installation, you need to enter the AK and SK of your HUAWEI CLOUDaccount that the target server belongs to. 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?
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?
- You have confirmed that the source server is running an OS included in Supported Source Server OSs.
- (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.
Installing the Linux Agent
- Use PuTTY or another SSH client to log in to the source server as user root.
- Run either of the following commands to download the Agent:
wget -t 3 -T 15 https://sms-agent-2-0-cn-north-1.obs.cn-north-1.myhuaweicloud.com/SMS-Agent.tar.gz
curl -O https://sms-agent-2-0-cn-north-1.obs.cn-north-1.myhuaweicloud.com/SMS-Agent.tar.gz
- (Optional) Verify the software integrity of the Agent. For details, see How Do I Verify the Software Integrity of the Agent?
- Run the following command to decompress the downloaded package:
tar -zxvf SMS-Agent.tar.gz
- Run the following command to switch to the SMS-Agent directory on the source server:
cd SMS-Agent
- If you need to use an HTTPS proxy server, go to 7.
If you do not need to use an HTTPS proxy server, go to 8.
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.
- (Optional) Configure an HTTPS proxy server.
- Run the following command to go to the config directory:
cd SMS-Agent/agent/config
- Run the following command to open and edit the auth.cfg file:
vi auth.cfg
[proxy-config] enable = true proxy_addr = 192.168.1.10 proxy_port = 3128 proxy_user = root use_password = true
- Run the following command to save the auth.cfg file and exit: :wq
- proxy_addr indicates the IP address of the proxy server the source server uses to access SMS.
- If the HTTPS proxy is not used during the migration, you are not allowed to modify the auth.cfg file.
- 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.
- 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.
- The values shown here are for reference only. Actual values will depend on your server configuration,
- Run the following command to go to the config directory:
- Run the following command to start the Agent:
./startup.sh
- Carefully review the description of what information will be collected by the Agent, enter y, and press Enter. Figure 1 Entering y
- Enter the AK and SK of the HUAWEI CLOUD account that the target ECS belongs to.
When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.
Figure 2 Entering the AK and SK
Last Article: Windows
Next Article: Configuring the Target ECS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.