Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

付録F 別のマシンへの Websocket プロキシーのインストール

Websocket プロキシーにより、ユーザーは noVNC コンソールを介して仮想マシンに接続することができます。noVNC クライアントは Websocket を使用して VNC データを渡しますが、QEMU の VNC サーバーには Websocket サポートがないため、Websocket プロキシーはクライアントと VNC サーバーの間に配置する必要があります。プロキシーは、Manager マシンなど、ネットワークにアクセス可能なマシンで実行可能です。

セキュリティーおよびパフォーマンスの理由から、ユーザーは別のマシンで Websocket プロキシーを設定することを推奨します。

このセクションでは、Manager が実行されていない別のマシンで Websocket プロキシーをインストールおよび設定する方法を説明します。Manager に Websocket プロキシーを設定する手順については「Red Hat Virtualization Manager の設定」を参照してください。

別のマシンへの Websocket プロキシーのインストールおよび設定

  1. Websocket プロキシーをインストールします。

    # yum install ovirt-engine-websocket-proxy
  2. engine-setup コマンドを実行して Websocket プロキシーを設定します。

    # engine-setup
    注記

    rhvm パッケージもインストールした場合には、このホストに engine を設定するか聞かれた場合に No を選択してください。

  3. Enter を押して、engine-setup がマシンに Websocket プロキシーサーバーを設定できるようにします。

    Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:
  4. Enter を押して自動検出されたホスト名を受け入れるか、別のホスト名を入力して Enter を押します。仮想化ホストを使用している場合には、自動的に検出されたホスト名が間違っている可能性がある点に注意してください。

    Host fully qualified DNS name of this server [host.example.com]:
  5. Enter を押して、engine-setup がファイアウォールを設定して外部との通信に必要なポートを開放できるようにします。engine-setup でのファイアウォール設定の変更を許可しない場合には、手動で必要なポートを開放する必要があります。

    Setup can automatically configure the firewall on this system.
    Note: automatic configuration of the firewall may overwrite current settings.
    Do you want Setup to configure the firewall? (Yes, No) [Yes]:
  6. Manager のマシンの完全修飾 DNS 名を入力して Enter を押します。

    Host fully qualified DNS name of the engine server []: engine_host.example.com
  7. Enter を押して、engine-setup が Manager マシンでアクションを実行するのを許可するか、2 を押して手動でアクションを実行してください。

    Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action.
    Please choose one of the following:
    1 - Access remote engine server using ssh as root
    2 - Perform each action manually, use files to copy content around
    (1, 2) [1]:
    1. Enter を押してデフォルトの SSH ポート番号を受け入れるか、Manager マシンのポート番号を入力します。

      ssh port on remote engine server [22]:
    2. Manager マシンにログインするための root パスワードを入力して Enter を押します。

      root password on remote engine server engine_host.example.com:
  8. 現在の設定と異なる場合には、iptables のルールを確認するかどうかを選択します。

    Generated iptables rules are different from current ones.
    Do you want to review them? (Yes, No) [No]:
  9. Enter を押して構成設定を確定します。

    --== CONFIGURATION PREVIEW ==--
    
    Firewall manager                        : iptables
    Update Firewall                         : True
    Host FQDN                               : host.example.com
    Configure WebSocket Proxy               : True
    Engine Host FQDN                        : engine_host.example.com
    
    Please confirm installation settings (OK, Cancel) [OK]:

    Manager が設定済みの Websocket プロキシーを使用するように設定する際の説明が表示されます。

    Manual actions are required on the engine host
    in order to enroll certs for this host and configure the engine about it.
    
    Please execute this command on the engine host:
       engine-config -s WebSocketProxy=host.example.com:6100
    and than restart the engine service to make it effective
  10. Manager マシンへログインして、表示された説明に沿って操作を行います。

    # engine-config -s WebSocketProxy=host.example.com:6100
    # systemctl restart ovirt-engine.service