Total de visualizações de página

quinta-feira, 14 de abril de 2016

Install oVirt which is the management tool for virtualization environment




Install oVirt which is the management tool for virtualization environment. It's the OSS edition of Red Hat Enterprise Virtualization.
This example is based on the environment below.
                                        +----------------------+
                               10.0.0.30| [ oVirt Management ] |
                                  +-----+   dlp.server.world   |
+-----------------+               |     |                      |
|                 |10.0.0.100     |     +----------------------+
| Client Computer |---------------+
|                 |               |     +----------------------+
+-----------------+               |     |    [ oVirt Node ]    |
                                  +-----+  node01.server.world |
                               10.0.0.51|                      |
                                        +----------------------+

[1]Configure oVirtControl Server.
[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
                
# input firewalld

                Firewall manager to configure (firewalld): 
firewalld 

          [ INFO  ] firewalld will be configured as firewall manager.
                
# specify the FQDN of this host (generally it's specified automatically like follows)

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

          --== DATABASE CONFIGURATION ==--

                
# select local DB or remote DB (selet Local on here)

          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.
                
# select auto or manual for setting DB (select Automatic on here)

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

          --== OVIRT ENGINE CONFIGURATION ==--

                
# ser oVirt admin password

          Engine admin password:
          Confirm engine admin password:
                
# select apprication mode (select Both)

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

          --== PKI CONFIGURATION ==--

                
# specify Organization name for certificate

          Organization name for certificate [server.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.
                
# select Yes or No (select Yes on here)

          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.
                
# select auto or manual for setting certificate

          Do you wish Setup to configure that, or prefer to perform 
                      that manually? (Automatic, Manual) [Automatic]:

          --== SYSTEM CONFIGURATION ==--

                
# select Yes or No (select Yes on here)

          Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [Yes]:
                
# specify local ISO Domain's PATH (keep default on here)

          Local ISO domain path [/var/lib/exports/iso]:
                
# specify local ISO Domain's ACL (keep default on here)

          Local ISO domain ACL - note that the default will restrict access to dlp.server.world only, 
          for security reasons [dlp.server.world(rw)]:
                
# specify local ISO Domain's name (keep default on here)

          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.server.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                        : server.world
          NFS mount point                         : /var/lib/exports/iso
          NFS export ACL                          : dlp.server.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.server.world

                
# Enter if it's OK all

          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
# add to the end

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
# add shared settings for data (change ACL settings if needs)

/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 

Nenhum comentário:

Postar um comentário