管理サーバ
Last-modified: Sun, 08 Dec 2013 15:47:23 JST (4159d)
Top > 管理サーバ
管理サーバの構築
- 事前準備として、DNSにホスト名とIPを登録しておく。
- ここでは、ovirt.localdomainとした。
- CentOS6.4(X86-64)をインストールする。 (6.4は必須!)
- IPアドレスとホスト名は 必ずDNSで正引き、逆引きが可能であること!(必須事項)
- 最小インストールする。
- NICは最低1つあればOK。複数あると管理ネットワーク分けれるので便利。
- HDDは最低限/bootと/とSWAPがあればOK。
- ISO置き場用NFSも兼ねるので、HDDに余裕があるほうが良いけど、最近のなら容量は問題ないよね。
- 最低メモリは4GByte必要。
- CPUの仮想支援は特に必要ない。
- アップデート
yum -y update
- 再起動
reboot
- サービスの起動停止が楽になるので、BASEパッケージをインストール
yum -y groupinstall base
- サービスの起動
- ntpdサービス起動。iptablesは切っておく。
- setupコマンドで行っても良い
chkconfig ntpd on chkconfig iptables off chkconfig ip6tables off
- Ovirtリポジトリ追加
yum localinstall http://ovirt.org/releases/ovirt-release-el.noarch.rpm
- epelリポジトリ追加
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Ovirtengineインストール
yum install -y ovirt-engine
- NFSを入れる為、AllinOneプラグインインストール
yum install -y ovirt-engine-setup-plugin-allinone
- セットアップ
engine-setup
[ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-aio.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf'] Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20131109232823.log Version: otopi-1.1.2 (otopi-1.1.2-1.el6) [WARNING] Cannot detect if hardware supports virtualization [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization Configure VDSM on this host? (Yes, No) [No]: <-----そのままEnter --== PACKAGES ==-- [ INFO ] Checking for product updates... [ INFO ] No product updates found --== NETWORK CONFIGURATION ==-- Host fully qualified DNS name of this server [ovirt.localdomain]: <-----そのままEnter iptables was detected on your computer. Do you wish Setup to configure it? (yes, no) [yes]: <-----そのままEnter --== DATABASE CONFIGURATION ==-- Where is the database located? (Local, Remote) [Local]: <-----そのままEnter Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql, or prefer to perform that manually? (Automatic, Manual) [Automatic]: <-----そのままEnter Using existing credentials --== OVIRT ENGINE CONFIGURATION ==-- Engine admin password: <-----Webログイン用パスワードを入力 Confirm engine admin password: <-----パスワードを入力 [WARNING] Password is weak: 辞書の単語に基づいています Use weak password? (Yes, No) [No]: yes <-----yesと応答(デモ環境なので) Application mode (Both, Virt, Gluster) [Both]: <-----そのままEnter Default storage type: (NFS, FC, ISCSI, POSIXFS) [NFS]: <-----そのままEnter --== PKI CONFIGURATION ==-- Organization name for certificate [localdomain]: <-----そのままEnter --== APACHE CONFIGURATION ==-- Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications. Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]: <-----そのままEnter Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]: <-----そのままEnter --== SYSTEM CONFIGURATION ==-- Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [Yes]: <-----そのままEnter Local ISO domain path [/var/lib/exports/iso]: <-----そのままEnter Local ISO domain name [ISO_DOMAIN]: <-----そのままEnter --== END OF CONFIGURATION ==-- [ INFO ] Stage: Setup validation [WARNING] Less than 16384MB of memory is available --== CONFIGURATION PREVIEW ==-- Database name : engine Database secured connection : False Database host : localhost Database user name : engine Database host name validation : False Datbase port : 5432 NFS setup : True PKI organization : localdomain NFS mount point : /var/lib/exports/iso Application mode : both Firewall manager : iptables Host FQDN : ovirt.localdomain Datacenter storage type : nfs Configure local database : True Set application as default page : True Configure Apache SSL : True Configure VDSM on this host : True Local storage domain directory : /var/lib/images Please confirm installation settings (OK, Cancel) [OK]:<-----そのままEnter
- 管理ページにアクセス
- https://ovirt.localdomain/
にアクセスします。
- Administration Portalにアクセスします。
- ユーザID:admin、パスワードはインストール時に設定したものでログインします。
- こんな画面が表示されればOK
ISO格納用NFSの設定
- ISO格納用NFSの設定を行います。
vi /etc/sysconfig/nfs
- 最終行に以下の内容を追記
NFS4_SUPPORT="no"
- 最終行に以下の内容を追記
- NFSのアクセス権設定
vi /etc/exports /var/lib/exports/iso 0.0.0.0/0.0.0.0(rw,async)
- NFS再起動
/etc/rc.d/init.d/nfs restart
- 念のため再起動。必要なサービスが起動していることを確認。
reboot
Counter: 1008,
today: 1,
yesterday: 1
このページの参照回数は、1008です。