CentOS 7
Sponsored Link

oVirt 4.1 : 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-release41.rpm
[root@dlp ~]#
yum -y install ovirt-engine
[root@dlp ~]#
touch /etc/exports

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

[root@dlp ~]#
systemctl enable 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 Image I/O Proxy on this host? (Yes, No) [Yes]:
          # そのまま Enter
          Configure WebSocket Proxy on this host (Yes, No) [Yes]:
          Please note: Data Warehouse is required for the engine. 
          If you choose to not configure it on this host, you have to configure it on a remote host, 
          and then configure the engine on this host so that it can access the database of the remote Data Warehouse host.
          # そのまま Enter
          Configure Data Warehouse on this host (Yes, No) [Yes]:
          # そのまま Enter
          Configure VM Console Proxy on this host (Yes, No) [Yes]:

          --== PACKAGES ==--

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

          --== NETWORK CONFIGURATION ==--
          # 自身のホスト名を確認して Enter
          Host fully qualified DNS name of this server [dlp.srv.world]:
          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]:
          
[ INFO  ] firewalld will be configured as firewall manager.

          --== DATABASE CONFIGURATION ==--

          # DB をローカルかリモートにするか選択 (ここでは Local を選択)
          Where is the DWH database located? (Local, Remote) [Local]:
          Setup can configure the local postgresql server automatically for the DWH to run. 
          This may conflict with existing applications.
          Would you like Setup to automatically configure postgresql and create DWH database, 
          # DB の構成を自動設定か手動設定かを選択 (ここでは Automatic を選択)
          or prefer to perform that manually? (Automatic, Manual) [Automatic]:
          # Engine 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.
          Would you like Setup to automatically configure postgresql and create Engine database, 
          # Engine DB の構成を自動設定か手動設定かを選択 (ここでは Automatic を選択)
          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]:

          --== STORAGE CONFIGURATION ==--
          # デフォルト SAN を消去するか否か (ここでは No を選択)
          Default SAN wipe after delete (Yes, No) [No]:

          --== 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) [No]: Yes
          Local ISO domain path [/var/lib/exports/iso]:
          
          Please provide the ACL for the Local ISO domain.
          See the exports(5) manpage for the format.
          Examples:
          - To allow access for host1, host2 and host3, input: host1(rw) host2(rw) host3(rw)
          - To allow access to the entire Internet, input: *(rw)

          For more information, see: http://www.ovirt.org/Troubleshooting_NFS_Storage_Issues
          # NFS 共有のACLを設定 : 上記説明例に従って必要なACLを設定
          Local ISO domain ACL: 10.0.0.0/24(rw)
          # ISOドメインの名称
          Local ISO domain name [ISO_DOMAIN]:

          --== MISC CONFIGURATION ==--
          # Basic を選択
          Please choose Data Warehouse sampling scale:
          (1) Basic
          (2) Full
          (1, 2)[1]:

          --== END OF CONFIGURATION ==--

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

          --== CONFIGURATION PREVIEW ==--
          Application mode                        : both
          Default SAN wipe after delete           : False
          Firewall manager                        : firewalld
          Update Firewall                         : True
          Host FQDN                               : dlp.srv.world
          Configure local Engine database         : True
          Set application as default page         : True
          Configure Apache SSL                    : True
          Engine database secured connection      : False
          Engine database user name               : engine
          Engine database name                    : engine
          Engine database host                    : localhost
          Engine database port                    : 5432
          Engine database host name validation    : False
          Engine installation                     : True
          NFS setup                               : True
          PKI organization                        : srv.world
          NFS export ACL                          : *(rw)
          NFS mount point                         : /var/lib/exports/iso
          DWH installation                        : True
          DWH database secured connection         : False
          DWH database host                       : localhost
          DWH database user name                  : ovirt_engine_history
          DWH database name                       : ovirt_engine_history
          DWH database port                       : 5432
          DWH database host name validation       : False
          Configure local DWH database            : True
          Configure Image I/O Proxy               : True
          Configure VMConsole Proxy               : True
          Configure WebSocket Proxy               : True
          # OK であればそのまま進む
          Please confirm installation settings (OK, Cancel) [OK]:
[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping dwh service
[ INFO  ] Stopping Image I/O Proxy service
[ INFO  ] Stopping vmconsole-proxy service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration

.....
.....

[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