oVirt专题:Hosted Engi

2023-01-31 03:01:27 专题 oVirt Engi


(6)Engine VM操作流程
    a、配置网络

IP:192.168.14.77
NETMASK:255.255.252.0
GATEWAY:192.168.14.1

    b、配置域名解析

192.168.14.67      node.test
192.168.14.77      engine.test

    c、执行命令,部署engine

# engine-setup --config-append=/root/ovirt-engine-answers --offline        #(调用answer进行配置(answer文件在制作engine-appliance时已经放到appliance中),采用离线模式rpm包已安
装)
 [ 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', 
'/root/ovirt-engine-answers']
           Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20141009035420-427q5m.log
           Version: otopi-1.3.0_master (otopi-1.3.0-0.0.master.20140911.git7c7d631.el6)
 [ INFO  ] Stage: Environment packages setup
 [ INFO  ] Stage: Programs detection
 [ INFO  ] Stage: Environment setup
 [ INFO  ] Stage: Environment customization
          
           --== PRODUCT OPTIONS ==--
          
           Configure Engine on this host (Yes, No) [Yes]: 
           Configure websocket Proxy on this host (Yes, No) [Yes]: 
          
           --== PACKAGES ==--
          
          
           --== 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.
           Do you want Setup to configure the firewall? (Yes, No) [Yes]: 
 [ INFO  ] iptables will be configured as firewall manager.
           Host fully qualified DNS name of this server [engine.test.eayun]: 
 [WARNING] Failed to resolve engine.test.eayun using DNS, it can be resolved only locally
          
           --== DATABASE CONFIGURATION ==--
          
          
           --== OVIRT ENGINE CONFIGURATION ==--
          
           Engine admin passWord: 
           Confirm engine admin password: 
          
           --== PKI CONFIGURATION ==--
          
           Organization name for certificate [test.eayun]: 
          
           --== APACHE CONFIGURATION ==--
          
          
           --== SYSTEM CONFIGURATION ==--
          
          
           --== MISC CONFIGURATION ==--
          
          
           --== END OF CONFIGURATION ==--
          
 [ INFO  ] Stage: Setup validation
 [WARNING] Less than 16384MB of memory is available        #内存大小检测(ovirt3.5推荐engine内存大小16384MB)
         
           --== CONFIGURATION PREVIEW ==--
          
           Application mode                        : virt
           Datacenter storage type                 : False
           Firewall manager                        : iptables
           Update Firewall                         : True
           Host FQDN                               : engine.test.eayun
           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
           PKI organization                        : test.eayun
           Configure local Engine database         : True
           Set application as default page         : True
           Configure Apache SSL                    : True
           Configure WEBSocket Proxy               : True
 [ 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  ] Stage: Misc configuration
 [ INFO  ] Initializing postgresql
 [ INFO  ] Creating Postgresql 'engine' database
 [ INFO  ] Configuring PostgreSQL
 [ INFO  ] Creating/refreshing 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: D9:E9:E9:B5:0C:17:16:9F:8E:9D:B1:12:FD:AE:CA:17
           Internal CA D1:91:7E:6E:1C:1F:A5:EC:91:BE:5A:C5:ED:6B:63:F4:94:A8:DF:31
           Web access is enabled at:
               Http://engine.test.eayun:80/ovirt-engine
               https://engine.test.eayun: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  ] Stage: Clean up
           Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20141009035420-427q5m.log
 [ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20141009035903-setup.conf'
 [ INFO  ] Stage: Pre-termination
 [ INFO  ] Stage: Termination
 [ INFO  ] Execution of setup completed successfully

此处返回第(5)步继续后面的操作。


OK。到此为止,基于Engine Appliance的hosted engine就配置完成了。

打开浏览器,访问Engine的IP地址:192.168.14.77即可访问到oVirt的WEB管理界面。



关于整个流程中一些细节分析,后续再添加。。。

相关文章