<?xml version="1.0" encoding="UTF-8"?>
<!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>クイックインストールガイド</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-Quick_Install_Guide-4.0.2-ja-JP-0-0" /><meta name="description" content="このガイドでは、Apache CloudStackの初期導入で失敗しないことを重視しています。このドキュメントに載っている部品は誰でもアクセスできます。Apache CloudStackを使って、もっと複雑な構成を組むこともできますが、それはこのドキュメントのスコープ外です。" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.0.2');
              
              addID('Apache_CloudStack.4.0.2.books');
	      addID('Apache_CloudStack.4.0.2.Quick_Install_Guide');
              </script></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><div xml:lang="ja-JP" class="book" id="idm23078192" lang="ja-JP"><div class="titlepage"><div><div class="producttitle"><span class="productname">Apache CloudStack</span> <span class="productnumber">4.0.2</span></div><div><h1 id="idm23078192" class="title">クイックインストールガイド</h1></div><div><h2 class="subtitle">Apache CloudStack 簡易構築ガイド</h2></div><p class="edition">エディッション 0</p><div><h3 class="corpauthor">
		<span class="inlinemediaobject"><object data="Common_Content/images/title_logo.svg" type="image/svg+xml"> </object></span>

	</h3></div><div><div xml:lang="ja-JP" class="authorgroup" lang="ja-JP"><div class="author"><h3 class="author"><span class="surname">CloudStack</span> <span class="firstname">Apache</span> [FAMILY Given]</h3></div></div></div><hr /><div><div id="idm55511056" class="legalnotice"><h1 class="legalnotice">法律上の通知</h1><div class="para">
		Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
	</div><div class="para">
		http://www.apache.org/licenses/LICENSE-2.0
	</div><div class="para">
		Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
	</div><div class="para">
		Apache CloudStack is an effort undergoing incubation at The Apache Software Foundation (ASF).
	</div><div class="para">
		Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
	</div><div class="para">
		CloudStack® is a registered trademark of the Apache Software Foundation.
	</div><div class="para">
		Apache CloudStack, the CloudStack word design, the Apache CloudStack word design, and the cloud monkey logo are trademarks of the Apache Software Foundation.
	</div></div></div><div><div class="abstract"><h6>概要</h6><div class="para">
			このガイドでは、Apache CloudStackの初期導入で失敗しないことを重視しています。このドキュメントに載っている部品は誰でもアクセスできます。Apache CloudStackを使って、もっと複雑な構成を組むこともできますが、それはこのドキュメントのスコープ外です。
		</div></div></div></div><hr /></div><div class="toc"><dl class="toc"><dt><span class="preface"><a href="#pref-qig-Preface">はじめに</a></span></dt><dd><dl><dt><span class="section"><a href="#idm76803472">1. 表記方法</a></span></dt><dd><dl><dt><span class="section"><a href="#idm74550208">1.1. 印刷における表記方法</a></span></dt><dt><span class="section"><a href="#idm12410608">1.2. 引用における表記方法</a></span></dt><dt><span class="section"><a href="#idm48291792">1.3. 注記および警告</a></span></dt></dl></dd><dt><span class="section"><a href="#feedback">2. Submitting Feedback and Getting Help</a></span></dt></dl></dd><dt><span class="chapter"><a href="#chap-qig-Overview">1. 概要</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-Overview-What_building">1.1. 実際私たちは何を構築するのでしょうか？</a></span></dt><dt><span class="section"><a href="#sect-qig-Overview-hilevel">1.2. プロセスのハイレベルの概要</a></span></dt><dt><span class="section"><a href="#sect-qig-Overview-prereqs">1.3. 要件</a></span></dt></dl></dd><dt><span class="chapter"><a href="#chap-qig-Environment">2. 環境</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-Environment-operatingsys">2.1. オペレーティングシステム</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-network">2.1.1. ネットワークの設定</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-hostname">2.1.2. ホスト名</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-selinux">2.1.3. SELinux</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-ntp">2.1.4. NTP</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-repoconfig">2.1.5. CLoudStack パッケージリポジトリの設定</a></span></dt></dl></dd><dt><span class="section"><a href="#sect-qig-Environment-nfs">2.2. NFS</a></span></dt></dl></dd><dt><span class="chapter"><a href="#chap-qig-Management">3. 管理サーバーのインストール</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-Management-database">3.1. データベースのインストールと設定</a></span></dt><dt><span class="section"><a href="#sect-qig-Management-installation">3.2. インストール</a></span></dt><dt><span class="section"><a href="#sect-qig-Management-templatesetup">3.3. システムテンプレートのセットアップ</a></span></dt></dl></dd><dt><span class="chapter"><a href="#chap-qig-KVM">4. KVMのセットアップとインストール</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-KVM-Prerequisites">4.1. 前提条件</a></span></dt><dt><span class="section"><a href="#sect-qig-KVM-Installation">4.2. インストール</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-KVM-Configuration">4.2.1. KVMの設定</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#chap-qig-Config">5. 設定</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-Config-UI_Access">5.1. UIアクセス</a></span></dt><dt><span class="section"><a href="#sect-qig-Config-Zone">5.2. ゾーンのセットアップ</a></span></dt><dt><span class="section"><a href="#sect-qig-Config-Pod">5.3. ポッドの設定</a></span></dt><dt><span class="section"><a href="#Runbook-config-cluster">5.4. クラスター</a></span></dt><dd><dl><dt><span class="section"><a href="#Runbook-config-cluster-pristorage">5.4.1. プライマリーストレージ</a></span></dt><dt><span class="section"><a href="#Runbook-config-cluster-secstorage">5.4.2. セカンダリーストレージ</a></span></dt></dl></dd></dl></dd><dt><span class="appendix"><a href="#appe-qig-Revision_History">A. 変更履歴</a></span></dt></dl></div><div xml:lang="ja-JP" class="preface" id="pref-qig-Preface" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">はじめに</h1></div></div></div><div xml:lang="ja-JP" class="section" id="idm76803472" lang="ja-JP"><div class="titlepage"><div><div><h2 class="title" id="idm76803472">1. 表記方法</h2></div></div></div><div class="para">
		本ガイドは特定の単語や語句を強調したり、 記載内容の特定部分に注意を引かせる目的で次のような表記方法を使用しています。
	</div><div class="para">
		PDF版 および印刷版では、 <a href="https://fedorahosted.org/liberation-fonts/">Liberation Fonts</a> セットから採用した書体を使用しています。 ご使用のシステムに Liberation Fonts セットがインストールされている場合、 HTML 版でもこのセットが使用されます。 インストールされていない場合は代替として同等の書体が表示されます。 注記: Red Hat Enterprise Linux 5 およびそれ以降のバージョンにはデフォルトで Liberation Fonts セットが収納されます。
	</div><div class="section" id="idm74550208"><div class="titlepage"><div><div><h3 class="title" id="idm74550208">1.1. 印刷における表記方法</h3></div></div></div><div class="para">
			特定の単語や語句に注意を引く目的で 4 種類の表記方法を使用しています。 その表記方法および適用される状況は以下の通りです。
		</div><div class="para">
			<code class="literal">等幅の太字</code>
		</div><div class="para">
			シェルコマンド、ファイル名、パスなどシステムへの入力を強調するために使用しています。またキー配列やキーの組み合わせを強調するのにも使用しています。 例えば、
		</div><div class="blockquote"><blockquote class="blockquote"><div class="para">
				現在作業中のディレクトリ内のファイル <code class="filename">my_next_bestselling_novel</code> の内容を表示させるには、 シェルプロンプトで <code class="command">cat my_next_bestselling_novel</code> コマンドを入力してから <span class="keycap"><strong>Enter</strong></span> を押してそのコマンドを実行します。
			</div></blockquote></div><div class="para">
			上記にはファイル名、シェルコマンド、キーが含まれています。 すべて等幅の太字で表されているため文中内で見分けやすくなっています。
		</div><div class="para">
			キーが 1 つの場合と複数のキーの組み合わせになる場合を区別するため、 その組み合わせを構成するキー同士をハイフンでつないでいます。 例えば、
		</div><div class="blockquote"><blockquote class="blockquote"><div class="para">
				<span class="keycap"><strong>Enter</strong></span> を押してコマンドを実行します。
			</div><div class="para">
				1 番目の仮想ターミナルに切り替えるは、 <span class="keycap"><strong>Ctrl</strong></span>+<span class="keycap"><strong>Alt</strong></span>+<span class="keycap"><strong>F2</strong></span> を押します。 X-Windows セッションに戻るには、 <span class="keycap"><strong>Ctrl</strong></span>+<span class="keycap"><strong>Alt</strong></span>+<span class="keycap"><strong>F1</strong></span> を押します。
			</div></blockquote></div><div class="para">
			最初の段落では押すべき 1 つのキーを特定して強調しています。 次の段落では同時に押すべき 3 つのキーの組み合わせが 2 種類ありそれぞれ強調されています。
		</div><div class="para">
			ソースコードの説明では 1 段落内で提示されるクラス名、 メソッド、 関数、 変数名、 戻り値を上記のように <code class="literal">等幅の太字</code> で表示します。 例えば、
		</div><div class="blockquote"><blockquote class="blockquote"><div class="para">
				ファイル関連のクラス群はファイルシステムに対しては <code class="classname">filesystem</code>、 ファイルには <code class="classname">file</code>、 ディレクトリには <code class="classname">dir</code> をそれぞれ含みます。 各クラスは個別に関連する権限セットを持っています。
			</div></blockquote></div><div class="para">
			<span class="application"><strong>プロポーショナルの太字</strong></span>
		</div><div class="para">
			アプリケーション名、 ダイアログボックスのテキスト、ラベル付きボタン、 チェックボックスとラジオボタンのラベル、 メニュータイトルとサブメニュータイトルなどシステム上で見られる単語や語句を表します。 例えば、
		</div><div class="blockquote"><blockquote class="blockquote"><div class="para">
				メインメニューバーから <span class="guimenu"><strong>システム &gt; 個人設定 &gt; マウス</strong></span> の順で選択し <span class="application"><strong>マウスの個人設定</strong></span> を起動します。 <span class="guilabel"><strong>ボタン</strong></span> タブ内で <span class="guilabel"><strong>左ききのマウス</strong></span> チェックボックスをクリックしてから <span class="guibutton"><strong>閉じる</strong></span> をクリックしマウスの主要ボタンを左から右に切り替えます (マウスを左ききの人が使用するのに適した設定にする)。
			</div><div class="para">
				<span class="application"><strong>gedit</strong></span> ファイルに特殊な文字を挿入する場合は、 メインメニューバーから <span class="guimenu"><strong>アプリケーション &gt; アクセサリ &gt; 文字マップ</strong></span> の順で選択します。 次に <span class="application"><strong>文字マップ</strong></span> メニューバーから <span class="guimenu"><strong>検索 &gt; 検索…</strong></span> と選択して <span class="guilabel"><strong>検索</strong></span> フィールド内にその文字名を入力し <span class="guibutton"><strong>次</strong></span> をクリックします。 探している文字が <span class="guilabel"><strong>文字表</strong></span> 内で強調表示されます。 この強調表示された文字をダブルクリックすると <span class="guilabel"><strong>コピーするテキスト</strong></span> フィールド内に置かれるので次に <span class="guibutton"><strong>コピー</strong></span> ボタンをクリックします。 ここでドキュメントに戻り <span class="application"><strong>gedit</strong></span> メニューバーから <span class="guimenu"><strong>編集 &gt; 貼り付け</strong></span> を選択します。
			</div></blockquote></div><div class="para">
			上記には、 アプリケーション名、 システム全体のメニュー名と項目、 アプリケーション固有のメニュー名、 GUI インタフェースで見られるボタンやテキストがあります。 すべてプロポーショナルの太字で表示されているため文中内で見分けやすくなっています。
		</div><div class="para">
			<code class="command"><em class="replaceable"><code>等幅の太字で且つ斜体</code></em></code> または <span class="application"><strong><em class="replaceable"><code>プロポーショナルの太字で且つ斜体</code></em></strong></span>
		</div><div class="para">
			等幅の太字やプロポーショナルの太字はいずれであっても斜体の場合は置換可能なテキストか変化するテキストを示します。 斜体は記載されている通りには入力しないテキスト、あるいは状況に応じて変化する出力テキストを表します。 例えば、
		</div><div class="blockquote"><blockquote class="blockquote"><div class="para">
				ssh を使用してリモートマシンに接続するには、 シェルプロンプトで <code class="command">ssh <em class="replaceable"><code>username</code></em>@<em class="replaceable"><code>domain.name</code></em></code> と入力します。 リモートマシンが <code class="filename">example.com</code> であり、 そのマシンで使用しているユーザー名が john なら <code class="command">ssh john@example.com</code> と入力します。
			</div><div class="para">
				<code class="command">mount -o remount <em class="replaceable"><code>file-system</code></em></code> コマンドは指定したファイルシステムを再マウントします。 例えば、 <code class="filename">/home</code> ファイルシステムを再マウントするコマンドは <code class="command">mount -o remount /home</code> になります。
			</div><div class="para">
				現在インストールされているパッケージのバージョンを表示するには、 <code class="command">rpm -q <em class="replaceable"><code>package</code></em></code> コマンドを使用します。 結果として次を返してきます、 <code class="command"><em class="replaceable"><code>package-version-release</code></em></code>。
			</div></blockquote></div><div class="para">
			上記の太字斜体の単語 — username、 domain.name、 file-system、 package、 version、 release に注目してください。 いずれもコマンドを発行するときに入力するテキスト用のプレースホルダーかシステムにより出力されるテキスト用のプレースホルダーになっています。
		</div><div class="para">
			タイトル表示のような標準的な使用の他、 斜体は新しい重要な用語が初めて出現する場合にも使用されます。 例えば、
		</div><div class="blockquote"><blockquote class="blockquote"><div class="para">
				Publican は <em class="firstterm">DocBook</em> の発行システムです。
			</div></blockquote></div></div><div class="section" id="idm12410608"><div class="titlepage"><div><div><h3 class="title" id="idm12410608">1.2. 引用における表記方法</h3></div></div></div><div class="para">
			端末の出力とソースコード一覧は、視覚的に周囲の文から区別されています。
		</div><div class="para">
			端末に送信される出力は <code class="computeroutput">mono-spaced roman</code> (等幅の Roman) にセットされるので以下のように表示されます。
		</div><pre class="screen">books        Desktop   documentation  drafts  mss    photos   stuff  svn
