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
- Esta seção aplica-se apenas às seguintes regiões: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou e CN-Hong Kong.
- Você configurou o servidor DNS da intranet fornecido pela HUAWEI CLOUD.
Para obter o endereço do servidor DNS da intranet, consulte Quais são os endereços de servidor DNS privados fornecidos pela Huawei Cloud?
Para obter instruções sobre como configurar um servidor DNS, consulte Configuração do 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 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.