VMwareによる仮想化

SUSE Multi-Linux Managerでは、ESXiやvCenterなどのVMware vSphere仮想マシンを使用できます。そのためには、仮想ホストマネージャ(VHM)を設定します。

まず、SUSE Multi-Linux ManagerサーバでVHMを設定し、使用できるVMホストを評価する必要があります。 次に、Taskomaticは、VMのAPIを使用してデータ収集を開始できます。

1. VHMの設定

仮想ホストマネージャ(VHM)はSUSE Multi-Linux Managerサーバ上で動作します。

VHMを実行するには、SUSE Multi-Linux Managerサーバでポート443がオープンになっていて、VMware APIにアクセスする必要があります。

VMware hosts use access roles and permissions to control access to hosts and guests. Ensure that any VMware objects or resources that you want to be inventoried by the VHM have at least read-only permissions. If you want to exclude any objects or resources, mark them with no-access.

新しいホストをSUSE Multi-Linux Managerに追加している場合、ユーザおよびオブジェクトに割り当てられているロールおよびパーミッションをSUSE Multi-Linux Managerで評価する必要があるかどうかを検討する必要があります。

ユーザ、ロール、およびパーミッションの詳細については、VMware vSphereのドキュメント(https://techdocs.broadcom.com/us/en/vmware-cis/vsphere.html)を参照してください

プロシージャ: VMware VHMの作成
  1. SUSE Multi-Linux ManagerのWeb UIで、システム  仮想ホストマネージャに移動します。

  2. Click Create and select VMware-based.

  3. In the Add a VMware-based Virtual Host Manager section, use these parameters:

    • In the Label field, type a custom name for your VHM.

    • In the Hostname field, type the fully qualified domain name (FQDN) or host IP address.

    • In the Port field, type the ESXi API port to use (for example, 443).

    • In the Username field, type the username associated with the VM host.

    • In the Password field, type the password associated with the VM host user.

  4. 作成をクリックして変更を保存し、VHMを作成します。

  5. On the Virtual Host Managers page select the new VHM.

  6. On the Properties page, click Refresh Data to inventory the new VHM.

評価されたオブジェクトおよびリソースを表示するには、システム  システム一覧  仮想システムに移動します。

Connecting to the ESXi server from a browser using HTTPS can sometimes log an invalid certificate error. If this occurs, refreshing the data from the virtual hosts server fails. To correct the problem, extract the certificate from the ESXi server, and copy it to /etc/pki/trust/anchors. Re-trust the certificate by running the update-ca-certificates command on the command line, and restart the spacewalk services.

VHMが作成されて設定されると、Taskomaticは、データ収集を自動的に実行します。 データ収集を手動で実行する場合、システム  仮想ホストマネージャに移動し、適切なVHMを選択してデータの更新をクリックします。

SUSE Multi-Linux Manager ships with a tool called virtual-host-gatherer that can connect to VHMs using their API, and request information about virtual hosts. virtual-host-gatherer maintains the concept of optional modules, where each module enables a specific VHM. This tool is automatically invoked nightly by Taskomatic. Log files for the virtual-host-gatherer tool are located at /var/log/rhn/gatherer.log.

2. VMwareでのSSLエラーのトラブルシューティング

VMwareのインストール環境を設定中にSSLエラーが発生した場合、VMwareからCA証明書をダウンロードし、SUSE Multi-Linux Managerで信頼する必要があります。

プロシージャ: VMware CA証明書を信頼する
  1. VMwareインストール環境からCA証明書をダウンロードします。 そのためには、vCenterのWeb UIにログインし、Download trusted root CA certificates(信頼できるルートCA証明書のダウンロード)をクリックします。

  2. If the downloaded CA certificates file is in .zip format, extract the archive. The certificate files have a number as an extension. For example, certificate.0.

  3. Copy the certificate files to your SUSE Multi-Linux Manager Server, and save them to the /etc/pki/trust/anchors/ directory.

  4. Change the filename suffix on the copied certificate to either .crt or .pem.

  5. SUSE Multi-Linux Managerサーバのコマンドプロンプトで、CA証明書のレコードを更新します。

    update-ca-certificates