books_tests  Desktop1  downloads      images  notes  scripts  svgs</pre><div class="para">
			ソースコードの一覧も <code class="computeroutput">mono-spaced roman</code> (等幅の Roman) でセットされますが、以下のように強調表示されます。
		</div><pre class="programlisting">package org.<span class="perl_Function">jboss</span>.<span class="perl_Function">book</span>.<span class="perl_Function">jca</span>.<span class="perl_Function">ex1</span>;

<span class="perl_Keyword">import</span> javax.naming.InitialContext;

<span class="perl_Keyword">public</span> <span class="perl_Keyword">class</span> ExClient
{
   <span class="perl_Keyword">public</span> <span class="perl_DataType">static</span> <span class="perl_DataType">void</span> <span class="perl_Function">main</span>(String args[]) 
       <span class="perl_Keyword">throws</span> Exception
   {
      InitialContext iniCtx = <span class="perl_Keyword">new</span> InitialContext();
      Object         ref    = iniCtx.<span class="perl_Function">lookup</span>(<span class="perl_String">"EchoBean"</span>);
      EchoHome       home   = (EchoHome) ref;
      Echo           echo   = home.<span class="perl_Function">create</span>();

      System.<span class="perl_Function">out</span>.<span class="perl_Function">println</span>(<span class="perl_String">"Created Echo"</span>);

      System.<span class="perl_Function">out</span>.<span class="perl_Function">println</span>(<span class="perl_String">"Echo.echo('Hello') = "</span> + echo.<span class="perl_Function">echo</span>(<span class="perl_String">"Hello"</span>));
   }
}</pre></div><div class="section" id="idm48291792"><div class="titlepage"><div><div><h3 class="title" id="idm48291792">1.3. 注記および警告</h3></div></div></div><div class="para">
			情報が見過ごされないよう 3 種類の視覚的なスタイルを使用して注意を引いています。
		</div><div class="note"><div class="admonition_header"><h2>注記</h2></div><div class="admonition"><div class="para">
				注記は説明している部分に対するヒントや近道あるいは代替となる手段などになります。注記を無視しても悪影響はありませんが知っておくと便利なコツを見逃すことになるかもしれません。
			</div></div></div><div class="important"><div class="admonition_header"><h2>重要</h2></div><div class="admonition"><div class="para">
				重要ボックスは見逃しやすい事項を詳細に説明しています。現在のセッションにのみ適用される設定上の変更点、 更新を適用する前に再起動が必要なサービスなどがあります。重要ボックスを無視してもデータを喪失するような結果にはなりませんがイライラ感やフラストレーションが生じる可能性があります。
			</div></div></div><div class="warning"><div class="admonition_header"><h2>警告</h2></div><div class="admonition"><div class="para">
				警告は無視しないでください。警告を無視するとデータを喪失する可能性が非常に高くなります。
			</div></div></div></div></div><div xml:lang="ja-JP" class="section" id="feedback" lang="ja-JP"><div class="titlepage"><div><div><h2 class="title">2. Submitting Feedback and Getting Help</h2></div></div></div><a id="idm60632656" class="indexterm"></a><div class="para">
		If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a bug: <a href="https://issues.apache.org/jira/browse/CLOUDSTACK">https://issues.apache.org/jira/browse/CLOUDSTACK</a> against the component <span class="application"><strong>Doc</strong></span>.
	</div><div class="para">
		If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
	</div><div class="para">
		Better yet, feel free to submit a patch if you would like to enhance the documentation. Our documentation is, along with the rest of the Apache CloudStack source code, kept in the project's git repository.
	</div><div class="para">
		The most efficient way to get help with Apache CloudStack is to ask on the mailing lists.
	</div><div class="para">
		The Apache CloudStack project has mailing lists for users and developers. These are the official channels of communication for the project and are the best way to get answers about using and contributing to CloudStack. It's a good idea to subscribe to the users@cloudstack.apache.org mailing list if you've deployed or are deploying CloudStack into production, and even for test deployments.
	</div><div class="para">
		The CloudStack developer's mailing list (dev@cloudstack.apache.org) is for discussions about CloudStack development, and is the best list for discussing possible bugs in CloudStack. Anyone contributing to CloudStack should be on this mailing list.
	</div><div class="para">
		To posts to the lists, you'll need to be subscribed. See the <a href="http://cloudstack.apache.org/mailing-lists.html">CloudStack Web site</a> for instructions.
	</div></div></div><div xml:lang="ja-JP" class="chapter" id="chap-qig-Overview" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">第1章 概要</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="#sect-qig-Overview-What_building">1.1. 実際私たちは何を構築するのでしょうか？</a></span></dt><dt><span class="section"><a href="#sect-qig-Overview-hilevel">1.2. プロセスのハイレベルの概要</a></span></dt><dt><span class="section"><a href="#sect-qig-Overview-prereqs">1.3. 要件</a></span></dt></dl></div><div class="para">
		Infrastructure-as-a-Service (IaaS) のクラウドは、複雑な構築物になり得ます。また、定義上過剰な選択肢があるので、それがまた、経験のある管理者であったとしても、クラウドプラットフォームを構築する初心者には混乱を招きがちです。この runbook の目的は、単純な手順を提供し、CloudStack をできるだけトラブルなく動かせるようにすることです。
	</div><div class="section" id="sect-qig-Overview-What_building"><div class="titlepage"><div><div><h2 class="title">1.1. 実際私たちは何を構築するのでしょうか？</h2></div></div></div><div class="para">
			この runbook では、KVM, CnetOS 6.3, NFS ストレージ, フラットな Layer-2 ネットワーク上で layer-3 ネットワーク隔離（セキュリティグループ）, そしてそれら全てをひとつのマシン上で実行するという構成に焦点を絞っています。
		</div><div class="para">
			KVM（Kernel-based Virtual Machine）はLinuxカーネルの仮想化技術です。KVMは、ハードウェア仮想化機能を持つプロセッサー上で動作し、ネイティブの仮想化をサポートします。
		</div><div class="para">
			セキュリティグループは分散されたファイアーウォールとして動き、仮想マシンのグループへのアクセスをコントロールします。
		</div></div><div class="section" id="sect-qig-Overview-hilevel"><div class="titlepage"><div><div><h2 class="title">1.2. プロセスのハイレベルの概要</h2></div></div></div><div class="para">
			CloudStackのインストールを実際に始める前に、ベースとなるオペレーティングシステムのインストールから始めます。そして、それをいくつかのタイプのストレージとして使う NFS サーバーとして構成します。管理サーバーをインストールして、システム VM をダウンロードして、最後にエージェントソフトウェアをインストールします。そこまでできたら、クラウド全体を設定するために、CloudStack のウェブインターフェースで多くの時間を過ごすことになります。
		</div></div><div class="section" id="sect-qig-Overview-prereqs"><div class="titlepage"><div><div><h2 class="title">1.3. 要件</h2></div></div></div><div class="para">
			この runbook を完了するために、次のものが必要です：
			<div class="orderedlist"><ol><li class="listitem"><div class="para">
						少なくとも1台のハードウェア仮想化をサポートするコンピューター
					</div></li><li class="listitem"><div class="para">
						<a href="http://mirrors.kernel.org/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-minimal.iso"> CentOS 6.3 x86_64 最小インストール CD </a>
					</div></li><li class="listitem"><div class="para">
						xxx.xxx.xxx.1 で始まるゲートウェイを持つ /24 ネットワークで、DHCP が存在せず、かつ、CloudStack を実行しているコンピュータでは動的アドレスを使っていないこと。念のために言うと、簡単ためこの条件にしています。
					</div></li></ol></div>

		</div></div></div><div xml:lang="ja-JP" class="chapter" id="chap-qig-Environment" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">第2章 環境</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="#sect-qig-Environment-operatingsys">2.1. オペレーティングシステム</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-network">2.1.1. ネットワークの設定</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-hostname">2.1.2. ホスト名</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-selinux">2.1.3. SELinux</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-ntp">2.1.4. NTP</a></span></dt><dt><span class="section"><a href="#sect-qig-Environment-operatingsys-repoconfig">2.1.5. CLoudStack パッケージリポジトリの設定</a></span></dt></dl></dd><dt><span class="section"><a href="#sect-qig-Environment-nfs">2.2. NFS</a></span></dt></dl></div><div class="para">
		始める前に、CloudStackをインストールするための環境を準備する必要があります。ここから準備のためのステップを始めます。
	</div><div class="section" id="sect-qig-Environment-operatingsys"><div class="titlepage"><div><div><h2 class="title">2.1. オペレーティングシステム</h2></div></div></div><div class="para">
			CentOS 6.3 x86_64の最小インストールISOを使って、マシンにCentOSをインストールしましょう。このインストールでは、ほぼデフォルトの設定で大丈夫です。
		</div><div class="para">
			インストールが完了したら、新しくインストールしたマシンにSSH経由で、rootユーザーとして接続したくなるでしょう。注意しないといけないのは、本番環境ではrootログインは許可すべきでないということです。ですので、インストールと設定が済んだ後は、リモートログインをオフにするようにしましょう。
		</div><div class="section" id="sect-qig-Environment-operatingsys-network"><div class="titlepage"><div><div><h3 class="title">2.1.1. ネットワークの設定</h3></div></div></div><div class="para">
				デフォルトではネットワークはハードウェアに合った設定になっていないので、作成する環境で動くように設定する必要があります。ここでは、環境内に DHCP サーバーが無いことを前提にしているので、NIC を手動で設定する必要があります。また、これは検証目的ということもあるので、eth0 が唯一かつ使用する NIC であるということを前提とします。
			</div><div class="para">
				コンソール経由で接続し、root としてログインします。<code class="filename">/etc/sysconfig/network-scripts/ifcfg-eth0</code>ファイルをチェックします。これはデフォルトではこのようになっているはずです：
