question

Forability-0225 avatar image
0 Votes"
Forability-0225 asked Forability-0225 answered

How can I add SUSE 15 SP1 software repositories for an Azure hosted VM?

Dear Experts,
How can I add software repositories for SUSE 15 SP1 for a VM hosted in Azure?
Initial problem was that repositories were not accessible. I have followed recommendations from https://www.suse.com/c/suse-update-infrastructure-access-through-the-data-center/ but this did not solved the issue. After that, I have tried recommendation from (https://www.suse.com/support/kb/doc/?id=000019085 and this removed repositories.
Thanks and regards,

azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Forability-0225 avatar image
0 Votes"
Forability-0225 answered

After running susecloud-repocheck tool (sc-repocheck.py) ( available at https://github.com/rfparedes/susecloud-repocheck), it automatically fixed the issue.

Info from the above link:

To autofix, report, and collect debugdata

If you have outbound https opened on the instance, from the instance, run:
python3 <(curl -sL https://raw.githubusercontent.com/rfparedes/susecloud-repocheck/main/ccccc)

Or download and transfer the script to the instance:
https://raw.githubusercontent.com/rfparedes/susecloud-repocheck/main/sc-repocheck.py
Then run:
python3 sc-repocheck.py

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

learn2skills avatar image
0 Votes"
learn2skills answered Forability-0225 commented

Hi @Forability-0225

To add a repository, run

 sudo zypper addrepo URI ALIAS

URI can either be an Internet repository, a network resource, a directory or a CD or DVD (see https://en.opensuse.org/openSUSE:Libzypp_URIs for details). The ALIAS is a shorthand and unique identifier of the repository. You can freely choose it, with the only exception that it needs to be unique. Zypper will issue a warning if you specify an alias that is already in use.

Please refer this link for details.
https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-sw-cl.html

Refer Article




If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is a VM hosted in Azure. As far as I understood the VM should be first registered with eg
/usr/sbin/registercloudguest --force-new
However, whne I run above command I got:
ERROR:Unable to obtain product information from server "51.116.98.203,None"
Unprocessable Entity
{"type":"error","error":"The requested product 'SUSE Linux Enterprise Server 15 SP1 x86_64' is not activated on this system.","localized_error":"The requested product 'SUSE Linux Enterprise Server 15 SP1 x86_64' is not activated on this system."}
Unable to register modules, exiting.

Seems this exactly the same issue reported in https://docs.microsoft.com/en-us/answers/questions/456375/sles-15-sp1-repositories.html and also there is not a clear path how to get further. Do you have any hinst from further steps?

0 Votes 0 ·