将 SUSE Multi-Linux Manager 5.1 服务器部署为虚拟机 - VMware

本章提供用于将 SUSE Multi-Linux Manager 5.1 部署为映像的虚拟机设置。将使用 VMware 作为此安装的沙箱。

1. 可用映像

部署 SUSE Multi-Linux Manager 5.1 服务器的首选方法是使用以下可用映像之一。所有工具都已包含在这些映像中,因而大大简化了部署。

SUSE Multi-Linux Manager 5.1 的映像可在 SUSE Multi-Linux Manager 5.1 VM 映像中找到。

自定义的 SUSE Multi-Linux Manager 5.1 VM 映像仅适用于 SL Micro 6.1。要在 SUSE Linux Enterprise Server 15 SP7 上运行该产品,请使用从 https://www.suse.com/download/sles/ 获取的标准 SUSE Linux Enterprise Server 15 SP7 安装媒体,并在其上启用 SUSE Multi-Linux Manager 5.1 扩展。

Table 1. 可用服务器映像
体系结构 映像格式

aarch64

qcow2、vmdk

x86_64

qcow2、vmdk、raw、自安装程序

ppc64le

raw、自安装程序

s390x *

qcow2、raw

* s390x 有两个可用存储选项:CDL DASD 和 FBA。

2. SUSE Multi-Linux Manager 虚拟机设置 - VMware

本节说明 VMware 配置,重点介绍如何在 VMware 环境中创建对 SUSE Multi-Linux Manager 存储分区至关重要的额外虚拟磁盘。

过程:创建 VMware 虚拟机
  1. 下载 SUSE Multi-Linux Manager Server .vmdk 文件,然后将该文件副本传输到您的 VMware 存储区。

  2. 使用 VMware Web 界面复制上载的 .vmdk 文件。这会将提供的 .vmdk 文件转换成适合 vSphere 超级管理程序的格式。

  3. 创建一个新的虚拟机,并根据 Guest 操作系统系列 Linux 和 Guest 操作系统版本 SUSE Linux Enterprise 15(64 位)为其命名。

  4. 额外添加一个 500 GB(或更多空间)的硬盘 2

  5. 配置满足最低要求的 RAM 和 CPU 数量。*)

  6. 根据需要设置网络适配器。

  7. 启动 VM,然后按照首次引导对话框中的提示操作(键盘布局、许可协议、时区、root 的口令)。

  8. 安装完成后,以 root 身份登录。

  9. 继续阅读下一节。

3. 注册 SL Micro 和 SUSE Multi-Linux Manager 5.1 服务器

开始之前,从 SUSE Customer Center (https://scc.suse.com) 获取您的 SUSE Multi-Linux Manager 注册代码。

SL Micro 6.1 权利包含在 SUSE Multi-Linux Manager 权利中,因此不需要单独的注册代码。

SUSE Multi-Linux Manager server hosts that are hardened for security may restrict execution of files from the /tmp folder. In such cases, as a workaround, export the TMPDIR environment variable to another existing path before running mgradm.

例如:

export TMPDIR=/path/to/other/tmp

在 SUSE Multi-Linux Manager 的后续更新中,相关工具将进行优化,届时无需再使用此临时解决方案。

过程:注册 SL Micro 和 SUSE Multi-Linux Manager 5.1
  1. 引导虚拟机。

  2. root 身份登录。

  3. 在 SCC 中注册 SL Micro。

    transactional-update register -r <注册代码> -e <您的电子邮件地址>
  4. 重引导。

  5. 在 SUSE Customer Center 中注册 SUSE Multi-Linux Manager 5.1。

    transactional-update register -p Multi-Linux-Manager-Server/5.1/x86_64 -r <注册代码>
  6. 重引导

  7. 更新系统:

    transactional-update
  8. 如果已应用更新,请重引导。

  9. 此步骤是可选的。但是,如果您的基础架构需要自定义的永久性存储,请使用 mgr-storage-server 工具。

    For more information, see mgr-storage-server --help. This tool simplifies creating the container storage and database volumes. Use the command in the following manner:

    mgr-storage-server <storage-disk-device> [<database-disk-device>]

    例如:

    mgr-storage-server /dev/nvme1n1 /dev/nvme2n1

    此命令将在 /var/lib/containers/storage/volumes 中创建永久性存储卷。

    有关详细信息,请参见

  10. Deploy SUSE Multi-Linux Manager.

    If you use VM images as a migration target, here as the last step, execute the command mgradm migrate instead of mgradm install.

    Execute one of the following commands, depending on the SSL certificate variant (self-signed or third-party). Replace <FQDN> with your fully qualified domain name of the SUSE Multi-Linux Manager Server:

    • 使用 SUSE Multi-Linux Manager 提供的自我签名证书:

      mgradm install podman <FQDN>
    • 使用第三方 SSL 证书标志导入相应 SSL 证书(如果无需全部证书,可调整示例):

      mgradm install podman <FQDN> \
        --ssl-ca-intermediate <strings> \
        --ssl-ca-root <string> \
        --ssl-server-cert <string> \
        --ssl-server-key <string> \
        --ssl-db-ca-intermediate <strings> \
        --ssl-db-ca-root <string> \
        --ssl-db-cert <string> \
        --ssl-db-key <string>

      有关详细信息,请执行命令 mgradm install podman --help 查看帮助文档。