<pre class="screen">
DEVICE="eth0"
HWADDR="52:54:00:B9:A6:C0"
NM_CONTROLLED="yes"
ONBOOT="no"
</pre>

			</div><div class="para">
				残念ながら、この設定はネットワークに接続できる設定になっていませんし、CloudStack で使用するという目的にも適していません。このファイルを編集して、IPアドレスやネットマスクなどを以下の例のように修正したいと思います：
			</div><div class="important"><div class="admonition_header"><h2>ハードウェアアドレス</h2></div><div class="admonition"><div class="para">
					ハードウェアアドレス (MACアドレス) はここの例では使用しません。これは NIC に固有の設定なので、HWADDR の項目にすでに入っている値をそのまま使うべきです。
				</div></div></div><pre class="screen">
DEVICE=eth0
HWADDR=52:54:00:B9:A6:C0
NM_CONTROLLED=no
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.16.10.2
NETMASK=255.255.255.0
GATEWAY=172.16.10.1
DNS1=8.8.8.8
DNS2=8.8.4.4</pre><div class="note"><div class="admonition_header"><h2>IPアドレス</h2></div><div class="admonition"><div class="para">
					このドキュメント全体を通じて、作成しようとしているCloudStackの環境が/24のネットワークを持っていると仮定します。RFC 1918のネットワークであれば何でも構わないのですが、マシンアドレスがここで設定するものとマッチしているとみなして進めます。 ということで、ここでは<strong class="userinput"><code><em class="replaceable"><code>172.16.10</code></em>.2</code></strong> を設定しますが、もちろん、192.168.55.0/24 ネットワークを使うのであれば、<strong class="userinput"><code><em class="replaceable"><code>192.168.55</code></em>.2</code></strong>を設定しても構いません。
				</div></div></div><div class="para">
				ここまでで、設定ファイルは正しくセットアップできたので、いくつかのコマンドを実行し、ネットワークを開始する必要があります。
			</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">chkconfig</code> network on</code></strong></pre><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> network start</code></strong></pre></div><div class="section" id="sect-qig-Environment-operatingsys-hostname"><div class="titlepage"><div><div><h3 class="title">2.1.2. ホスト名</h3></div></div></div><div class="para">
				CloudStackではホスト名が正しく設定されている必要があります。もし、インストール時にデフォルトを選択している場合は、ホスト名は localhost.localdomainになっています。これをテストするためにこれを実行します：
			</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code>hostname --fqdn</code></strong></pre><div class="para">
				ここでは、これが返ってくるはずです：
			</div><pre class="screen">localhost</pre><div class="para">
				この状態を修正するために、<code class="filename">/etc/hosts</code>ファイルを修正してホスト名を設定します。この例のように修正してください：
