Show Table of Contents
2.2. Red Hat Virtualization Host でのセルフホストエンジンのデプロイ
Red Hat Virtualization Host (RHVH) では、Cockpit ユーザーインターフェースを使用してセルフホストエンジンのデプロイメントを実行します。
hosted-engine スクリプトの UI バージョンは、ホストと Manager 用の仮想マシンの設定に役立ちます。このスクリプトは、一連の質問を尋ねてその回答に基づいて環境を構築していきます。
前提条件
- Red Hat Virtualization Host システムを新規インストールしておく必要があります。Cockpit ユーザーインターフェースの System のサブタブにある Performance Profile は、
virtual-hostに設定する必要があります。 - セルフホストエンジン環境のストレージを準備する必要があります。ご使用のデプロイメントのストレージを用意する方法については、『管理ガイド』の「ストレージ」の章を参照してください。
- Manager およびホスト用の完全修飾ドメイン名を設定しておく必要があります。正引き (フォワードルックアップ) と逆引き (リバースルックアップ) の両方を DNS で設定する必要があります。
- Manager のインストールに RHV-M Virtual Appliance を使用するには、1 つのディレクトリーに少なくとも 60 GB の容量が必要です。
hosted-engineスクリプトは最初に、アプライアンスのファイルを抽出するために十分なスペースが/var/tmpにあるかどうかチェックします。スペースが足りない場合には、別のディレクトリーを指定するか、外部ストレージをマウントすることができます。VDSM ユーザーおよび KVM グループには、このディレクトリーでの読み取り、書き込み、実行権限を指定する必要があります。
手順2.3 RHVH ベースのセルフホストエンジンの設定
RHV-M Virtual Appliance の取得
カスタマーポータルから RHV-M Virtual Appliance をダウンロードします。- Red Hat カスタマーポータル (https://access.redhat.com) にログインします。
- メニューバーの ダウンロード をクリックします。
- Red Hat Virtualization > をクリックして、製品ダウンロードページにアクセスします。
- 正しい Red Hat Virtualization バージョンを選択して をクリックします。
Red Hat Virtualization Host に OVA ファイルをセキュアコピーします。scp rhvm-appliance.ova root@host.example.com:/usr/share
セルフホストエンジンのデプロイメントの開始
https://HostIPorFQDN:9090 の Cockpit ユーザーインターフェースにログインして、Virtualization > Hosted Engine に移動し、 をクリックします。
デプロイメントスクリプトのテキストフィールドには、デフォルトの回答があれば、その回答が事前に入力されています。必要に応じて回答を変更するか、入力してください。
注記
以下の手順では、デプロイメントの質問はテキスト形式で表示されます。UI では、プロンプトが表示されたら をクリックしてください。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]:
ストレージの設定
使用するストレージのタイプを選択します。Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]:
- NFS ストレージタイプの場合には、完全修飾ドメイン名または 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 ストレージタイプの場合には、完全修飾ドメイン名または IP アドレスを使用した完全なアドレスと、共有ストレージドメインのパス名を指定します。
重要
サポートされるストレージは、レプリカ 3 の Gluster ストレージのみです。以下の設定を完了しておいてください。- Gluster サーバー 3 つすべての
/etc/glusterfs/glusterd.volファイルで、rpc-auth-allow-insecureをonに設定してください。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
- Fiber Channel については、ホストのバスアダプターが設定、接続されている必要があります。設定/接続がされている場合には
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]:
ネットワークの設定
スクリプトにより、ファイアウォールの設定がチェックされ、コンソール (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]:
仮想マシンの設定
ブートデバイスタイプに を選択して、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
Please specify path to a temporary directory with at least 50 GB [/var/tmp]:
cloud-init で Manager 用仮想マシンの初期設定を行う場合には を指定します。root パスワードの設定、ネットワークやホスト名の設定、engine-setupで使用するための応答ファイルの注入、起動時のengine-setupの実行などのタスクを cloud-init に処理させる場合には を指定します。または、cloud-init の高度な機能を活用できるように既存の cloud-init スクリプトがある場合には、 を選択します。注記
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
セルフホストエンジンの設定
管理ポータル内で識別するためのホストの名前と、管理ポータルへアクセスするための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]:
設定のプレビュー
続行する前に、hosted-engineスクリプトは、入力された設定値を表示して、これらの値で設定を続行するかどうかを尋ねます。Please confirm installation settings (Yes, No)[Yes]: Yes
このスクリプトでは、Manager 用仮想マシンの作成、
ovirt-engine および高可用性サービスの起動、ホストと共有ストレージドメインの Manager 用仮想マシンへの接続が行われます。
hosted-engine のデプロイメントスクリプトが正常に完了すると、Red Hat Virtualization Manager が設定され、ホスト上で稼働するようになります。Manager によりデータセンター、クラスター、ホスト、Manager 用仮想マシン、Manager 用の仮想マシン専用の共有ストレージドメインがすでに設定されています。
重要
Manager の設定を継続して、リソースをさらに追加するには、admin@internal ユーザーとして管理ポータルにログインします。通常の仮想マシンデータをホストするようにデータセンターを初期化して、Manager 用仮想マシンが見えるようにするには、別のデータドメインを作成する必要があります。ストレージの異なるオプションおよびデータストレージドメインの追加方法については、『管理ガイド』の「ストレージ」を参照してください。
Red Hat Virtualization Manager をディレクトリーサーバーにリンクして、Manager 環境に新規ユーザーを追加することができます。Red Hat Virtualization は、 Red Hat Directory Server (RHDS)、Red Hat Identity Management (IdM)、Active Directory など多くのディレクトリーサーバータイプをサポートします。ディレクトリーサーバーをお使いの環境に追加するには、
ovirt-engine-extension-aaa-ldap-setup の対話型設定スクリプトを使用します。詳しい情報は、『管理ガイド』の「外部 LDAP プロバイダーの設定」を参照してください。
また、このスクリプトにより、設定時に指定した回答がファイルに保存されます。このファイルは、障害復旧 (DR) に役立ちます。
--generate-answer=<file> の引数で保存先が指定されていない場合には、応答ファイルは /etc/ovirt-hosted-engine/answers.conf に生成されます。
注記
RHEV-M Virtual Appliance では、デフォルトで SSH パスワード認証は有効になっていません。SPICE または VNC コンソールから Red Hat Virtualization Manager 用仮想マシンにアクセスして、SSH パスワード認証を有効にすることができます。
sshd サービスが実行されていることを確認します。/etc/ssh/sshd_config を編集して、以下の 2 つのオプションを yes に変更します。
PasswordAuthenticationPermitRootLogin
sshd サービスを再起動して、変更を有効にします。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.