Help Center/ Elastic Cloud Server/ FAQs/ Image Source Management FAQ/ How Can I Use an Automated Tool to Configure a Huawei Cloud Image Source (x86_64 and Kunpeng)?
Updated on 2024-11-12 GMT+08:00

How Can I Use an Automated Tool to Configure a Huawei Cloud Image Source (x86_64 and Kunpeng)?

Scenarios

When updating the OS or software of an ECS, you can access the Internet through the ECS and use an external image source. However, if your ECS cannot access the Internet, or the external image source cannot provide services stably, you can use the one-click script configuration function provided by Huawei Cloud to configure and update the image source.

Constraints

  • This section applies only to the following regions: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, and CN-Hong Kong.
  • You have configured the intranet DNS server provided by HUAWEI CLOUD.

    To obtain the intranet DNS server address, see What Are Huawei Cloud Private DNS Server Addresses?

    For instructions about how to configure a DNS server, see How Do I Configure DNS for an ECS?.

  • The operations described in this section apply to both x86_64 and Kunpeng ECSs.
  • Only the following OSs are supported: EulerOS, CentOS, Debian, and Ubuntu.

    The automatic tool does not support the following operating systems:

    • Debian 8.8.0 64bit
    • Debian 8.2.0 64bit
    • Ubuntu 22.04 server 64bit

Procedure

  1. Log in to the ECS.
  2. Run the following command to configure the image source:

    wget http://mirrors.myhuaweicloud.com/repo/mirrors_source.sh && bash mirrors_source.sh