Help Center > > FAQs> Image Source Management> How Can I Use an openSUSE Image Source (x86_64) Provided by HUAWEI CLOUD?

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

Updated at: Mar 17, 2020 GMT+08:00

Scenarios

When updating the OS or software of an ECS, you can access the ECS to the Internet 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 ECSs deployed on x86_64 servers.
  • 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 Table 1 to configure the zypper source for the target OpenSUSE version.
    Table 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.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel