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
- This section applies only to the following regions: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, and AP-Hong Kong.
- Make sure that the intranet DNS server provided by HUAWEI CLOUD has been configured.
For instructions about how to obtain an intranet DNS server, see What Are the Private DNS Server Addresses Provided by the DNS Service?
For instructions about how to configure a DNS server, see Configuring DNS.
- 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
- Log in to the ECS.
- 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/
- 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.
- If certain packages are unavailable, this issue may be caused by in-progress data synchronization. In such a case, try again several hours later.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.