インストール

RMMインスタンスを作成してRMMをインストールし、ライセンス情報を指定します。RMMソフトウェアは、任意のRHELベースの7.x Linuxオペレーティング・システムで実行されます。RMMには、OCIのような主要なクラウドのマーケットプレイス・リストがあり、ワンクリックでインスタンスをデプロイできます。

インスタンスの作成

RMMインスタンスを作成するには、次のステップに従います。
  1. テナンシのCompute Cloud@CustomerまたはPrivate Cloud Applianceにログインします。
  2. ダッシュボードで、「コンピュート」をクリックします。
  3. 新しいインスタンスを作成します。
  4. 「インスタンスの作成」ウィンドウで、次の手順を実行します。
    1. インスタンス名を入力します
    2. エンドポイントへのアクセス権を持つ適切なコンパートメントを選択します。
    3. 「ソース・イメージ」セクションで、「ソース・タイプ」「プラットフォーム・イメージ」を選択します。
    4. In the OS Version column's dropdown list, in the Oracle Linux operation system row, select 7.9.
  5. Provision the VM as a flex shape with 4 CPUs, 48GB of memory, and a boot volume size of 150GB.
  6. Move on and provision networking such that the VM will have full access to both endpoint networks. In our case, this is an external network on a shared internet gateway VCN and we request the assignment of a public facing IP.
  7. ネットワーキングをプロビジョニングしたら、ホスト名を指定し、sshの公開キーをアップロードしてインスタンスを作成します。
  8. Once the instance is done provisioning and is marked Running, log in using ssh, download and configure RMM.

    ノート:

    Add a block volume to the RMM server for temporary storage.この例では、1TBのブロック・ストレージ・ユニットを作成してアタッチします。
  9. ボリュームを作成してプロビジョニングしたら、そのボリュームをインスタンスにアタッチします。マウントする必要はありません。

Install RMM

Installing RMM over an existing installation is supported and is the mechanism for installing a new version. In this case there will be an existing CMDB, and by default the installation process retains that information. After installation all existing resources continue to reside in the CMDB.

You can install RMM on Oracle Linux 7.9.However, you can run it on any RHEL-based 7.X instance.まず、Compute Cloud@CustomerOracle Linux 7.9インスタンスを作成する必要があります。

Follow these steps to install RMM:

  1. Once the VM is up and running, log in.
  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. Read and accept the EULA and the Microsoft licenses by entering yes.
    The RMM software is dependent on various libraries and utilities.インストーラはこれらの依存関係をチェックし、欠落しているものをすべて自動的にインストールします。すべての正しいパッケージがサーバー上にあることを確認する最も簡単で安全なオプションは、インストーラを実行する前にサーバーのインターネットに一時的にアクセスすることです。Specifically, ports 80 and 443 should be open in the outbound direction on RMM and any firewalls.このステップでは、標準配布パッケージ・マネージャを利用し、インターネット・アクセスが必要です。

    インターネットアクセスは、インストール後すぐに無効にできます。

    [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に自動プロビジョニングする場合に必要です。If you are planning on using RMM to auto-provision Linux machines into a vCenter, then answer 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. When prompted for the RMM GUI type, select [L] (default) for RMM Lite.
    Enter and confirm a password for the admin user, which is the default user for the 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 requests users to input a passphrase to encrypt the onboard CMDB using 128-bit AES.
    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. Configure a Storage Pool using ZFS. Rackware uses unformatted or unpartitioned block devices attached to RMM to configure its storage pool using ZFS. RMM Storage Pool using ZFS can be reconfigured any time using the rwadm zfs configure command.
    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.

    ノート:

    RMM Storage Pool using ZFS can be reconfigured any time using the rwadm zfs configure command.
  12. Configure Network Interfaces when prompted for the interfaces on which RMM listens, add each of the interfaces RMM uses to communicate with the source hosts.
    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@CustomerおよびPrivate Cloud Appliance X9-2には、IPアドレス169.254.169.254のNTPサービスが組み込まれています。このサービスは冗長であるため、単一のNTPサーバーのみを設定する必要があります。データ・センター内でNTPサービスを使用する場合は、ここで提供できます。RMMが正しく起動するには、プロフェッショナルサービスライセンスがインストールされていないかぎり、RMMはNTPサーバーにアクセスできる必要があります。このプロンプトのデフォルト値Nは、RMMがデフォルトのpool.NTP.orgとしてNTPサーバーとして使用されることを意味します。NTPサーバーを構成することを選択した場合(プロンプトで Yを入力)、RMMが使用するNTPサーバーの名前も指定する必要があります。RMMで使用されているNTPサーバーがRMMからアクセスできない場合、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

    ノート:

    常に1つ、3つ、または複数のNTPサーバーを提供し、2つだけを提供することは一般的です。
  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ライセンスの提供

RMMサービスは、有効なライセンスが/etc/rackwareの下に配置されるまで開始されません。

  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'**を実行できるようになりました。