安装

创建 RMM 实例以安装 RMM,然后提供许可证信息。RMM 软件在任何基于 RHEL 的 7.x Linux 操作系统上运行。RMM 在 OCI 等主要云上列出了市场,您只需单击一下即可部署实例。

创建实例

按照以下步骤创建 RMM 实例:
  1. 登录租户中的 Compute Cloud@Customer 或 Private Cloud Appliance。
  2. 在仪表盘中,单击计算
  3. 创建新的 实例。
  4. 创建实例窗口中,执行以下操作:
    1. 输入实例名。
    2. 选择有权访问端点的相应区间。
    3. 源映像部分中,选择源类型作为平台映像
    4. 在 Oracle Linux 操作系统行的 OS Version 列的下拉列表中,选择 7.9
  5. 将 VM 预配为具有 4 个 CPU、48GB 内存和 150GB 引导卷的弹性配置。
  6. 移动并预配网络,以便 VM 可以完全访问两个端点网络。在这种情况下,这是共享互联网网关 VCN 上的外部网络,我们请求分配面向公共的 IP。
  7. 预配网络后,提供 hostname ,上载 ssh 的公钥并创建实例。
  8. 实例完成预配并标记为 Running 后,使用 ssh 登录,下载并配置 RMM。

    注意:

    将块存储卷添加到 RMM 服务器以进行临时存储。在此示例中,创建并连接 1TB 块存储单元。
  9. 创建并预配卷后,将其连接到实例。您无需挂载它。

安装 RMM

支持通过现有安装安装安装 RMM,这是安装新版本的机制。在这种情况下,将存在现有的 CMDB,默认情况下,安装过程会保留该信息。安装后,所有现有资源继续驻留在 CMDB 中。

可以在 Oracle Linux 7.9 上安装 RMM。但是,您可以在任何基于 RHEL 的 7 上运行它。X 实例您必须先在 Compute Cloud@Customer 上创建 Oracle Linux 7.9 实例。

