Help Center/ Application Operations Management/ FAQs (2.0)/ Collection Management/ Why Cannot the Installation Script Be Downloaded When I Try to Install UniAgent on an ECS?
Updated on 2024-09-06 GMT+08:00

Why Cannot the Installation Script Be Downloaded When I Try to Install UniAgent on an ECS?

Symptom

During UniAgent installation on an ECS, the installation script cannot be downloaded. Message "Cloud not resolve host: aom-uniagent-xxxxxxxxxxxxxxxxxxxxxxxxxxxx" is displayed.

Possible Cause

The host cannot resolve the Object Storage Service (OBS) domain name.

Solution

Add Domain Name Service (DNS) server addresses for the ECS running Linux and then add a security group.

You can add DNS server addresses for the ECS by running commands or through the management console.

  • To add DNS server addresses by running commands, perform the following steps:
    1. Log in to the ECS as user root.
    2. Run the vi /etc/resolv.conf command to open the file.
    3. Add nameserver xx.xx.xx to the file.
      xx.xx.xx indicates private DNS server addresses. Take the CN North-Beijing1 region as an example. The private DNS server addresses are 100.125.1.250 and 100.125.21.250.
      Figure 1 Adding DNS server addresses (Linux)

      Private DNS server addresses vary depending on regions. For details, see What Are Huawei Cloud Private DNS Server Addresses?

    4. Enter :wq and press Enter to save the settings and exit.
  • To add DNS server addresses for the ECS through the management console, perform the following steps:
    1. In the upper left corner of the management console, select a target region and project.
    2. Click Service List in the upper left corner. Under Compute, select Elastic Cloud Server.
    3. In the ECS list, click the ECS name to go to the ECS details page.
    4. In the Summary tab page, click the VPC name, as shown in Figure 2.
      The Virtual Private Cloud page is displayed.
      Figure 2 VPC
    5. In the VPC list, locate the target VPC and click its name.
    6. In the Networking Components area, click the number following Subnets.

      The Subnets page is displayed.

    7. In the subnet list, locate the target subnet and click its name.
    8. In the Gateway and DNS Information area, click following DNS Server Address.

      Set the DNS server address to the value of nameserver in 3.

      Figure 3 Modifying the DNS server address
    9. Click OK.

      The new DNS server address takes effect after the ECS is restarted.

  • To add a security group through the management console, perform the following steps:
    1. In the upper left corner of the management console, select a target region and project.
    2. Click Service List in the upper left corner. Under Compute, select Elastic Cloud Server.
    3. In the ECS list, click the ECS name to go to the ECS details page.
    4. On the Security Groups tab page, click a security group name. The security group details page is displayed.
    5. Go to the Outbound Rules tab page and then click Add Rule.
      Add a rule by referring to Table 1.
      Table 1 Parameters for adding a security group rule

      Priority

      Action

      Type

      Protocol & Port

      Destination

      Description

      1

      Allow

      IPv4

      TCP

      80

      100.125.0.0/16

      Used to download the UniAgent installation package from the OBS bucket to the ECS and obtain the metadata and authentication information of the ECS.

      1

      Allow

      IPv4

      TCP and UDP

      53

      100.125.0.0/16

      Used by DNS to resolve domain names, for example, resolve the OBS domain name when you download the UniAgent installation package, and resolve the UniAgent address.

      1

      Allow

      IPv4

      TCP

      443

      100.125.0.0/16

      Used to collect monitoring data and report them to AOM.