CentOS 6
Sponsored Link

oVirt - oVirt管理サーバーの設定2014/06/15

 
Red Hat Enterprise Virtualization の オープンソース版である oVirt のインストールと設定です。
ここでは以下の環境を例に設定します。
(1) ovirt.srv.world     [10.0.0.50]   ⇒   oVirt管理サーバー ( メモリ4G以上 )
(2) node01.srv.world     [10.0.0.40]   ⇒   oVirtノード ( KVMホスト構築済み )
(3) client.srv.world     [10.0.0.30]   ⇒   クライアントマシン ( デスクトップ環境構築済み )
oVirt管理サーバー, oVirtノードは DNSでの正引き・逆引きが正常にできるようにしておいてください。
[1] まずは oVirt管理サーバーの設定です。
[root@ovirt ~]#
yum -y install http://resources.ovirt.org/pub/yum-repo/ovirt-release34.rpm
[root@ovirt ~]#
yum -y install ovirt-engine
[root@ovirt ~]#
engine-setup

[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20140614220853-b3t8wu.log
          Version: otopi-1.2.1 (otopi-1.2.1-1.el6)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization

          --== PRODUCT OPTIONS ==--


          --== PACKAGES ==--

[ INFO  ] Checking for product updates...
[ INFO  ] No product updates found

          --== NETWORK CONFIGURATION ==--

   
# 自ホストの FQDN を指定して Enter (通常は自動認識されているのでそのまま Enter)

          Host fully qualified DNS name of this server [ovirt.srv.world]:
          Setup can automatically configure the firewall on this system.
          Note: automatic configuration of the firewall may overwrite current settings.
   
# Yes のまま Enter

          Do you want Setup to configure the firewall? (Yes, No) [Yes]:
          The following firewall managers were detected on this system: iptables
   
# iptables を指定

    Firewall manager to configure (iptables):
iptables

[ INFO  ] iptables will be configured as firewall manager.

          --== DATABASE CONFIGURATION ==--

   
# DB をローカルかリモートにするか選択 (ここでは Local を選択)

          Where is the Engine database located? (Local, Remote) [Local]:
          Setup can configure the local postgresql server automatically for the engine to run. 
          This may conflict with existing applications.
   
# DB の構成を自動設定か手動設定かを選択 (ここでは Automatic を選択)

          Would you like Setup to automatically configure postgresql and create Engine database,
           or prefer to perform that manually? (Automatic, Manual) [Automatic]:

          --== OVIRT ENGINE CONFIGURATION ==--

   
# アプリケーションモードを選択 (ここでは Both を選択)

          Application mode (Both, Virt, Gluster) [Both]:
   
# ストレージタイプを選択 (ここでは NFS を選択)

          Default storage type: (NFS, FC, ISCSI, POSIXFS, GLUSTERFS) [NFS]:
   
# oVirt 管理者パスワードを設定

          Engine admin password:
          Confirm engine admin password:

          --== PKI CONFIGURATION ==--

   
# 証明書の組織名を指定 (通常は自動認識されている)

          Organization name for certificate [srv.world]:

          --== APACHE CONFIGURATION ==--

          Setup can configure apache to use SSL using a certificate issued from the internal CA.
   
# 証明書の構成を自動設定か手動設定かを選択 (ここでは Automatic を選択)

          Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
          Setup can configure the default page of the web server to present the application home page. 
          This may conflict with existing applications.
   
# Web サーバーのデフォルトページをアプリケーションにするかを選択 (ここでは Yes を選択)

          Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]:

          --== SYSTEM CONFIGURATION ==--

   
# Web プロキシを構成するかを選択 (ここでは Yes を選択)

          Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:
   
# ISO Domain としてローカルに NFS 共有を構成するかを選択 (ここでは Yes を選択)

          Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [Yes]:
   
# ローカルの ISO Domain のパス (ここではデフォルトのまま Enter)

          Local ISO domain path [/var/lib/exports/iso]:
   
# ローカルの ISO Domain のACL (ここではデフォルトのまま Enter)

          Local ISO domain ACL [0.0.0.0/0.0.0.0(rw)]:
   
# ローカルの ISO Domain の名前 (ここではデフォルトのまま Enter)

          Local ISO domain name [ISO_DOMAIN]:

          --== MISC CONFIGURATION ==--


          --== END OF CONFIGURATION ==--

[ INFO  ] Stage: Setup validation
[WARNING] Less than 16384MB of memory is available

          --== CONFIGURATION PREVIEW ==--

          Engine database name                    : engine
          Engine database secured connection      : False
          Engine database host                    : localhost
          Engine database user name               : engine
          Engine database host name validation    : False
          Engine database port                    : 5432
          NFS setup                               : True
          PKI organization                        : srv.world
          Application mode                        : both
          Firewall manager                        : iptables
          Update Firewall                         : True
          Configure WebSocket Proxy               : True
          Host FQDN                               : ovirt.srv.world
          NFS export ACL                          : 0.0.0.0/0.0.0.0(rw)
          NFS mount point                         : /var/lib/exports/iso
          Datacenter storage type                 : nfs
          Configure local Engine database         : True
          Set application as default page         : True
          Configure Apache SSL                    : True

   
# OK ならばそのまま Enter)

          Please confirm installation settings (OK, Cancel) [OK]:
[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration
[ INFO  ] Stage: Package installation
[ INFO  ] Stage: Misc configuration
[ INFO  ] Initializing PostgreSQL
[ INFO  ] Creating PostgreSQL 'engine' database
[ INFO  ] Configuring PostgreSQL
[ INFO  ] Creating Engine database schema
[ INFO  ] Creating CA
[ INFO  ] Configuring WebSocket Proxy
[ INFO  ] Generating post install configuration file '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
[ INFO  ] Stage: Transaction commit
[ INFO  ] Stage: Closing up

          --== SUMMARY ==--

[WARNING] Less than 16384MB of memory is available
          SSH fingerprint: DE:1A:BA:0F:55:E7:D2:0C:0D:BD:ED:DA:6A:AD:9B:D9
          Internal CA E4:DF:4B:09:87:7C:0C:E4:19:2A:D9:4B:BC:F9:47:DB:37:CD:E5:F9
          Web access is enabled at:
              http://ovirt.srv.world:80/ovirt-engine
              https://ovirt.srv.world:443/ovirt-engine
          Please use the user "admin" and password specified in order to login

          --== END OF SUMMARY ==--

[ INFO  ] Starting engine service
[ INFO  ] Restarting httpd
[ INFO  ] Restarting nfs services
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140614220853-b3t8wu.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140614221352-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ INFO  ] Execution of setup completed successfully

[root@ovirt ~]#
vi /etc/sysconfig/nfs
# 最終行に追記

NFS4_SUPPORT="no"
[root@ovirt ~]#
mkdir /var/lib/exports/data

[root@ovirt ~]#
chown vdsm:kvm /var/lib/exports/data

[root@ovirt ~]#
vi /etc/exports
# データ用ストレージを追記

/var/lib/exports/iso    0.0.0.0/0.0.0.0(rw)
/var/lib/exports/data   0.0.0.0/0.0.0.0(rw)

[root@ovirt ~]#
/etc/rc.d/init.d/nfs restart

Shutting down NFS daemon:                [  OK  ]
Shutting down NFS mountd:                [  OK  ]
Shutting down NFS services:              [  OK  ]
Shutting down RPC idmapd:                [  OK  ]
Starting NFS services:                   [  OK  ]
Starting NFS mountd:                     [  OK  ]
Starting NFS daemon:                     [  OK  ]
Starting RPC idmapd:                     [  OK  ]
関連コンテンツ