要安装 RMM,请执行以下步骤:

  1. VM 启动并运行后,登录。
  2. 下载格式为 rackware-<VERSION>-x86_64.sh 的安装程序文件。确保此文件允许执行。如果没有,请使用 chmod 755 进行修改。在没有此类列表的平台上,Rackware 提供了一个安装文件。
    [opc@rmm ~]$ scp myself@source.example.com:/nfs/rackware/rackware-v7.4.3.17-x86_64.sh .
    myself@source.example.com's password:
    rackware-v7.4.3.17-x86_64.sh 100% 5409MB 40.2MB/s 02:14
    [opc@rmm ~]$ ls -l rackware-v7.4.3.17-x86_64.sh
    -rwxr-xr-x. 1 opc opc 5671832853 Dec 17 22:04 rackware-v7.4.3.17-x86_64.sh
    [opc@rmm ~]$ chmod 755 !$
    chmod 755 rackware-v7.4.3.17-x86_64.sh
    [opc@rmm ~]$ ls -l
    total 5538900
    -rwxr-xr-x. 1 opc opc 5671832853 Dec 17 22:04 rackware-v7.4.3.17-x86_64.sh
    [opc@rmm ~]$
  3. 通过以 root 用户身份运行以下命令来运行安装程序:
    root@ovh-rmm01:[~]# ./rackware-<VERSION>-x86_64.sh
    Verifying archive integrity...
  4. 通过输入 yes 来阅读并接受 EULA 和 Microsoft 许可证。
    RMM 软件依赖于各种磁带库和实用程序。安装程序会检查这些依赖项,并自动安装缺少的任何依赖项。在运行安装程序之前,确保服务器上的所有正确软件包都具有临时 Internet 访问权限的最简单和最安全的选项。具体而言,端口 80 和 443 应在 RMM 和任何防火墙上的出站方向打开。此步骤使用标准分发包管理器,并且需要 Internet 访问。

    可以在安装后立即禁用 Internet 访问。

    [opc@rmm ~]$ sudo -s
    [root@rmm opc]# ./rackware-v7.4.3.17-x86_64.sh
    Verifying archive integrity... All good.
    Uncompressing RackWare Software Package...........
    You must accept the terms of the license agreement to install and use this software.
    END-USER LICENSE AGREEMENT FOR RACKWARE.
    <some text deleted for clarity>
    upon you in addition to the terms of this EULA or any other agreement you have with RackWare.
    Please type 'yes' then [enter] to accept the terms of the license agreement,
    or simply press [enter] to abort installation.
    Enter your acceptance: yes
    Beginning installation ...
    You must accept the terms of the license agreement to install and use this software.
    MICROSOFT SOFTWARE LICENSE TERMS
    <deleted for clarity>
    Please type 'yes' then [enter] to accept the terms of the license agreement,
    or simply press [enter] to abort installation.
    Enter your acceptance: yes
    Beginning installation ...
    Checking the free space under /opt...Done
    Checking the free space under /srv...Done
    Checking the free space under /tmp...Done
    Installing RackWare Software Package.
    Please wait this may take several minutes . . .
  5. 使用缺省值 yes 回答提示。
    1. perl-CGI
    2. EPEL package installation
    3. Modify iptables
  6. 下载 ISO for Linux vCenter 自动预配。
    Download ISO for linux vcenter autoprovision (Y/N) [N]:
    Manually download iso for templateless autoprovisioning.
    Please download systemrescecd-x86-5.2.2.iso from: https://souceforge.net/projects/systemrescuecd/files/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2iso/download and place it in /opt/iso/

    将 Linux 计算机自动预配到 vCenter 中时,需要此文件。如果您计划使用 RMM 将 Linux 计算机自动预配到 vCenter 中,请回答 Y 。否则,接受缺省值 N

  7. 日志轮转将同步作业日志保留一定天数。默认值为 15 天,但可以根据项目的长度进行设置。
    Configuring iscsi target
    Warning: Could not load preferences file /root/.targetcli/prefs.bin.
    Parameter auto_save_on_exit is now 'false'.
    Configure: iscsitarget: Done.
    Configuring logrotate
    Number of days log files are retained [15]? [15]:
  8. 除非您使用的是 RMM-Hub 功能,否则接受此提示的默认值 N
  9. 当提示输入 RMM GUI 类型时,为 RMM Lite 选择 [L](默认值)
    输入并确认 admin 用户(GUI 的默认用户)的密码。
    Select GUI type: RackWare Management Module [R]
    RMM Lite [L]
    Hybrid Cloud Management Platform [H]
    Self Service Portal (Softlayer) [S]
    Self Service Portal (Azure) [Z] [L]: L
    Installed RMM Lite GUI.
    Creating mainbox file: File exists
    Changing passowrd for user admin.
    New passwork:
    Retype new password:
    passwd: allauthentication tokens updated successfully.
    Configuring http web servicer
    Changing permission of /opt/rackware/www/cgi-bin/ to executable
    Saving original config
    Generating a 2048 bit RSA private key
    …...+++
    ….….….….….….….….…....+++
    writing new private key to '/opt/rackware/www/certificates/RackWare_SSL.key'
    –---
    Note: Forwarding request to 'systemctl enable httpd.service'.
    Stopping: httpd … Done.
     * stopped: httpd
    Starting: httpd … Done.
     * running: httpd[199979]
    Configure: httpd: Done.
  10. RMM 请求用户输入口令短语以使用 128 位 AES 加密板载 CMDB。
    Changing password for user admin.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.
    Please enter your secret passphrase. This passphrase will be used to encrypt all sensitive information stored in the cmdb.
    Please re-enter your secret passphrase for validation.
  11. 使用 ZFS 配置存储池。机架件使用连接到 RMM 的未格式化或未分区块设备来使用 ZFS 配置其存储池。使用 ZFS 的 RMM 存储池可以随时使用 rwadm zfs configure 命令重新配置。
    ZFS is currently not installed on this system
    Proceeding with ZFS installation...
    Configuring ZFS compression RMM...
    Installing ZFS packages, please be patient as this may take a while...
    <intermediate text deleted for clarity>
    Existing devices in the system which can be added to RMM Storage Pool are:
    =====================================================================
    | EXISTING DEVICES |
    =====================================================================
    /dev/sda (in-use)
    /dev/sda1 (in-use)
    /dev/sda2 (in-use)
    /dev/sda3 (in-use)
    /dev/sdb (free)
    =====================================================================
    Please make sure you have all below criteria met before continuing further:
    * You have at least one disk/partition/volume free which can be added to RMM storage pool/volume.
    * Old images WILL NOT have Sync Backup and Data Retention features. User will have to re-capture images to avail those features.
    [A]dd disks, [R]emove disks or [F]inished [F]: A
    You have 3 chance(s) to enter a valid device. Check by executing "parted -l"
    Warning: Device will get formatted after adding to RMM Storage pool.
    Enter device name/path to be configured as RMM Storage pool. [ONE AT A TIME]: /dev/sdb
    =====================================================================
    Please make sure you have all below criteria met before continuing further:
    <Intermediate text deleted for clarity>
    Final Configuration:
    =====================================================================
    | RMM STORAGE POOL |
    =====================================================================
    Pool Name : "rwzpool"
    Total Size : 1016G
    Pool Free : 1016G
    RMM Storage Pool Compression Algorithm: "lz4"
    =====================================================================
    Configuring samba service...
    Note: Forwarding request to 'systemctl enable smb.service'.
    Created symlink from /etc/systemd/system/multi-user.target.wants/smb.service to /usr/lib/systemd/system/smb.service.
    Note: Forwarding request to 'systemctl enable nmb.service'.
    Created symlink from /etc/systemd/system/multi-user.target.wants/nmb.service to /usr/lib/systemd/system/nmb.service.

    注意:

    使用 ZFS 的 RMM 存储池可以随时使用 rwadm zfs configure 命令重新配置。
  12. 在提示输入 RMM 监听的接口时配置网络接口,添加 RMM 用于与源主机通信的每个接口。
    Configuring Rackware Management Module (rmm)
    Done.
    Configure: rmm: configure listening interfaces:
    Available: ens3
    Selected: none
    [A]dd, [R]emove interfaces for rmm to listen on, or [F]inished [F]:A
    Enter interface name, or 'all' [all]: all
    Available: ens3
    Selected: ens3
    [A]dd, [R]emove interfaces for rmm to listen on, or [F]inished [F]: F
    Configure: rmm: listening on: ens3 :: 172.20.0.48
  13. 网络配置完成后,配置 NTP。OCI、 Compute Cloud@CustomerPrivate Cloud Appliance X9-2 内置了 NTP 服务,网址为 169.254.169.254。此服务是冗余的,因此您只需设置单个 NTP 服务器。如果您希望在数据中心内使用 NTP 服务,可以在此处提供这些服务。要使 RMM 正常运行,RMM 必须能够访问 NTP 服务器,除非安装了专业服务许可证。此提示符的缺省值 N 表示 RMM 将使用缺省值 pool.ntp.org 作为 NTP 服务器。如果选择配置 NTP 服务器(在提示符处输入 Y ),还必须提供 NTP 服务器的名称以供 RMM 使用。如果无法从 RMM 访问 RMM 使用的 NTP 服务器,则将暂时禁用 RMM 的许可证,并且不会启动 RMM。
    Do you want to configure NTP SERVER?
    This can be skipped in case of PS License type [N]: Y
    RMM requires to communicate with the NTP Server to sync system time.
    Anytime RMM cannot access the NTP Server, the license would be invalidated.
    For that either some NTP daemon needs to be configured or NTP Server needs to be provided here.
    Do you want to setup custom NTP Server? Default is pool.ntp.org and requires internet access (Y/N) [N]: Y
    Enter NTP Server [pool.ntp.org]: 169.254.169.254
    Configure : rmm: configure NAT IPs for the rmm host:
    Configured: none
    [A]dd, [R]emove NAT IP, or [F]inished [F]: F

    注意:

    通常的做法是始终提供一台、三台或多台 NTP 服务器,而不仅仅是两台。
  14. 下一个提示询问是否需要添加 NAT IP。除非 Rackware 另有说明,否则接受默认值 [F]
    Configure : rmm: configure NAT IPs for the rmm host:
    Configured: none
    [A]dd, [R]emove NAT IP, or [F]inished [F]: F
    Creating sudoers file for GUI.
    Stopping: rmm ... Done.
    * stopped: rmm
    License not found in /etc/rackware/. Generating the preinstall file
    PreInstall file generated at /etc/rackware/rwlicense_preinstall_1702860496. Please email this file to licensing@rackwareinc.com to get the license.
    Configure: rmm: creating default options file ... Done.
    Configure: rmm: Done.
    WARNING: No license file found for rmm. Cannot start RMM Process.
    Skipping loopback device limit configuration ...
    Configure: systemd/journal: Done.
    Configure: SSL configurations...
    SSL configuration complete.
    Reboot required for changes to take effect.
    Do you want to reboot now [Y/n]? [Y]:
  15. 安装后,请重新启动服务器以完成安装。
    Post installation, the server will need to be rebooted once for the installation to complete. Enter Y and wait for the system to reboot.
    Do you want to reboot now [Y/n]? [Y]:
    Shutdown scheduled for Mon 2023-12-18 00:51:15 GMT, use 'shutdown -c' to cancel.
    Broadcast message from root@rmm (Mon 2023-12-18 00:50:15 GMT):
    Rebooting...
    The system is going down for reboot at Mon 2023-12-18 00:51:15 GMT!
    [root@rmm opc]#

提供 RMM 许可证

在将有效许可证置于 /etc/rackware 下之后,RMM 服务才会启动。

  1. 对于初始安装,将显示以下消息:
    License not found in /etc/rackware/. Generating the preinstall file. Preinstall file
          generated at /etc/rackware/rwlicense_preinstall_xxxxxxxx. Please email this file to licensing@rackwareinc.com to get the
        license.
  2. 从 Rackware 收到许可证后,将许可证文件放在 /etc/rackware 下。
  3. 您现在可以运行 '** rwadm start rackware'**