<pre class="screen">
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
172.16.10.2 srvr1.cloud.priv
</pre>

			</div><div class="para">
				ファイルを修正したら、このコマンドでネットワークを再起動します：
			</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> network restart</code></strong></pre><div class="para">
				ここで、<code class="command">hostname --fqdn</code> コマンドを用いて再チェックし、FQDNが返ってくることを確認します。
			</div></div><div class="section" id="sect-qig-Environment-operatingsys-selinux"><div class="titlepage"><div><div><h3 class="title">2.1.3. SELinux</h3></div></div></div><div class="para">
				CloudStackが正しく動作するために、SELinuxはpermissiveに設定されている必要があります。ここでは今後の起動時の設定と、現在動作しているシステムの設定の両方を変更します。
			</div><div class="para">
				動作中のシステムのSELinuxをpermissiveに設定するために、以下のコマンドを実行します：
			</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">setenforce</code> 0</code></strong></pre><div class="para">
				この状態を保つために、<code class="filename">/etc/selinux/config</code> ファイルを以下に示す例のように設定し、permissiveの状態を反映させます。
			</div><pre class="screen">

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
</pre></div><div class="section" id="sect-qig-Environment-operatingsys-ntp"><div class="titlepage"><div><div><h3 class="title">2.1.4. NTP</h3></div></div></div><div class="para">
				NTPの設定は、クラウド内の全てのサーバーの時刻を同期させるために必要です。しかし、NTPはデフォルトではインストールされていません。なので、ここでNTPをインストールして設定します。インストレーションは以下のように行います：
			</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">yum</code> -y install ntp</code></strong></pre><div class="para">
				ここでの目的からすると、実際のデフォルトの設定で十分です。なので、単に有効化して起動時に開始するように設定すれば良いです。以下のように：
			</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">chkconfig</code> ntpd on</code></strong></pre><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> ntpd start</code></strong></pre></div><div class="section" id="sect-qig-Environment-operatingsys-repoconfig"><div class="titlepage"><div><div><h3 class="title">2.1.5. CLoudStack パッケージリポジトリの設定</h3></div></div></div><div class="para">
				CloudStack パッケージリポジトリを使うようにマシンを設定します。
				<div class="important"><div class="admonition_header"><h2>次のリポジトリは Apache CloudStack プロジェクトの公式なリポジトリではありません。</h2></div><div class="admonition"><div class="para">
						Apache CloudStack の公式なリリースはソースコードです。ですから、いわゆる「公式な」バイナリはありません。完全なインストールガイドには、ソースコードリリースを取得して、そこから RPM を生成し yum リポジトリを作る方法が記載されています。このガイドでは簡単のため、コミュニティで提供されている yum リポジトリのひとつを使います。
					</div></div></div>

			</div><div class="para">
				CloudStack リポジトリを追加するには、<code class="filename">/etc/yum.repos.d/cloudstack.repo</code> を作成し、次の内容を書き込みます。
			</div><pre class="programlisting">
