Package system and repository configuration
The guest environment for Compute Engine packages are installed from the packages that are supplied by SUSE.
SLES instances register with a SUSE run SMT service for Compute Engine and are configured to use SUSE regional mirrors in Compute Engine.
Note: SUSE images are premium resources that incur additional fees to use.
VM instances created using Google-provided public images include a guest environment that is installed by default.
To update SLES operating systems, run the following commands:
sudo zypper refresh
sudo zypper install google-guest-{agent,configs,oslogin} \
google-osconfig-agent
If after run the mentioned command you received an output like this:
# zypper refresh
Refreshing service 'cloud_update'.
Warning: There are no enabled repositories defined.
Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories.
2019-05-20 18:24:30,404 ERROR:====================
2019-05-20 18:24:30,404 ERROR:Attempt 3 of 3
2019-05-20 18:24:30,404 ERROR:Server 54.244.114.254 is unreachable
2019-05-20 18:24:30,404 ERROR:[Service] Could not find any available SMT server, repo refresh will fail
2019-05-20 18:28:12,873 INFO:Using API: regionInfo
2019-05-20 18:29:12,949 ERROR: Attempted: ['54.253.118.149', '50.17.208.31', '54.244.244.107', '54.223.148.145', '54.247.166.75']
2019-05-20 18:29:12,949 ERROR:Exiting without registration
Or
2019-05-16 21:24:10,282 ERROR:No response from: 54.247.166.75
2019-05-16 21:24:10,282 ERROR:None of the servers responded
2019-05-16 21:24:10,282 ERROR: Attempted: ['54.244.244.107', '50.17.208.31', '54.223.148.145', '54.253.118.149', '54.247.166.75']
2019-05-16 21:24:10,282 ERROR:Exiting without registration
Resolution
Enable Internet access from the virtual machines to the Public Cloud Update Infrastructure servers. Once the virtual machine has network connectivity to the Public Cloud Update Infrastructure, you can have the on-demand virtual machine register to the SUSE Public Cloud
Update Infrastructure by executing the following command as root:
registercloudguest --force-new
Additional Information
The SUSE Public Cloud Engineering team publishes information about the SUSE Public Cloud Update Infrastructure to a REST API. The published information includes server static IP addresses. For customers that have a security policy that allows only external connections to known IP addresses, the published information can be used to create explicit rules for vms to enable SUSE Public Cloud Update Infrastructure communication.
The REST API can be accessed by installing the package python-susepubliccloudinfo
(pint).
Below are the command options available for pint:
pint -h
usage: pint -h | --help
pint (amazon|google|microsoft) servers
[ --filter=<filter> ]
[ --json | --xml ]
[ --region=<region> ]
[ --smt | --regionserver ]
pint (amazon|google|microsoft) images
[ --active | --deleted | --deprecated ]
[ --filter=<filter> ]
[ --json | --xml ]
[ --region=<region> ]
pint -v | --version