インストール
RMMインスタンスを作成してRMMをインストールし、ライセンス情報を指定します。RMMソフトウェアは、任意のRHELベースの7.x Linuxオペレーティングシステムで実行されます。RMMには、OCIのような主要なクラウドのマーケットプレイス・リストがあり、1回のクリックでインスタンスをデプロイできます。
インスタンスの作成
RMMインスタンスを作成するには、次のステップに従います。
- テナンシのCompute Cloud@CustomerまたはPrivate Cloud Applianceにログインします。
- ダッシュボードで、「コンピュート」をクリックします。
- 新しいインスタンスを作成します。
- 「インスタンスの作成」ウィンドウで、次の手順を実行します。
- インスタンス名を入力します
- エンドポイントへのアクセス権を持つ適切なコンパートメントを選択します。
- 「ソース・イメージ」セクションで、「ソース・タイプ」に「プラットフォーム・イメージ」を選択します。
- 「OSバージョン」列のドロップダウン・リストで、Oracle Linux操作システムの行で7.9を選択します。
- 4つのCPU、48GBのメモリーおよびブート・ボリューム・サイズが150GBのフレックス・シェイプとしてVMをプロビジョニングします。
- VMが両方のエンドポイント・ネットワークにフル・アクセスできるように、ネットワークに移行してプロビジョニングします。この場合、これは共有インターネット・ゲートウェイVCN上の外部ネットワークであり、パブリック対応IPの割当てをリクエストします。
- ネットワークをプロビジョニングしたら、ホスト名を指定し、
ssh
の公開キーをアップロードしてインスタンスを作成します。 - インスタンスのプロビジョニングが完了し、
Running
とマークされたら、ssh
を使用してログインし、RMMをダウンロードして構成します。ノート:
一時ストレージ用のブロック・ボリュームをRMMサーバーに追加します。この例では、1TBのブロック・ストレージ・ユニットを作成してアタッチします。 - ボリュームを作成してプロビジョニングしたら、インスタンスにアタッチします。マウントする必要はありません。
RMMのインストール
既存のインストールでのRMMのインストールがサポートされており、新しいバージョンをインストールするメカニズムです。 この場合、既存のCMDBが存在し、デフォルトでインストールプロセスはその情報を保持します。インストール後も、既存のすべてのリソースは引き続きCMDBに存在します。
Oracle Linux 7.9にRMMをインストールできます。ただし、任意のRHELベース7で実行できます。Xインスタンス。まず、Compute Cloud@CustomerでOracle Linux 7.9インスタンスを作成する必要があります。
次のステップに従ってRMMをインストールします。
- VMが起動して実行したら、ログインします。
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 ~]$
root
ユーザーで次のコマンドを実行して、インストーラを実行します。root@ovh-rmm01:[~]# ./rackware-<VERSION>-x86_64.sh Verifying archive integrity...
- yesと入力して、EULAおよびMicrosoftライセンスを読み、受け入れます。RMMソフトウェアは、さまざまなライブラリおよびユーティリティーに依存します。インストーラはこれらの依存関係をチェックし、欠落している依存関係を自動的にインストールします。すべての正しいパッケージがサーバー上にあることを確認するためのもっとも簡単で安全なオプションは、インストーラを実行する前にサーバーのインターネットに一時的にアクセスすることです。特に、ポート80および443は、RMMおよび任意のファイアウォールのアウトバウンド方向で開いている必要があります。このステップでは、標準の配布パッケージ・マネージャを利用し、インターネット・アクセスが必要です。
インターネットアクセスは、インストール後すぐに無効にできます。
[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 . . .
- デフォルト値yesでプロンプトに応答します。
perl-CGI
EPEL package installation
Modify iptables
- ISO for Linux vCenter Auto-Provisionをダウンロードします。
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」を選択します。
- ログ・ローテーションは、同期ジョブ・ログを一定の日数保持します。デフォルトは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]:
- RMM-Hub機能を使用していないかぎり、このプロンプトにはデフォルトのNを受け入れます。
- 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.
- 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.
- ZFSを使用してストレージプールを構成します。Rackwareでは、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
コマンドを使用していつでも再構成できます。 - 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
- ネットワーク構成が完了したら、NTPを構成します。OCI、Compute Cloud@CustomerおよびPrivate Cloud Appliance X9-2は、IPアドレス169.254.169.254のNTPサービスを構築しています。このサービスは冗長であるため、1つのNTPサーバーのみを設定する必要があります。データ・センター内でNTPサービスを使用する場合は、ここで提供できます。RMMを正しく起動するには、プロフェッショナルサービスのライセンスがインストールされていないかぎり、RMMがNTPサーバーにアクセスできる必要があります。このプロンプトのデフォルト値Nは、RMMがNTPサーバーとしてデフォルトの
pool.ntp.org
を使用することを意味します。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つだけ提供することは一般的です。 - 次のプロンプトでは、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]:
- インストール後、サーバーを再起動してインストールを完了します。
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
の下に配置されるまで開始しません。
- 初期インストールの場合、次のメッセージが表示されます。
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.
- Rackwareからライセンスを受け取ったら、ライセンス・ファイルを
/etc/rackware
の下に配置します。 - これで、
'** rwadm start rackware'**
を実行できます。