[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
enabled=1
gpgcheck=0</pre></div></div><div class="section" id="sect-qig-Environment-nfs"><div class="titlepage"><div><div><h2 class="title">2.2. NFS</h2></div></div></div><div class="para">
			この環境では、NFSをプライマリーとセカンダリーストレージの両方で使用します。この用途のために、2つのNFS共有を設定します。まず、<span class="application"><strong>nfs-utils</strong></span>をインストールするところから始めます。
		</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">yum</code> install nfs-utils</code></strong></pre><div class="para">
			二つの異なる共有を提供するようにNFSを設定します。これは、比較的簡単な <code class="filename">/etc/exports</code>ファイルによって制御されています。以下のような内容になっていることを確認します：
		</div><pre class="screen">
/secondary *(rw,async,no_root_squash)
/primary   *(rw,async,no_root_squash)
</pre><div class="para">
			気づいたかもしれませんが、ここで定義されている2つのディレクトリは (まだ) システムに存在しません。以下のコマンドで、これらのディレクトリを作成し、パーミッションを正しく設定します：
		</div><pre class="screen">
<code class="prompt"># </code><strong class="userinput"><code><code class="command">mkdir</code> /primary</code></strong>
<code class="prompt"># </code><strong class="userinput"><code><code class="command">mkdir</code> /secondary</code></strong></pre><div class="para">
			CentOS 6.xリリースではNFSv4をデフォルトで使用します。NFSv4ではドメインの設定が全てのクライアントで一致している必要があります。今回の場合は、ドメインは cloud.priv ですので、<code class="filename">/etc/idmapd.conf</code>のドメインの設定がアンコメントされており、以下のように設定されていることを確認します。
		</div><pre class="screen">Domain = cloud.priv</pre><div class="para">
			<code class="filename">/etc/sysconfig/nfs</code>ファイルの設定値をアンコメントします。
		</div><pre class="screen">
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020
</pre><div class="para">
			ファイアーウォールを設定し、NFSの受信接続を許可します。 <code class="filename">/etc/sysconfig/iptables</code>ファイルを編集します。
		</div><pre class="screen">
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 32803 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT
-A INPUT -s 172.16.10.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT</pre><div class="para">
			以下のコマンドで、iptablesのサービスを再起動させます：
		</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> iptables restart</code></strong></pre><div class="para">
			NFSサービスを起動時に開始するように設定し、実際に今、以下のコマンドを実行してNFSサービスを開始します。
		</div><pre class="screen">
 <code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> rpcbind start</code></strong>
 <code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> nfs start</code></strong>
 <code class="prompt"># </code><strong class="userinput"><code><code class="command">chkconfig</code> rpcbind on</code></strong>
 <code class="prompt"># </code><strong class="userinput"><code><code class="command">chkconfig</code> nfs on</code></strong></pre></div></div><div xml:lang="ja-JP" class="chapter" id="chap-qig-Management" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">第3章 管理サーバーのインストール</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="#sect-qig-Management-database">3.1. データベースのインストールと設定</a></span></dt><dt><span class="section"><a href="#sect-qig-Management-installation">3.2. インストール</a></span></dt><dt><span class="section"><a href="#sect-qig-Management-templatesetup">3.3. システムテンプレートのセットアップ</a></span></dt></dl></div><div class="para">
		ここから、CloudStackの管理サーバーといくつかの関連するコンポーネントのインストールを開始します。
	</div><div class="section" id="sect-qig-Management-database"><div class="titlepage"><div><div><h2 class="title">3.1. データベースのインストールと設定</h2></div></div></div><div class="para">
			まず、 <span class="application"><strong>MySQL</strong></span> のインストールから始め、CloudStack が正しく動くようにいくつかのオプションを設定します。
		</div><div class="para">
			<span class="application"><strong>MySQL</strong></span> をインスト−ルするために、以下のコマンドを実行します：
<pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">yum</code> -y install mysql-server</code></strong></pre>

		</div><div class="para">
			<span class="application"><strong>MySQL</strong></span> のインストールが終了したら、 <code class="filename">/etc/my.cnf</code>の設定をいくつか変更します。具体的には、[mysqld] セクションに以下の設定を追加する必要があります。
<pre class="screen">
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW' 
</pre>

		</div><div class="para">
			ここまでで <span class="application"><strong>MySQL</strong></span> が正しく設定されたので、開始することができます。また、起動時に MySQL が開始されるように設定します。
<pre class="screen">
<code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> mysqld start</code></strong>
<code class="prompt"># </code><strong class="userinput"><code><code class="command">chkconfig</code> mysqld on</code></strong></pre>

		</div></div><div class="section" id="sect-qig-Management-installation"><div class="titlepage"><div><div><h2 class="title">3.2. インストール</h2></div></div></div><div class="para">
			マネジメントサーバをインストールします。次のコマンドを実行してください:
<pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">yum</code> -y install cloud-client</code></strong></pre>

		</div><div class="para">
			アプリケーション自体はインストールできたので、データベースをセットアップします。次のコマンドとオプションで実行します：
		</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">cloud-setup-databases</code> cloud:<em class="replaceable"><code>password</code></em>@localhost --deploy-as=root</code></strong></pre><div class="para">
			プロセスが終了すると、"CloudStack has successfully initialized the database."というようなメッセージが表示されます。
		</div><div class="para">
			データベースが作成されたので、管理サーバーのセットアップの最後のステップに入ることができます。以下のコマンドを実行してください：
		</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">cloud-setup-management</code></code></strong></pre></div><div class="section" id="sect-qig-Management-templatesetup"><div class="titlepage"><div><div><h2 class="title">3.3. システムテンプレートのセットアップ</h2></div></div></div><div class="para">
			CloudStackはいくつものシステムVMを使って、仮想マシンのコンソールへのアクセスや様々なネットワークサービス、ストレージの管理などの機能を提供します。このステップで、これらのシステムイメージを取得して、クラウドを起動する際に展開するための準備を行います。
		</div><div class="para">
			ここで、システムVMテンプレートをダウンロードし、いまマウントした共有に展開する必要があります。管理サーバーにはシステムVMイメージを正しく操作するためのスクリプトが含まれています。
		</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">/usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt</code> -m /secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -F</code></strong></pre><div class="para">
			これで管理サーバーのセットアップは終わりです。まだ CloudStack の設定は残っていますが、ハイパーバイザーのセットアップの後で行います。
		</div></div></div><div xml:lang="ja-JP" class="chapter" id="chap-qig-KVM" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">第4章 KVMのセットアップとインストール</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="#sect-qig-KVM-Prerequisites">4.1. 前提条件</a></span></dt><dt><span class="section"><a href="#sect-qig-KVM-Installation">4.2. インストール</a></span></dt><dd><dl><dt><span class="section"><a href="#sect-qig-KVM-Configuration">4.2.1. KVMの設定</a></span></dt></dl></dd></dl></div><div class="para">
		KVMがこれから使用するハイパーバイザーです。ここではすでにハイパーバイザーホストに対して行った初期設定を振り返り、エージェントソフトウェアのインストールを取り上げます。追加のKVMノードをCloudStack環境に追加する場合は同じ手順を使うことができます。
	</div><div class="section" id="sect-qig-KVM-Prerequisites"><div class="titlepage"><div><div><h2 class="title">4.1. 前提条件</h2></div></div></div><div class="para">
			ここでは管理サーバーをコンピュートノードとしても使用します。つまり、管理サーバーをセットアップした際に、すでに多くの必要な事前手順はすでに実行しているということです。しかし、明確にするために、ここにリストします。そのステップは：
			<div class="orderedlist"><ol><li class="listitem"><div class="para">
						<a class="xref" href="#sect-qig-Environment-operatingsys-network">「ネットワークの設定」</a>
					</div></li><li class="listitem"><div class="para">
						<a class="xref" href="#sect-qig-Environment-operatingsys-hostname">「ホスト名」</a>
					</div></li><li class="listitem"><div class="para">
						<a class="xref" href="#sect-qig-Environment-operatingsys-selinux">「SELinux」</a>
					</div></li><li class="listitem"><div class="para">
						<a class="xref" href="#sect-qig-Environment-operatingsys-ntp">「NTP」</a>
					</div></li><li class="listitem"><div class="para">
						<a class="xref" href="#sect-qig-Environment-operatingsys-repoconfig">「CLoudStack パッケージリポジトリの設定」</a>
					</div></li></ol></div>

		</div><div class="para">
			もちろん、あなたは管理サーバー用にそれをする必要はありません。しかし、どんな追加のホストも上記の手順を終える必要があるでしょう。
		</div></div><div class="section" id="sect-qig-KVM-Installation"><div class="titlepage"><div><div><h2 class="title">4.2. インストール</h2></div></div></div><div class="para">
			KVM agent のインストール自体はコマンドひとつで終わる簡単なものですが、その後いくつか設定しなければいけません。
		</div><pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">yum</code> -y install cloud-agent</code></strong></pre><div class="section" id="sect-qig-KVM-Configuration"><div class="titlepage"><div><div><h3 class="title">4.2.1. KVMの設定</h3></div></div></div><div class="para">
				KVM 設定には libvirt と QEMU の二つのパートがあります。
			</div><div class="section" id="sect-qig-KVM-Configuration-qemu"><div class="titlepage"><div><div><h4 class="title">4.2.1.1. QEMU 設定</h4></div></div></div><div class="para">
					KVMの設定は一つの項目しかないので、比較的シンプルです。ここではQEMUのVNCの設定を変更する必要があります。<code class="filename">/etc/libvirt/qemu.conf</code>を編集して、以下の行が存在し、コメントアウトされていないことを確認します。
<pre class="screen">vnc_listen=0.0.0.0</pre>

				</div></div><div class="section" id="sect-qig-KVM-Configuration-libvirt"><div class="titlepage"><div><div><h4 class="title">4.2.1.2. Libvirt 設定</h4></div></div></div><div class="para">
					CloudStack は仮想マシンの管理に libvirt を使います。ですから libvirt が正しく設定されていなければなりません。Libvirt は cloud-agent の dependency に指定されているので、インストール済みになっているはずです。
				</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
							Live migration ができるためには、libvirt は非セキュアな TCP 接続を開いていなければなりません。Multicast DNS 広告を試みるオプションも無効化する必要があります。両方とも <code class="filename">/etc/libvirt/libvirtd.conf</code> で設定できます。
						</div><div class="para">
							次のパラメータを設定します:
						</div><pre class="programlisting">listen_tls = 0</pre><pre class="programlisting">listen_tcp = 1</pre><pre class="programlisting">tcp_port = "16059"</pre><pre class="programlisting">auth_tcp = "none"</pre><pre class="programlisting">mdns_adv = 0</pre></li><li class="listitem"><div class="para">
							libvirtd.conf で "listen_tcp" を有効にするだけではなく、パラメータも変更しなければいけません:
						</div><div class="para">
							RHEL や CentOS では <code class="filename">/etc/sysconfig/libvirtd</code> を修正します:
						</div><div class="para">
							次の行のコメントアウトをはずします:
						</div><pre class="programlisting">#LIBVIRTD_ARGS="--listen"</pre><div class="para">
							Ubuntu では <code class="filename">/etc/init/libvirt-bin.conf</code> を修正します。
						</div><div class="para">
							次の行を変更します（ファイルの最後）:
						</div><pre class="programlisting">exec /usr/sbin/libvirtd -d</pre><div class="para">
							(-l を追加)
						</div><pre class="programlisting">exec /usr/sbin/libvirtd -d -l</pre></li><li class="listitem"><div class="para">
							libvirt の再起動
						</div><div class="para">
							RHEL や CentOS では:
						</div><pre class="programlisting"><code class="command">$ service libvirtd restart</code></pre><div class="para">
							Ubuntu では:
						</div><pre class="programlisting"><code class="command">$ service libvirt-bin restart</code></pre></li></ol></div></div><div class="section" id="sect-qig-KVM-Configuration-finish"><div class="titlepage"><div><div><h4 class="title">4.2.1.3. KVM 設定完了</h4></div></div></div><div class="para">
					これで KVM のインストレーションと設定が終了です。ここで、CloudStackのUIに戻り、クラウド環境の実際の設定に入っていきます。
				</div></div></div></div></div><div xml:lang="ja-JP" class="chapter" id="chap-qig-Config" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">第5章 設定</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="#sect-qig-Config-UI_Access">5.1. UIアクセス</a></span></dt><dt><span class="section"><a href="#sect-qig-Config-Zone">5.2. ゾーンのセットアップ</a></span></dt><dt><span class="section"><a href="#sect-qig-Config-Pod">5.3. ポッドの設定</a></span></dt><dt><span class="section"><a href="#Runbook-config-cluster">5.4. クラスター</a></span></dt><dd><dl><dt><span class="section"><a href="#Runbook-config-cluster-pristorage">5.4.1. プライマリーストレージ</a></span></dt><dt><span class="section"><a href="#Runbook-config-cluster-secstorage">5.4.2. セカンダリーストレージ</a></span></dt></dl></dd></dl></div><div class="para">
		前に記述したように、デフォルトではセキュリティグループを使用して分離を提供します。これは、フラットなLayer-2ネットワークを使用するということを意味します。また、セットアップを単純化することで、クイックインストーラーを使用できるということも意味します。
	</div><div class="section" id="sect-qig-Config-UI_Access"><div class="titlepage"><div><div><h2 class="title">5.1. UIアクセス</h2></div></div></div><div class="para">
			CloudStackのWebインターフェースにアクセスするためには、単にブラウザにhttp://<em class="replaceable"><code>172.16.10.</code></em>2:8080/clientを指定すればよいです。デフォルトのユーザー名は'admin'で、デフォルトのパスワードは'password'です。スプラッシュスクリーンでは、CloudStackのセットアップを行う、いくつかのオプションを選択することができます。ここでは、<code class="option">基本インストールを実行する</code> オプションを選びます。
		</div><div class="para">
			ここで管理者ユーザーのパスワードを変更するように要求するプロンプトが表示されますので、変更してください。
		</div></div><div class="section" id="sect-qig-Config-Zone"><div class="titlepage"><div><div><h2 class="title">5.2. ゾーンのセットアップ</h2></div></div></div><div class="para">
			ゾーンはCloudStackにおける最大の組織単位で、1つ作成していきます。現在この画面が表示されているはずです。5つの情報を入力する必要があります。
			<div class="orderedlist"><ol><li class="listitem"><div class="para">
						名前 - ここでは作成するクラウドに"Zone1”と設定します。
					</div></li><li class="listitem"><div class="para">
						外部DNS 1 - ここでは作成するクラウドに'8.8.8.8'と設定します。
					</div></li><li class="listitem"><div class="para">
						外部DNS 2 - ここでは作成するクラウドに’8.8.4.4'と設定します。
					</div></li><li class="listitem"><div class="para">
						内部DNS 1 - ここでは作成するクラウドに'8.8.8.8'と設定します。
					</div></li><li class="listitem"><div class="para">
						内部DNS 2 - ここでは作成するクラウドに'8.8.4.4'と設定します。
					</div></li></ol></div>

		</div><div class="note"><div class="admonition_header"><h2>DNS設定の注意</h2></div><div class="admonition"><div class="para">
				CloudStackは内部と外部のDNSを区別しています。内部DNSは内部のみのホスト名、例えば、NFSサーバーのDNS名などを解決できることを想定しています。外部DNSはゲストVMがパブリックのIPアドレスを解決するために提供されます。両方のタイプに同じDNSサーバーを指定することも可能ですが、もしそうするなら、そのDNSサーバーは内部のIPもパブリックのIPも両方解決できる必要があります。この手順では、内部リソースには名前を使用せず、実際には同じ外部のリソースを見るように設定するので、DNSサーバーを追加することを要件には含めていません。
			</div></div></div></div><div class="section" id="sect-qig-Config-Pod"><div class="titlepage"><div><div><h2 class="title">5.3. ポッドの設定</h2></div></div></div><div class="para">
			ゾーンを追加したので、次のステップでは、ポッドに関する情報を尋ねられます。それは4つのアイテムで構成されています。
			<div class="orderedlist"><ol><li class="listitem"><div class="para">
						名前 - ここでは「Pod1」を使用します。
					</div></li><li class="listitem"><div class="para">
						ゲートウェイ - 「<em class="replaceable"><code>172.16.10</code></em>.1」をゲートウェイとして使用します。
					</div></li><li class="listitem"><div class="para">
						ネットマスク - 「255.255.255.0」を使用します。
					</div></li><li class="listitem"><div class="para">
						システムIPのレンジ - 「172.16.10.10-172.16.10.20」を使用します。
					</div></li><li class="listitem"><div class="para">
						ゲストのゲートウェイ - 「<em class="replaceable"><code>172.16.10</code></em>.1」を使用します。
					</div></li><li class="listitem"><div class="para">
						ゲストのネットマスク - 「255.255.255.0」を使用します。
					</div></li><li class="listitem"><div class="para">
						ゲストIPのレンジ - 「 <em class="replaceable"><code>172.16.10.</code></em>30-<em class="replaceable"><code>172.16.10.</code></em>200」を使用します。
					</div></li></ol></div>

		</div></div><div class="section" id="Runbook-config-cluster"><div class="titlepage"><div><div><h2 class="title">5.4. クラスター</h2></div></div></div><div class="para">
			ゾーンを追加したので、後はクラスターについての設定をいくつか追加するだけです。
			<div class="orderedlist"><ol><li class="listitem"><div class="para">
						名前 - 「Cluster1」を使用します。
					</div></li><li class="listitem"><div class="para">
						ハイパーバイザー - 「KVM」を選びます。
					</div></li></ol></div>

		</div><div class="para">
			ここではクラスターに最初のホストを追加するように指示されます。必要なのはほんのちょっとの情報だけです。
			<div class="orderedlist"><ol><li class="listitem"><div class="para">
						ホスト名 - DNSサーバーを設定してないので、「<em class="replaceable"><code>172.16.10.</code></em>2」を設定します。
					</div></li><li class="listitem"><div class="para">
						ユーザー名 - 'root' を使用します。
					</div></li><li class="listitem"><div class="para">
						パスワード - root ユーザーのOSのパスワードを入力します。
					</div></li></ol></div>

		</div><div class="section" id="Runbook-config-cluster-pristorage"><div class="titlepage"><div><div><h3 class="title">5.4.1. プライマリーストレージ</h3></div></div></div><div class="para">
				クラスターが設定できたので、プライマリーストレージの情報が聞かれます。ストレージタイプとして「NFS」を選択し、フィールドに以下の値を入力します：
				<div class="orderedlist"><ol><li class="listitem"><div class="para">
							名前 - 「Primary1」を使用します。
						</div></li><li class="listitem"><div class="para">
							サーバー - 「<em class="replaceable"><code>172.16.10.</code></em>2」を使用します。
						</div></li><li class="listitem"><div class="para">
							パス - 「/primary」を指定します。
						</div></li></ol></div>

			</div></div><div class="section" id="Runbook-config-cluster-secstorage"><div class="titlepage"><div><div><h3 class="title">5.4.2. セカンダリーストレージ</h3></div></div></div><div class="para">
				これが新しいゾーンの場合、セカンダリーストレージの情報を求められます。以下のように入力します：
				<div class="orderedlist"><ol><li class="listitem"><div class="para">
							NFSサーバー - 「<em class="replaceable"><code>172.16.10.</code></em>2」を使用します。
						</div></li><li class="listitem"><div class="para">
							パス - /secondaryを使用します。
						</div></li></ol></div>

			</div><div class="para">
				「起動」をクリックすると、クラウドのセットアップが開始されます。インターネット接続の早さによりますが、セットアップが完了するまでには数分かかります。
			</div></div></div></div><div xml:lang="ja-JP" class="appendix" id="appe-qig-Revision_History" lang="ja-JP"><div class="titlepage"><div><div><h1 class="title">変更履歴</h1></div></div></div><div class="para">
		<div class="revhistory"><table summary="改訂履歴"><tr><th align="left" valign="top" colspan="3"><strong>改訂履歴</strong></th></tr><tr><td align="left">改訂 1-0</td><td align="left">Fri Feb 1 2013</td><td align="left"> </td></tr><tr><td align="left" colspan="3">
					<table border="0" summary="Simple list" class="simplelist"><tr><td>Apache CloudStack 4.0.1 へのアップデート</td></tr></table>

				</td></tr><tr><td align="left">改訂 0-0</td><td align="left">Mon Jun 25 2012</td><td align="left"> </td></tr><tr><td align="left" colspan="3">
					<table border="0" summary="Simple list" class="simplelist"><tr><td>publican での初版</td></tr></table>

				</td></tr></table></div>

	</div></div></div></body></html>
