Este conteúdo foi traduzido por máquina para sua conveniência e a Huawei Cloud não pode garantir que o conteúdo foi traduzido com precisão. Para exibir o conteúdo original, use o link no canto superior direito para mudar para a página em inglês.
Central de ajuda/ Elastic Cloud Server/ Perguntas frequentes/ Image Source Management/ How Can I Use an OpenSUSE Image Source (x86_64) Provided by HUAWEI CLOUD?
Atualizado em 2025-01-23 GMT+08:00

How Can I Use an OpenSUSE Image Source (x86_64) Provided by HUAWEI CLOUD?

Scenarios

When updating the OS or software of an ECS, you can access the Internet through the ECS and use an external OpenSUSE image source. However, if your ECS cannot access the Internet, or the external OpenSUSE image source cannot provide services stably, you can use the OpenSUSE image source provided by HUAWEI CLOUD.

Constraints

  • The operations described in this section apply to x86_64 ECSs.
  • HUAWEI CLOUD does not provide the image source of the SUSE Linux Enterprise Server (SLES) enterprise edition.

Procedure

  1. Log in to the ECS.
  2. Run the following commands to back up the .repo file:

    mkdir /etc/zypp/repos.d/repo_bak

    mv /etc/zypp/repos.d/*.repo /etc/zypp/repos.d/repo_bak/

  3. Run the command listed in Tabela 1 to configure the zypper source for the target OpenSUSE version.
    Tabela 1 Configuring the zypper source

    Version

    Command

    OpenSUSE 13.2

    zypper addrepo -fcg http://mirrors.myhuaweicloud.com/opensuse/distribution/openSUSE-stable/repo/oss/ openSUSE-13.2-Oss

    zypper addrepo -fcg http://mirrors.myhuaweicloud.com/opensuse/distribution/openSUSE-stable/repo/non-oss/ openSUSE-13.2-Non-Oss

    zypper addrepo -fcg http://mirrors.myhuaweicloud.com/opensuse/update/openSUSE-stable/ openSUSE-13.2-Update-Oss

    zypper addrepo -fcg http://mirrors.myhuaweicloud.com/opensuse/update/openSUSE-non-oss-current/ openSUSE-13.2-Update-Non-Oss

    OpenSUSE 42.2

    sudo zypper ar -fcg http://mirrors.myhuaweicloud.com/opensuse/distribution/leap/42.2/repo/oss HWCloud:42.2:OSS

    sudo zypper ar -fcg http://mirrors.myhuaweicloud.com/opensuse/distribution/leap/42.2/repo/non-oss HWCloud:42.3:NON-OSS

    sudo zypper ar -fcg http://mirrors.myhuaweicloud.com/opensuse/update/leap/42.2/oss HWCloud:42.2:UPDATE-OSS

    sudo zypper ar -fcg http://mirrors.myhuaweicloud.com/opensuse/update/leap/42.2/non-oss HWCloud:42.2:UPDATE-NON-OS

    • HUAWEI CLOUD supports OpenSUSE 13.2 and OpenSUSE 42.2 image sources.
    • If certain packages are unavailable, this issue may be caused by in-progress data synchronization. In this case, try again after a few hours.