CentOS 7
Sponsored Link

oVirt : oVirt管理サーバーの設定
2015/07/12
 
RHEV (Red Hat Enterprise Virtualization) の オープンソース実装である oVirt のインストールと設定です。
ここでは以下の環境を例に設定します。
                                        +----------------------+
                               10.0.0.30| [ oVirt Management ] |
                                  +-----+    dlp.srv.world     |
+-----------------+               |     |                      |
|                 |10.0.0.100     |     +----------------------+
| Client Computer |---------------+
|                 |               |     +----------------------+
+-----------------+               |     |    [ oVirt Node ]    |
                                  +-----+   node01.srv.world   |
                               10.0.0.51|                      |
                                        +----------------------+

[1] oVirt管理サーバーを設定します。
[root@dlp ~]#
yum -y install http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm
[root@dlp ~]#
yum -y install ovirt-engine
[root@dlp ~]#
touch /etc/exports

[root@dlp ~]#
systemctl start rpcbind nfs-server

[root@dlp ~]#
engine-setup

[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', 
          '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20150710215442-svdtg0.log
          Version: otopi-1.3.2 (otopi-1.3.2-1.el7.centos)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization

          --== PRODUCT OPTIONS ==--

               
# そのまま Enter

          Configure Engine on this host (Yes, No) [Yes]:
               
# そのまま Enter

          Configure WebSocket Proxy on this host (Yes, No) [Yes]:

          --== PACKAGES ==--

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

          --== ALL IN ONE CONFIGURATION ==--


          --== NETWORK CONFIGURATION ==--

          Setup can automatically configure the firewall on this system.
          Note: automatic configuration of the firewall may overwrite current settings.
               
# そのまま Enter

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

                Firewall manager to configure (firewalld):
firewalld

          [ INFO  ] firewalld will be configured as firewall manager.
               
# 自ホストの FQDN を指定して Enter (通常は自動認識されているのでそのまま Enter)

          Host fully qualified DNS name of this server [dlp.srv.world]:

          --== 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 ==--

               
# oVirt 管理者パスワードを設定

          Engine admin password:
          Confirm engine admin password:
               
# アプリケーションモードを選択 (ここでは Both を選択)

          Application mode (Virt, Gluster, Both) [Both]:

          --== PKI CONFIGURATION ==--

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

          Organization name for certificate [srv.world]:

          --== APACHE CONFIGURATION ==--

          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]:
          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]:

          --== SYSTEM CONFIGURATION ==--

               
# 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 - note that the default will restrict access to dlp.srv.world only, 
          for security reasons [dlp.srv.world(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 ==--

          Application mode                        : both
          Firewall manager                        : firewalld
          Update Firewall                         : True
          Host FQDN                               : dlp.srv.world
          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
          Engine installation                     : True
          NFS setup                               : True
          PKI organization                        : srv.world
          NFS mount point                         : /var/lib/exports/iso
          NFS export ACL                          : dlp.srv.world(rw)
          Configure local Engine database         : True
          Set application as default page         : True
          Configure Apache SSL                    : True
          Configure WebSocket Proxy               : True
          Engine Host FQDN                        : dlp.srv.world

               
# OK であれば Enter

          Please confirm installation settings (OK, Cancel) [OK]:
[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration
[ INFO  ] Stage: Package installation

.....
.....

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

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

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

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

[root@dlp ~]#
vi /etc/exports.d/ovirt-engine-iso-domain.exports
# データ用ストレージの共有設定を追記 (ACL は必要に応じて変更)

/var/lib/exports/iso    10.0.0.0/24(rw)
/var/lib/exports/data   10.0.0.0/24(rw)

[root@dlp ~]#
systemctl restart rpc-statd nfs-server

 
Tweet