検索

2.2. Red Hat Virtualization ホストへのセルフホストエンジンのデプロイ

download PDF
Red Hat Virtualization Host (RHVH)では、セルフホストエンジンのデプロイメントは Cockpit ユーザーインターフェイスを介して実行されます。hosted-engine スクリプトの UI バージョンは、ホストと Manager 用仮想マシンの設定を支援します。スクリプトにより、一連の質問が求められ、回答に基づいて環境が設定されます。

前提条件

  • Red Hat Virtualization Host システムを新規インストールしている必要があります。Cockpit ユーザーインターフェイスシステム サブタブのパフォーマンスプロファイルは、virtual-host に設定する必要があります。
  • セルフホストエンジン環境用のストレージを準備している。少なくとも 2 つのストレージドメインが必要です。
    • Manager 用仮想マシン専用の共有ストレージドメイン。このドメインは、セルフホストエンジンのデプロイメント中に作成され、60 GB 以上である必要があります。
    • 通常の仮想マシンデータのデータストレージドメイン。このドメインは、デプロイメントの完了後にセルフホストエンジン環境に追加する必要があります。
      警告
      Red Hat は、セルフホストエンジン環境と同じデータセンターで利用可能なアクティブなデータストレージドメインを追加することを強く推奨します。
      アクティブなデータストレージドメインが 1 つしかないデータセンター内にセルフホストエンジンをデプロイし、そのデータストレージドメインが破損している場合は、新しいデータストレージドメインを追加したり、破損したデータストレージドメインを削除したりすることはできません。セルフホストエンジンを再デプロイする必要があります。
      ISO ストレージドメインを使用している場合、Red Hat は、ISO ドメインがホスト型エンジン仮想マシン内にないことを推奨します。
    デプロイメント用のストレージの準備に関する詳細は、『Administration Guide』 の Storage の章を参照してください。
    重要
    iSCSI ストレージを使用している場合は、共有ストレージドメインとデータストレージドメインに同じ iSCSI ターゲットを使用しないでください。
  • Manager とホスト用に完全修飾ドメイン名を用意している。正引き (フォワードルックアップ) と逆引き (リバースルックアップ) の記録は両方とも DNS で設定する必要があります。
  • Manager のインストールに RHV-M Virtual Appliance を使用するには、1 つのディレクトリーは 5 GB 以上である必要があります。hosted-engine スクリプトは、まず /var/tmp にアプライアンスファイルを抽出するのに十分な領域があるかどうかを確認します。そうでない場合は、別のディレクトリーを指定したり、外部ストレージをマウントしたりできます。VDSM ユーザーおよび KVM グループには、ディレクトリーに対する読み取り、書き込み、および実行権限が必要です。

