<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>16.3. コンソールプロキシー</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.1.0-ja-JP-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.1.0');
              
              addID('Apache_CloudStack.4.1.0.books');
	      addID('Apache_CloudStack.4.1.0.Admin_Guide');
              </script><link rel="home" href="index.html" title="CloudStack 管理者ガイド" /><link rel="up" href="working-with-system-vm.html" title="第16章 システム仮想マシンの操作" /><link rel="prev" href="multiple-system-vm-vmware.html" title="16.2. VMware のための複数のシステム仮想マシンのサポート" /><link rel="next" href="virtual-router.html" title="16.4. 仮想ルーター" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="multiple-system-vm-vmware.html"><strong>戻る</strong></a></li><li class="next"><a accesskey="n" href="virtual-router.html"><strong>次へ</strong></a></li></ul><div xml:lang="ja-JP" class="section" id="console-proxy" lang="ja-JP"><div class="titlepage"><div><div><h2 class="title" id="console-proxy">16.3. コンソールプロキシー</h2></div></div></div><div class="para">
		コンソールプロキシーはWeb UI経由でコンソールビューを表示するロールを持ったシステム仮想マシンの一種です。ユーザーのブラウザーからハイパーバイザーのVNCポート経由でゲストのコンソールに接続します。管理者とエンドユーザーのWeb UIの両方からコンソール接続が可能です。
	</div><div class="para">
		Clicking a console icon brings up a new window. The AJAX code downloaded into that window refers to the public IP address of a console proxy VM. There is exactly one public IP address allocated per console proxy VM. The AJAX application connects to this IP. The console proxy then proxies the connection to the VNC port for the requested VM on the Host hosting the guest.
	</div><div class="note"><div class="admonition_header"><h2>注記</h2></div><div class="admonition"><div class="para">
			ハイパーバイザーはVNCのためにたくさんのポートを割り当てます。それにより、複数のVNCセッションを同時に行うことができます。
		</div></div></div><div class="para">
		ゲストの仮想IPには何のトラフィックも発生しませんので、ゲスト内でVNCを有効にする必要はありません。
	</div><div class="para">
		コンソールプロキシーVMはアクティブなセッションの数を管理サーバーに定期的にレポートします。デフォルトのレポート間隔は5分です。これは管理サーバーのグローバル設定のパラメーターのconsoleproxy.loadscan.intervalにより変更可能です。
	</div><div class="para">
		ゲストVMのコンソールプロキシーへの割り当てに際し、まず最初にゲストVMのコンソールプロキシーへの前回セッションがあるかを確認します。もしある場合、管理サーバーはそのプロキシーVMの負荷に関わらず、ゲストVMをそのコンソールプロキシーVMに割り当てます。そうでない場合、新しいセッションを処理できるキャパシティのあるコンソールプロキシーVMの中から最初に選ばれたものが使用されます。
	</div><div class="para">
		コンソールプロキシーは管理者により再起動できます。しかし、それにより、ユーザーの既存のコンソールセッションは中断されます。
	</div><div class="section" id="use-cert"><div class="titlepage"><div><div><h3 class="title" id="use-cert">16.3.1. Using a SSL Certificate for the Console Proxy</h3></div></div></div><div class="para">
			The console viewing functionality uses a dynamic DNS service under the domain name realhostip.com to assist in providing SSL security to console sessions. The console proxy is assigned a public IP address. In order to avoid browser warnings for mismatched SSL certificates, the URL for the new console window is set to the form of https://aaa-bbb-ccc-ddd.realhostip.com. You will see this URL during console session creation. CloudStack includes the realhostip.com SSL certificate in the console proxy VM. Of course, CloudStack cannot know about the DNS A records for our customers' public IPs prior to shipping the software. CloudStack therefore runs a dynamic DNS server that is authoritative for the realhostip.com domain. It maps the aaa-bbb-ccc-ddd part of the DNS name to the IP address aaa.bbb.ccc.ddd on lookups. This allows the browser to correctly connect to the console proxy's public IP, where it then expects and receives a SSL certificate for realhostip.com, and SSL is set up without browser warnings.
		</div></div><div class="section" id="change-console-proxy-ssl-certificate-domain"><div class="titlepage"><div><div><h3 class="title" id="change-console-proxy-ssl-certificate-domain">16.3.2. コンソールプロキシの SSL 証明書とドメインの変更</h3></div></div></div><div class="para">
			管理者は、顧客のコンソールセッションの URL に realhostip.com 以外のドメインを表示させることもできます。管理者は、 異なるドメインを選択して新しい SSL 証明書と秘密鍵をアップロードすることにより、表示されるドメインをカスタマイズできます。このドメインで、aaa-bbb-ccc-ddd.your.domain 形式のアドレスのクエリを aaa.bbb.ccc.ddd 形式(たとえば、 202.8.44.1)の IPv4 IP アドレスに解決できる DNS サービスを実行する必要があります。
		</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
					動的な名前解決をセットアップするか、パブリック IP アドレスの範囲内の可能性のあるすべての DNS 名を既存の DNS サーバーに追加します。このとき、「aaa-bbb-ccc-ddd.company.com -&gt; aaa.bbb.ccc.ddd」の形式で追加します。
				</div></li><li class="listitem"><div class="para">
					秘密鍵と CSR(Certificate Signing Request:証明書署名要求)を生成します。openssl を使用して秘密鍵と公開鍵のペアおよび CSR を生成するときは、CloudStack ユーザーインターフェイスに貼り付ける秘密鍵を PKCS#8 形式に変換してください。
				</div><div class="orderedlist"><ol class="loweralpha"><li class="listitem"><div class="para">
							新しい 2048 ビットの秘密鍵を生成します。
						</div><pre class="programlisting">openssl genrsa -des3 -out yourprivate.key 2048</pre></li><li class="listitem"><div class="para">
							新しい証明書の CSR を生成します。
						</div><pre class="programlisting">openssl req -new -key yourprivate.key -out yourcertificate.csr</pre></li><li class="listitem"><div class="para">
							信頼できる証明機関の Web サイトを開き、SSL 証明書を購入し、CSR を送信します。その後、有効な証明書を受け取ります。
						</div></li><li class="listitem"><div class="para">
							秘密鍵の形式を PKCS#8 暗号化形式に変換します。
						</div><pre class="programlisting">openssl pkcs8 -topk8 -in yourprivate.key -out yourprivate.pkcs8.encrypted.key</pre></li><li class="listitem"><div class="para">
							暗号化された PKCS#8 秘密鍵を CloudStack で使用できる PKCS#8 形式に変換します。
						</div><pre class="programlisting">openssl pkcs8 -in yourprivate.pkcs8.encrypted.key -out yourprivate.pkcs8.key</pre></li></ol></div></li><li class="listitem"><div class="para">
					In the Update SSL Certificate screen of the CloudStack UI, paste the following:
				</div><div class="itemizedlist"><ul><li class="listitem"><div class="para">
							The certificate you've just generated.
						</div></li><li class="listitem"><div class="para">
							The private key you've just generated.
						</div></li><li class="listitem"><div class="para">
							適切な新しいドメイン名(たとえば、company.com)
						</div></li></ul></div><div class="mediaobject"><img src="./images/update-ssl.png" alt="updatessl.png: Updating Console Proxy SSL Certificate" /></div></li><li class="listitem"><div class="para">
					適切な新しいドメイン名(たとえば、company.com)
				</div><div class="para">
					This stops all currently running console proxy VMs, then restarts them with the new certificate and key. Users might notice a brief interruption in console availability.
				</div></li></ol></div><div class="para">
			The Management Server generates URLs of the form "aaa-bbb-ccc-ddd.company.com" after this change is made. The new console requests will be served with the new DNS domain name, certificate, and key.
		</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="multiple-system-vm-vmware.html"><strong>戻る</strong>16.2. VMware のための複数のシステム仮想マシンのサポート</a></li><li class="up"><a accesskey="u" href="#"><strong>上に戻る</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>ホーム</strong></a></li><li class="next"><a accesskey="n" href="virtual-router.html"><strong>次へ</strong>16.4. 仮想ルーター</a></li></ul></body></html>
