在公有云上注册客户端

设置好 SUSE Multi-Linux Manager 服务器后,您便可开始注册客户端。

1. 添加产品并同步储存库

确保您已添加客户端的对应产品并已将储存库同步到 SUSE Multi-Linux Manager。要创建用于注册客户端的引导储存库,必须执行此操作。

有关详细信息,请参见 Public Cloud Guide

2. 准备按需映像

使用 SUSE 提供的按需映像开始的实例会自动进行注册,并且更新基础结构和 SUSE Linux Enterprise 模块均已激活。要使用按需映像作为 SUSE Multi-Linux Manager 客户端,您需要在开始前禁用此自动功能。

过程:准备按需映像
  1. 登录到按需实例。

  2. 在命令提示符处,以 root 身份去除注册数据和储存库:

    registercloudguest --clean
  3. 去除自动注册的触发服务:

    systemctl disable guestregister.service
  4. 在 Microsoft Azure 中,还需要禁用另一项服务:

    systemctl disable regionsrv-enabler-azure.timer

3. 注册客户端

In the SUSE Multi-Linux Manager Web UI, navigate to Systems  Bootstrapping, then fill in the Host, SSH Port, User, and Password fields. Make sure you use stable FQDNs for the Host field, or SUSE Multi-Linux Manager cannot find your host when your Public Cloud gives you a different short-lived FQDNS.

公有云映像通常不允许使用用户名和口令进行 SSH 登录,仅允许通过证书进行 SSH 登录。如果您要从 Web UI 中使用引导,则需启用通过用户名和 SSH 密钥进行 SSH 登录的功能。您可以通过导航到系统  引导并更改身份验证方法来启用此功能。

If your cloud provider is Microsoft Azure, you can log in with username and password. To do this, you need to allow the AzureUser to run commands as root without a password. To do this, open the /etc/sudoers.d/waagent file, and add or edit this line:

AzureUser ALL=(ALL) NOPASSWD: ALL

允许 AzureUser 以 root 身份无口令运行命令会带来安全风险。请仅将此方法用于测试目的, 不要用于生产系统。

引导过程成功完成时,您的客户端即会列在系统  系统列表中。

4. 激活密钥

激活密钥用于确保客户端拥有正确的软件权利、可连接到适当的通道以及订阅相关的组。每个激活密钥都绑定到一个组织,您可以在创建密钥时设置此项。

有关激活密钥的详细信息,请参见 激活密钥