手順2.3 RHVH ベースのセルフホストエンジンの設定

  1. RHV-M 仮想アプライアンスの取得

    カスタマーポータルから RHV-M Virtual Appliance をダウンロードします。
    1. カスタマーポータル https://access.redhat.com にログインします。
    2. メニューバー の ダウンロード をクリックします。
    3. Red Hat Virtualization > Download Latest をクリックして、製品のダウンロードページにアクセスします。
    4. 正しい Red Hat Virtualization バージョンのアプライアンスを選択し、今すぐダウンロード をクリックします。
    OVA ファイルを Red Hat Virtualization Host に安全にコピーします。
    scp rhvm-appliance.ova root@host.example.com:/usr/share
  2. セルフホストエンジンのデプロイメントの開始

    https://HostIPorFQDN:9090 で Cockpit ユーザーインターフェイスにログインし、仮想化 > ホスト エンジン に移動しますStart をクリックします。
    デプロイメントスクリプトのテキストフィールドには、デフォルトの回答がある場合は事前に入力され、必要に応じて変更または回答を入力します。
    注記
    この手順では、デプロイメントの質問がテキスト形式で表示されます。UI で、プロンプトが表示されたら Next をクリックします。
    During customization use CTRL-D to abort.
    Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards.
    Are you sure you want to continue? (Yes, No)[Yes]:
  3. ストレージの設定

    使用するストレージのタイプを選択します。
    Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]:
    • NFS ストレージタイプの場合は、FQDN または IP アドレスのいずれかを使用して完全なアドレスを指定し、共有ストレージドメインのパス名を指定します。
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/nfs
    • iSCSI の場合は、iSCSI ポータルの IP アドレス、ポート、ユーザー名、およびパスワードを指定し、自動検出された一覧からターゲット名を選択します。デプロイメント時に選択できる iSCSI ターゲットは 1 つだけです。
      Please specify the iSCSI portal IP address:
      Please specify the iSCSI portal port [3260]:
      Please specify the iSCSI portal user:
      Please specify the iSCSI portal password:
      Please specify the target name (auto-detected values) [default]:
    • Gluster ストレージの場合は、FQDN または IP アドレスのいずれかを使用して完全なアドレスを指定し、共有ストレージドメインのパス名を指定します。
      重要
      レプリカ 3 Gluster ストレージのみがサポートされています。以下の設定が行われていることを確認します。
      • 3 つの Gluster サーバーの /etc/glusterfs/glusterd.vol ファイルで、rpc-auth-allow-insecureon に設定します。
        option rpc-auth-allow-insecure on
      • 次のようにボリュームを設定します。
        gluster volume set volume cluster.quorum-type auto
        gluster volume set volume network.ping-timeout 10
        gluster volume set volume auth.allow \*
        gluster volume set volume group virt
        gluster volume set volume storage.owner-uid 36
        gluster volume set volume storage.owner-gid 36
        gluster volume set volume server.allow-insecure on
      Please specify the full shared storage connection path to use (example: host:/path): storage.example.com:/hosted_engine/gluster_volume
    • ファイバーチャネルの場合は、ホストバスアダプターを設定して接続し、hosted-engine スクリプトは利用可能な LUN を自動的に検出します。LUN には既存のデータを含めることはできません。
      The following luns have been found on the requested target:
      [1]     3514f0c5447600351       30GiB   XtremIO XtremApp
                              status: used, paths: 2 active
                
      [2]     3514f0c5447600352       30GiB   XtremIO XtremApp
                              status: used, paths: 2 active
      
      Please select the destination LUN (1, 2) [1]:
  4. ネットワークの設定

    スクリプトは、ファイアウォール設定を確認し、コンソール(SPICE または VNC)アクセス用に修正する機能を提供します。次に、環境の管理ブリッジとして使用する可能なネットワークインターフェイスコントローラー(NIC)を検出します。
    iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]: Yes
    Please indicate a pingable gateway IP address [X.X.X.X]:
    Please indicate a nic to set ovirtmgmt bridge on: (eth1, eth0) [eth1]:
  5. 仮想マシンの設定

    ブートデバイスタイプの disk を選択し、RHV-M Virtual Appliance へのパスを指定します。/var/tmp ディレクトリーに十分なスペースがない場合は、別のディレクトリーを指定します。VDSM ユーザーおよび KVM グループには、ディレクトリーに対する読み取り、書き込み、および実行権限が必要です。
    Please specify the device to boot the VM from (choose disk for the oVirt engine appliance) (cdrom, disk, pxe) [disk]: disk
    Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]: vnc
    Using an oVirt engine appliance could greatly speed-up ovirt hosted-engine deploy.
    You could get oVirt engine appliance installing ovirt-engine-appliance rpm.
    Please specify path to OVF archive you would like to use [None]: /path/to/rhvm-appliance.ova
    cloud-init が Manager 用仮想マシンの初期設定を処理するようにするには、Yes を指定します。root パスワードの設定、ネットワークの設定、ホスト名の設定、使用する engine-setup の回答ファイルの挿入、起動時に engine-setup の実行などのタスクを処理するには、cloud-init に Generate を指定します。cloud-init のより高度な機能を処理する既存の cloud-init スクリプトがある場合は、必要に応じて Existing を選択します。
    注記
    cloud-init の詳細は、を参照してください https://cloudinit.readthedocs.org/en/latest/
    Would you like to use cloud-init to customize the appliance on the first boot (Yes, No)[Yes]? Yes
    Would you like to generate on-fly a cloud-init ISO image (of no-cloud type) or do you have an existing one (Generate, Existing)[Generate]? Generate
    Please provide the FQDN you would like to use for the engine appliance.
    Note: This will be the FQDN of the engine VM you are now going to launch.
    It should not point to the base host or to any other existing machine.
    Engine VM FQDN: (leave it empty to skip): manager.example.com
    Automatically execute engine-setup on the engine appliance on first boot (Yes, No)[Yes]? Yes
    Automatically restart the engine VM as a monitored service after engine-setup (Yes, No)[Yes]? Yes
    Please provide the domain name you would like to use for the engine appliance.
    Engine VM domain: [localdomain] example.com
    Enter root password that will be used for the engine appliance (leave it empty to skip): p@ssw0rd
    Confirm appliance root password: p@ssw0rd
    The following CPU types are supported by this host:
        - model_SandyBridge: Intel SandyBridge Family
        - model_Westmere: Intel Westmere Family
        - model_Nehalem: Intel Nehalem Family
        - model_Penryn: Intel Penryn Family
        - model_Conroe: Intel Conroe Family
    Please specify the CPU type to be used by the VM [model_SandyBridge]:
    Please specify the number of virtual CPUs for the VM [Defaults to appliance OVF value: [2]:
    You may specify a unicast MAC address for the VM or accept a randomly generated default [00:16:3e:77:b2:a4]:
    Please specify the memory size of the VM in MB (Defaults to maximum available): [12722]:
    How should the engine VM network be configured (DHCP, Static)[DHCP]? Static
    Please enter the IP address to be used for the engine VM: 192.168.x.x
    Please provide a comma-separated list (max 3) of IP addresses of domain name servers for the engine VM
    Engine VM DNS (leave it empty to skip):
    Yes を指定して、ホスト名の解決のために、ホストから Manager 仮想マシンに /etc/hosts ファイルをコピーします。
    Add lines for the appliance itself and for this host to /etc/hosts on the engine VM?
    Note: ensuring that this host could resolve the engine VM hostname is still up to you (Yes, No)[No] Yes
  6. セルフホストエンジンの設定

    管理ポータルで識別されるホストの名前と、管理ポータルにアクセスするための admin@internal ユーザーのパスワードを指定します。SMTP サーバーの名前と TCP ポート番号、メール通知を送信するメールアドレス、メール通知を受信するメールアドレス (複数ある場合はコンマ区切りリスト) を指定します。
    Enter engine admin password: p@ssw0rd
    Confirm engine admin password: p@ssw0rd
    Enter the name which will be used to identify this host inside the Administrator Portal [hosted_engine_1]:
    Please provide the name of the SMTP server through which we will send notifications [localhost]:
    Please provide the TCP port number of the SMTP server [25]:
    Please provide the email address from which notifications will be sent [root@localhost]:
    Please provide a comma-separated list of email addresses which will get notifications [root@localhost]:
  7. 設定プレビュー

    次に進む前に、hosted-engine スクリプトにより、入力した設定値が表示され、これらの値に進むように確認が求められます。
    Please confirm installation settings (Yes, No)[Yes]: Yes
    このスクリプトは Manager 用仮想マシンを作成し、ovirt-engine サービスおよび高可用性サービスを起動し、ホストと共有ストレージドメインを Manager 用仮想マシンに接続します。
    hosted-engine デプロイメントスクリプトが正常に完了すると、Red Hat Virtualization Manager が設定され、ホストで実行されます。Manager は、Manager 仮想マシン専用のデータセンター、クラスター、ホスト、Manager 仮想マシン、および共有ストレージドメインをすでに設定しています。
    重要
    管理ポータルに admin@internal ユーザーとしてログインして、Manager の設定を継続し、さらにリソースを追加します。通常の仮想マシンデータをホストし、Manager 用仮想マシンを表示するには、データセンターを初期化するために別のデータドメインを作成する必要があります。さまざまなストレージオプションとデータストレージドメインの追加方法については、『Administration Guide』 の Storage を参照してください。
    環境に追加ユーザーを追加できるように、Red Hat Virtualization Manager をディレクトリーサーバーにリンクします。Red Hat Virtualization は、Red Hat Directory Server (RHDS)、Red Hat Identity Management (IdM)、Active Directory などの多くのディレクトリーサーバータイプをサポートします。ovirt-engine-extension-aaa-ldap-setup インタラクティブセットアップスクリプトを使用して、ディレクトリーサーバーを環境に追加します。詳細は、『Administration Guide』 の Configuring an External LDAP Provider を参照してください。
    このスクリプトは、障害復旧を支援するために、設定中に指定した回答もファイルに保存します。--generate-answer=<file > 引数を使用して宛先が指定されていない場合、応答ファイルは /etc/ovirt-hosted-engine/answers.conf に生成されます。
    注記
    RHV-M Virtual Appliance では、SSH パスワード認証はデフォルトでは有効になっていません。SPICE または VNC コンソールから Red Hat Virtualization Manager 仮想マシンにアクセスして、SSH パスワード認証を有効にできます。sshd サービスが実行していることを確認します。/etc/ssh/sshd_config を編集し、次の 2 つのオプションを yes に変更します。
    • PasswordAuthentication
    • PermitRootLogin
    sshd サービスを再起動して、変更を適用します。
  8. 必要なエンタイトルメントへのサブスクライブ

    Manager 用仮想マシンを必要なエンタイトルメントにサブスクライブします。詳細は、『インストールガイド の 必要なエンタイトルメントへのサブスクライブ を参照してください。
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.