Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1780796
  • 博文数量: 276
  • 博客积分: 1574
  • 博客等级: 上尉
  • 技术积分: 2894
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-26 23:23
个人简介

生活的美妙在于,不知道一下秒是惊艳还是伤神,时光流转,珍惜现在的拥有的时光

文章分类

全部博文(276)

文章存档

2017年(17)

2016年(131)

2015年(63)

2013年(2)

2012年(32)

2011年(31)

分类: 虚拟化

2015-12-30 11:09:09

必须为管理引擎和宿主机准备一个FQDN,DNS中设置转发和解析


关于自承载引擎

自承载(self-hosted)引擎就是一个虚拟化环境,它的引擎(Manager)运行在由这个引擎所管理的一台主机的虚拟机上。虚拟机会作为主机配置的一部分被创建,引擎的安装和配置过程会在主机配置的过程中同时进行。
运行引擎的虚拟机会被配置为高可用性虚拟机。当运行这个虚拟机的主机进入维护模式,或出现计划外的故障时,这个虚拟机会被自动迁移到另外一台主机上运行。
使用自承载引擎的主要优点是减少了部署 Red Hat Enterprise Virtualization 对硬件的需求(引擎只需要在虚拟机上运行,而不需要额外的物理机器)。另外,引擎被自动配置为高可用性,而不需要一个独立的集群。
自承载引擎当前只能在 Red Hat Enterprise Linux 6.5、6.6 或 7 主机上运行。我们不推荐您在 Red Hat Enterprise Virtualization Hypervisor 或其它老版本的 Red Hat Enterprise Linux 上运行自承载引擎。被配置为 Red Hat Enterprise Virtualization Manager 的虚拟机必须运行在 Red Hat Enterprise Linux 6.6 上。

先决条件:
请确认您已经满足了以下先决条件:
  • 您全新安装了 Red Hat Enterprise Linux 6.5、6.6 或 7 系统作为虚拟主机。
  • 您需要准备为 Manger 安装操作系统所需的安装介质(CD-ROM、磁盘或 PXE)。物理的 CD-ROM 驱动器不被支持,如果您选择使用 CD-ROM 选项,则需要使用一个 ISO 文件。对于磁盘选项,您可以下载 RHEV-M Virtual Appliance 用于 Manager 的安装。RHEV-M Virtual Appliance 的下载地址是 。
  • 为您的自承载引擎环境准备 NFS 或 iSCSI 存储。
  • 您需要设置好 Manager 的完全限定域名(FQDN),DNS 中需要有它的正向和反向查询记录。
  • 如果您使用 RHEV-M Virtual Appliance,/tmp 目录需要不小于 50 GB。
这里所介绍的所有操作都需要以 root 用户的身份进行。
安装流程:


安装软件:
1.下载ovirt3.6版本的官方源rpm安装包
[root@192-168-1-2 ~]# yum install
2.下载CentOS 7.2版本的操作系统安装镜像,选择最小化版本.
[root@192-168-1-2 ~]# wget
3.安装自承载引擎配置脚本
[root@192-168-1-2 ~]# yum install -y ovirt-hosted-engine-setup
[root@192-168-1-2 ~]# yum install -y ovirt-engine-appliance
使用ovirt-engine-appliance安装engine,/tmp目录必须大于60GB的容量
安装过程中会断开网络,为了保证网络断开后程序安装不受影响,使用screen管理安装
[root@192-168-1-2 ~]# yum install screen -y
3.创建glusterfs逻辑卷
每一台host上都安装glusterfs
yum install glusterfs gluserterfs-server -y

只支持replica 3 Gluster 存储. 并确定下面的配置已经被添加到所有的Gluster servers,/etc/glusterfs/glusterd.vol :
option rpc-auth-allow-insecure on
[root@192-168-174-42 glusterfs]# vim glusterd.vol
volume management
    type mgmt/glusterd
    option working-directory /var/lib/glusterd
    option transport-type socket,rdma
    option transport.socket.keepalive-time 10
    option transport.socket.keepalive-interval 2
    option transport.socket.read-fail-log off
    option ping-timeout 0
    option event-threads 1
#   option base-port 49152
    option rpc-auth-allow-insecure on
end-volume
~
启动服务  
systemctl start glusterd
systemctl start glusterfsd.service

添加防火墙规则
-A INPUT -m state --state NEW -m tcp -p tcp --dport 24007 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 49152 -j ACCEPT
# systemctl restart iptables 


[root@192-168-174-36 opt]# cd
[root@192-168-174-36 ~]# gluster peer probe 192.168.184.11
peer probe: success. 
[root@192-168-174-36 ~]# gluster peer probe 192.168.184.13
peer probe: success. 
[root@192-168-174-36 ~]# gluster peer probe 192.168.184.15
peer probe: success. 
[root@192-168-174-36 ~]# gluster peer probe 192.168.184.17
peer probe: success. 
[root@192-168-174-36 ~]# gluster peer probe 192.168.184.14
peer probe: success. 
[root@192-168-174-36 ~]# gluster peer probe 192.168.184.18
peer probe: success. Probe on localhost not needed
[root@192-168-174-36 ~]# gluster volume create Govirt stripe 2 replica 3 192.168.184.11:/opt/gv1 192.168.184.13:/opt/gv1 192.168.184.15:/opt/gv1 192.168.184.17:/opt/gv1 192.168.184.14:/opt/gv1 192.168.184.18:/opt/gv1      
volume create: Govirt: success: please start the volume to access data
gluster> volume start Govirt
volume start: Govirt: success
gluster> volume quota Govirt enable
volume quota : success

gluster volume set Govirt cluster.quorum-type auto
gluster volume set Govirt network.ping-timeout 10
gluster volume set Govirt auth.allow \*
gluster volume set Govirt group virt
gluster volume set Govirt storage.owner-uid 36
gluster volume set Govirt storage.owner-gid 36
gluster volume set Govirt server.allow-insecure on

点击(此处)折叠或打开

  1. [root@ovirthost18 glusterSD]# screen hosted-engine --deploy
  2. [ INFO ] Stage: Initializing
  3. [ INFO ] Generating a temporary VNC password.
  4. [ INFO ] Stage: Environment setup
  5.           Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards.
  6.           Are you sure you want to continue? (Yes, No)[Yes]:
  7.           Configuration files: []
  8.           Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160310151405-1ukhce.log
  9.           Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos)
  10. [ INFO ] Hardware supports virtualization
  11. [ INFO ] Bridge ovirtmgmt already created
  12. [ INFO ] Stage: Environment packages setup
  13. [ INFO ] Stage: Programs detection
  14. [ INFO ] Stage: Environment setup
  15. [ INFO ] Stage: Environment customization
  16.          
  17.           --== STORAGE CONFIGURATION ==--
  18.          
  19.           During customization use CTRL-D to abort.
  20.           Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: glusterfs
  21. [ INFO ] Please note that Replica 3 support is required for the shared storage.
  22.           Please specify the full shared storage connection path to use (example: host:/path): 192.168.184.17:/Govirt
  23. [ INFO ] GlusterFS replica 3 Volume detected
  24. [ INFO ] Installing on first host
  25. [ INFO ] GlusterFS replica 3 Volume detected
  26.          
  27.           --== SYSTEM CONFIGURATION ==--
  28.          
  29.          
  30.           --== NETWORK CONFIGURATION ==--
  31.          
  32.           iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]:
  33.           Please indicate a pingable gateway IP address [192.168.184.1]:
  34.          
  35.           --== VM CONFIGURATION ==--
  36.          
  37.           Booting from cdrom on RHEL7 is ISO image based only, as cdrom passthrough is disabled (BZ760885)
  38.           Please specify the device to boot the VM from (choose disk for the oVirt engine appliance)
  39.           (cdrom, disk, pxe) [disk]:
  40. [ INFO ] Detecting available oVirt engine appliances
  41.           The following appliance have been found on your system:
  42.                 [1] - The oVirt Engine Appliance image (OVA) - 3.6-20160301.1.el7.centos
  43.                 [2] - Directly select an OVA file
  44.           Please select an appliance (1, 2) [1]:
  45. [ INFO ] Verifying its sha1sum
  46. [ INFO ] Checking OVF archive content (could take a few minutes depending on archive size)
  47. [ INFO ] Stage: Programs detection
  48. [ INFO ] Stage: Environment setup
  49. [ INFO ] Stage: Environment customization

  50.           --== STORAGE CONFIGURATION ==--

  51.           During customization use CTRL-D to abort.
  52.           Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: glusterfs
  53. [ INFO ] Please note that Replica 3 support is required for the shared storage.
  54.           Please specify the full shared storage connection path to use (example: host:/path): 192.168.184.17:/Govirt
  55. [ INFO ] GlusterFS replica 3 Volume detected
  56. [ INFO ] Installing on first host
  57. [ INFO ] GlusterFS replica 3 Volume detected

  58.           --== SYSTEM CONFIGURATION ==--


  59.           --== NETWORK CONFIGURATION ==--

  60.           iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]:
  61.           Please indicate a pingable gateway IP address [192.168.184.1]:

  62.           --== VM CONFIGURATION ==--

  63.           Booting from cdrom on RHEL7 is ISO image based only, as cdrom passthrough is disabled (BZ760885)
  64.           Please specify the device to boot the VM from (choose disk for the oVirt engine appliance)
  65.           (cdrom, disk, pxe) [disk]:
  66. [ INFO ] Detecting available oVirt engine appliances
  67.           The following appliance have been found on your system:
  68.                 [1] - The oVirt Engine Appliance image (OVA) - 3.6-20160301.1.el7.centos
  69.                 [2] - Directly select an OVA file
  70.           Please select an appliance (1, 2) [1]:
  71. [ INFO ] Verifying its sha1sum
  72. [ INFO ] Checking OVF archive content (could take a few minutes depending on archive size)
  73. [ INFO ] Checking OVF XML content (could take a few minutes depending on archive size)
  74. [WARNING] OVF does not contain a valid image description, using default.
  75.           Would you like to use cloud-init to customize the appliance on the first boot (Yes, No)[Yes]?
  76.           Would you like to generate on-fly a cloud-init no-cloud ISO image
  77.           or do you have an existing one (Generate, Existing)[Generate]?
  78.           Please provide the FQDN you would like to use for the engine appliance.
  79.           Note: This will be the FQDN of the engine VM you are now going to launch,
  80.           it should not point to the base host or to any other existing machine.
  81.           Engine VM FQDN: (leave it empty to skip): []: ovirt.skyovirt.com
  82.           Automatically execute engine-setup on the engine appliance on first boot (Yes, No)[Yes]?
  83.           Automatically restart the engine VM as a monitored service after engine-setup (Yes, No)[Yes]?
  84.           Please provide the domain name you would like to use for the engine appliance.
  85.           Engine VM domain: [skyovirt.com]
  86.           Enter root password that will be used for the engine appliance (leave it empty to skip):
  87.           Confirm appliance root password:
  88.           How should the engine VM network should be configured (DHCP, Static)[DHCP]? Static
  89.           Please enter the IP address to be used for the engine VM [192.168.184.2]: 192.168.184.10
  90. [ INFO ] The engine VM will be configured to use 192.168.184.10/24
  91.           Please provide a comma-separated list (max 3) of IP addresses of domain name servers for the engine VM
  92.           Engine VM DNS (leave it empty to skip) [192.168.184.11,211.140.188.188,211.140.13.188]: 192.168.184.11,223.5.5.5,8.8.8.8
  93.           Add lines for the appliance itself and for this host to /etc/hosts on the engine VM?
  94.           Note: ensuring that this host could resolve the engine VM hostname is still up to you
  95.           (Yes, No)[No] Yes
  96.           The following CPU types are supported by this host:
  97.                  - model_Nehalem: Intel Nehalem Family
  98.                  - model_Penryn: Intel Penryn Family
  99.                  - model_Conroe: Intel Conroe Family
  100.           Please specify the CPU type to be used by the VM [model_Nehalem]:
  101.           Please specify the number of virtual CPUs for the VM [Defaults to appliance OVF value: 4]:
  102. [WARNING] Minimum requirements for disk size not met
  103.           You may specify a unicast MAC address for the VM or accept a randomly generated default [00:16:3e:6b:0c:ca]:
  104.           Please specify the memory size of the VM in MB [Defaults to appliance OVF value: 16384]:
  105.           Please specify the console type you would like to use to connect to the VM (vnc, spice) [vnc]:
  106.          
  107.           --== HOSTED ENGINE CONFIGURATION ==--
  108.          
  109.           Enter the name which will be used to identify this host inside the Administrator Portal [hosted_engine_1]: ovirthost18.skyovirt.com
  110.           Enter 'admin@internal' user password that will be used for accessing the Administrator Portal:
  111.           Confirm 'admin@internal' user password:
  112.           Please provide the name of the SMTP server through which we will send notifications [localhost]:
  113.           Please provide the TCP port number of the SMTP server [25]:
  114.           Please provide the email address from which notifications will be sent [root@localhost]:
  115.           Please provide a comma-separated list of email addresses which will get notifications [root@localhost]:
  116. [ INFO ] Stage: Setup validation
  117.          
  118.           --== CONFIGURATION PREVIEW ==--
  119.          
  120.           Bridge interface : eth0
  121.           Engine FQDN : ovirt.skyovirt.com
  122.           Bridge name : ovirtmgmt
  123.           Host address : ovirthost18.skyovirt.com
  124.           SSH daemon port : 22
  125.           Firewall manager : iptables
  126.           Gateway address : 192.168.184.1
  127.           Host name for web application : ovirthost18.skyovirt.com
  128.           Host ID : 1
  129.           Image size GB : 10
  130.           GlusterFS Share Name : hosted_engine_glusterfs
  131.           GlusterFS Brick Provisioning : False
  132.           Storage connection : 192.168.184.17:/Govirt
  133.           Console type : vnc
  134.           Memory size MB : 16384
  135.           MAC address : 00:16:3e:6b:0c:ca
  136.           Boot type : disk
  137.           Number of CPUs : 4
  138.           OVF archive (for disk boot) : /usr/share/ovirt-engine-appliance/ovirt-engine-appliance-3.6-20160301.1.el7.centos.ova
  139.           Restart engine VM after engine-setup: True
  140.           CPU Type : model_Nehalem
  141.          
  142.           Please confirm installation settings (Yes, No)[Yes]:
  143. [ INFO ] Stage: Transaction setup
  144. [ INFO ] Stage: Misc configuration
  145. [ INFO ] Stage: Package installation
  146. [ INFO ] Stage: Misc configuration
  147. [ INFO ] Configuring libvirt
  148. [ INFO ] Configuring VDSM
  149. [ INFO ] Starting vdsmd
  150. [ INFO ] Waiting for VDSM hardware info
  151. [ INFO ] Waiting for VDSM hardware info
  152. [ INFO ] Creating Storage Domain
  153. [ INFO ] Creating Storage Pool
  154. [ INFO ] Connecting Storage Pool
  155. [ INFO ] Verifying sanlock lockspace initialization
  156. [ INFO ] Creating Image for 'hosted-engine.lockspace' ...
  157. [ INFO ] Image for 'hosted-engine.lockspace' created successfully
  158. [ INFO ] Creating Image for 'hosted-engine.metadata' ...
  159. [ INFO ] Image for 'hosted-engine.metadata' created successfully
  160. [ INFO ] Creating VM Image
  161. [ INFO ] Extracting disk image from OVF archive (could take a few minutes depending on archive size)
  162. [ INFO ] Validating pre-allocated volume size
  163. [ INFO ] Uploading volume to data domain (could take a few minutes depending on archive size)
  164. [ INFO ] Image successfully imported from OVF
  165. [ INFO ] Destroying Storage Pool
  166. [ INFO ] Start monitoring domain
  167. [ INFO ] Configuring VM
  168. [ INFO ] Updating hosted-engine configuration
  169. [ INFO ] Stage: Transaction commit
  170. [ INFO ] Stage: Closing up
  171. [ INFO ] Creating VM
  172.           You can now connect to the VM with the following command:
  173.                 /bin/remote-viewer vnc://localhost:5900
  174.           Use temporary password "6099dSEA" to connect to vnc console.
  175.           Please note that in order to use remote-viewer you need to be able to run graphical applications.
  176.           This means that if you are using ssh you have to supply the -Y flag (enables trusted X11 forwarding).
  177.           Otherwise you can run the command from a terminal in your preferred desktop environment.
  178.           If you cannot run graphical applications you can connect to the graphic console from another host or connect to the serial console using the following command:
  179.           socat UNIX-CONNECT:/var/run/ovirt-vmconsole-console/eb9cd5b4-553e-4b8d-99ee-899aaffb4297.sock,user=ovirt-vmconsole STDIO,raw,echo=0,escape=1
  180.           Please ensure that your Guest OS is properly configured to support serial console according to your distro documentation.
  181.           Follow http://www.ovirt.org/Serial_Console_Setup#I_need_to_access_the_console_the_old_way for more info.
  182.           If you need to reboot the VM you will need to start it manually using the command:
  183.           hosted-engine --vm-start
  184.           You can then set a temporary password using the command:
  185.           hosted-engine --add-console-password
  186. [ INFO ] Running engine-setup on the appliance
  187.           |- [ INFO ] Stage: Initializing
  188.           |- [ INFO ] Stage: Environment setup
  189.           |- 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', '/root/heanswers.conf']
  190.           |- Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20160310072540-vbzmx5.log
  191.           |- Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos)
  192.           |- [ INFO ] Stage: Environment packages setup
  193.           |- [ INFO ] Stage: Programs detection
  194.           |- [ INFO ] Stage: Environment setup
  195.           |- [ INFO ] Stage: Environment customization
  196.           |-
  197.           |- --== PRODUCT OPTIONS ==--
  198.           |-
  199.           |-
  200.           |- --== PACKAGES ==--
  201.           |-
  202.           |-
  203.           |- --== ALL IN ONE CONFIGURATION ==--
  204.           |-
  205.           |-
  206.           |- --== NETWORK CONFIGURATION ==--
  207.           |-
  208.           |- [ INFO ] firewalld will be configured as firewall manager.
  209.           |-
  210.           |- --== DATABASE CONFIGURATION ==--
  211.           |-
  212.           |-
  213.           |- --== OVIRT ENGINE CONFIGURATION ==--
  214.           |-
  215.           |-
  216.           |- --== STORAGE CONFIGURATION ==--
  217.           |-
  218.           |-
  219.           |- --== PKI CONFIGURATION ==--
  220.           |-
  221.           |-
  222.           |- --== APACHE CONFIGURATION ==--
  223.           |-
  224.           |-
  225.           |- --== SYSTEM CONFIGURATION ==--
  226.           |-
  227.           |-
  228.           |- --== MISC CONFIGURATION ==--
  229.           |-
  230.           |-
  231.           |- --== END OF CONFIGURATION ==--
  232.           |-
  233.           |- [ INFO ] Stage: Setup validation
  234.           |-
  235.           |- --== CONFIGURATION PREVIEW ==--
  236.           |-
  237.           |- Application mode : virt
  238.           |- Default SAN wipe after delete : False
  239.           |- Firewall manager : firewalld
  240.           |- Update Firewall : True
  241.           |- Host FQDN : ovirt.skyovirt.com
  242.           |- Engine database secured connection : False
  243.           |- Engine database host : localhost
  244.           |- Engine database user name : engine
  245.           |- Engine database name : engine
  246.           |- Engine database port : 5432
  247.           |- Engine database host name validation : False
  248.           |- Engine installation : True
  249.           |- PKI organization : skyovirt.com
  250.           |- Configure local Engine database : True
  251.           |- Set application as default page : True
  252.           |- Configure Apache SSL : True
  253.           |- Configure VMConsole Proxy : True
  254.           |- Engine Host FQDN : ovirt.skyovirt.com
  255.           |- Configure WebSocket Proxy : True
  256.           |- [ INFO ] Stage: Transaction setup
  257.           |- [ INFO ] Stopping engine service
  258.           |- [ INFO ] Stopping ovirt-fence-kdump-listener service
  259.           |- [ INFO ] Stopping websocket-proxy service
  260.           |- [ INFO ] Stage: Misc configuration
  261.           |- [ INFO ] Stage: Package installation
  262.           |- [ INFO ] Stage: Misc configuration
  263.           |- [ INFO ] Initializing PostgreSQL
  264.           |- [ INFO ] Creating PostgreSQL 'engine' database
  265.           |- [ INFO ] Configuring PostgreSQL
  266.           |- [ INFO ] Creating/refreshing Engine database schema
  267.           |- [ INFO ] Creating/refreshing Engine 'internal' domain database schema
  268.           |- [ INFO ] Upgrading CA
  269.           |- [ INFO ] Creating CA
  270.           |- [ INFO ] Setting up ovirt-vmconsole proxy helper PKI artifacts
  271.           |- [ INFO ] Setting up ovirt-vmconsole SSH PKI artifacts
  272.           |- [ INFO ] Configuring WebSocket Proxy
  273.           |- [ INFO ] Generating post install configuration file '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
  274.           |- [ INFO ] Stage: Transaction commit
  275.           |- [ INFO ] Stage: Closing up
  276.           |-
  277.           |- --== SUMMARY ==--
  278.           |-
  279.           |- SSH fingerprint: df:a8:c2:71:c7:e9:b0:75:85:50:49:6e:85:5c:5c:67
  280.           |- Internal CA 62:4A:B8:AF:6F:AB:7F:7D:5A:B5:6B:FF:A6:80:B1:1F:6F:2C:DD:BE
  281.           |- If you want to gather statistical information you can install Reports and/or DWH:
  282.           |- http://www.ovirt.org/Ovirt_DWH
  283.           |- http://www.ovirt.org/Ovirt_Reports
  284.           |- Web access is enabled at:
  285.           |- http://ovirt.skyovirt.com:80/ovirt-engine
  286.           |- https://ovirt.skyovirt.com:443/ovirt-engine
  287.           |- Please use the user 'admin@internal' and password specified in order to login
  288.           |-
  289.           |- --== END OF SUMMARY ==--
  290.           |-
  291.           |- [ INFO ] Starting engine service
  292.           |- [ INFO ] Restarting httpd
  293.           |- [ INFO ] Restarting ovirt-vmconsole proxy service
  294.           |- [ INFO ] Stage: Clean up
  295.           |- Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20160310072540-vbzmx5.log
  296.           |- [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20160310073052-setup.conf'
  297.           |- [ INFO ] Stage: Pre-termination
  298.           |- [ INFO ] Stage: Termination
  299.           |- [ INFO ] Execution of setup completed successfully
  300.           |- HE_APPLIANCE_ENGINE_SETUP_SUCCESS
  301. [ INFO ] Engine-setup successfully completed
  302. [ INFO ] Engine is still unreachable
  303. [ INFO ] Engine is still not reachable, waiting...
  304. [ INFO ] Engine is still unreachable
  305. [ INFO ] Engine is still not reachable, waiting...
  306. [ INFO ] Engine replied: DB Up!Welcome to Health
  307. [ INFO ] Acquiring internal CA cert from the engine
  308. [ INFO ] The following CA certificate is going to be used, please immediately interrupt if not correct:
  309. [ INFO ] Issuer: C=US, O=skyovirt.com, CN=ovirt.skyovirt.com.28351, Subject: C=US, O=skyovirt.com, CN=ovirt.skyovirt.com.28351, Fingerprint (SHA-1): 624AB8AF6FAB7F7D5AB56BFFA680B11F6F2CDDBE
  310. [ INFO ] Connecting to the Engine
  311. [ INFO ] Waiting for the host to become operational in the engine. This may take several minutes...
  312. [ INFO ] The VDSM Host is now operational
  313. [ INFO ] Saving hosted-engine configuration on the shared storage domain
  314. [ INFO ] Shutting down the engine VM
  315. [ INFO ] Enabling and starting HA services
  316. [ INFO ] Stage: Clean up
  317. [ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20160310153524.conf'
  318. [ INFO ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
  319. [ INFO ] Stage: Pre-termination
  320. [ INFO ] Stage: Termination
  321. [ INFO ] Hosted Engine successfully set up
  322. [screen is terminating]











检测自承载engine的虚拟机状态

点击(此处)折叠或打开

  1. [root@ovirthost18 ~]# hosted-engine --vm-status


  2. --== Host 1 status ==--

  3. Status up-to-date : True
  4. Hostname : ovirthost18.skyovirt.com
  5. Host ID : 1
  6. Engine status : {"reason": "vm not running on this host", "health": "bad", "vm": "down", "detail": "unknown"}
  7. Score : 0
  8. stopped : False
  9. Local maintenance : True
  10. crc32 : c00bb160
  11. Host timestamp : 2069
  12. [root@ovirthost18 ~]#
启动自承载engine

点击(此处)折叠或打开

  1. [root@ovirthost18 ~]# hosted-engine --vm-start

  2. eb9cd5b4-553e-4b8d-99ee-899aaffb4297
  3.         Status = WaitForLaunch
  4.         nicModel = rtl8139,pv
  5.         statusTime = 4297005950
  6.         emulatedMachine = pc
  7.         pid = 0
  8.         vmName = HostedEngine
  9.         devices = [{'index': '2', 'iface': 'ide', 'specParams': {}, 'readonly': 'true', 'deviceId': 'e8a5d960-c22e-46c1-a23a-550859990368', 'address': {'bus': '1', 'controller': '0', 'type': 'drive', 'target': '0', 'unit': '0'}, 'device': 'cdrom', 'shared': 'false', 'path': '', 'type': 'disk'}, {'index': '0', 'iface': 'virtio', 'format': 'raw', 'bootOrder': '1', 'poolID': '00000000-0000-0000-0000-000000000000', 'volumeID': '80a84266-4267-47e1-b14d-bfc3b600c09f', 'imageID': '700e39e3-7b31-4154-a9d8-ac6caa6eadb4', 'specParams': {}, 'readonly': 'false', 'domainID': '1b618315-0622-4b10-846b-6903776c13ec', 'optional': 'false', 'deviceId': '700e39e3-7b31-4154-a9d8-ac6caa6eadb4', 'address': {'slot': '0x06', 'bus': '0x00', 'domain': '0x0000', 'type': 'pci', 'function': '0x0'}, 'device': 'disk', 'shared': 'exclusive', 'propagateErrors': 'off', 'type': 'disk'}, {'device': 'scsi', 'model': 'virtio-scsi', 'type': 'controller'}, {'nicModel': 'pv', 'macAddr': '00:16:3e:6b:0c:ca', 'linkActive': 'true', 'network': 'ovirtmgmt', 'filter': 'vdsm-no-mac-spoofing', 'specParams': {}, 'deviceId': '443757e2-a735-41d1-ac05-6c15e8217f99', 'address': {'slot': '0x03', 'bus': '0x00', 'domain': '0x0000', 'type': 'pci', 'function': '0x0'}, 'device': 'bridge', 'type': 'interface'}, {'device': 'console', 'specParams': {}, 'type': 'console', 'deviceId': '09abe9c6-41bb-42c1-b8d3-efe85379fd7b', 'alias': 'console0'}]
  10.         guestDiskMapping = {}
  11.         vmType = kvm
  12.         clientIp =
  13.         displaySecurePort = -1
  14.         memSize = 16384
  15.         displayPort = -1
  16.         cpuType = Nehalem
  17.         spiceSecureChannels = smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir
  18.         smp = 4
  19.         displayIp = 0
  20.         display = vnc



安装过程中的一些内存磁盘IO情况
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 2  0      0 45290744   1920 3124408    0    0     0 53252 1369  200 11  1 87  0  0
 1  0      0 45207092   1920 3208080    0    0     4 426012 1460  707 11  2 86  0  0
 1  0      0 45131644   1920 3283320    0    0     0     0 2451  207 12  1 87  0  0
 1  0      0 45046508   1920 3367816    0    0     4     0 1248  709 11  2 87  0  0
 1  0      0 44955780   1920 3458508    0    0     0     0 1198  204 11  1 88  0  0
 1  0      0 44848484   1920 3563156    0    0     4     0 1383 1007 11  2 87  0  0
 1  0      0 44724904   1920 3686064    0    0     4 106512 1643  352 11  2 87  0  0
 1  2      0 44559836   1928 3836144    0    0  1028 971161 2643  920 11  4 79  6  0
 1  2      0 44412972   1928 3983240    0    0     0     0 2252  205 11  2 63 25  0
 1  0      0 44305020   1928 4091348    0    0     4     7 2294  803 11  2 71 15  0
 1  0      0 44221004   1928 4175480    0    0     0     4 1238  196 11  1 87  0  0
 1  0      0 44139972   1928 4256604    0    0     4     0 1303  748 12  1 87  0  0
 2  0      0 44065836   1928 4330860    0    0     0     0 1371  587 12  1 86  0  0
 1  0      0 43989160   1928 4407412    0    0     4     0 1265 1974 12  1 87  0  0
 1  0      0 43915592   1928 4481636    0    0     0     0 1223  208 12  1 87  0  0
 1  0      0 43835200   1928 4560628    0    0     4     0 1383  923 12  2 87  0  0
 1  0      0 43759580   1928 4636592    0    0     4     0 1257  358 11  1 87  0  0
 1  0      0 43684260   1928 4711948    0    0     4 53264 1534  707 11  2 87  0  0
 1  0      0 43596184   1928 4799984    0    0     0 102412 1323  189 11  2 87  0  0
 1  0      0 43506184   1928 4889772    0    0     4 49156 1517  767 11  2 87  0  0
 1  0      0 43418852   1928 4977452    0    0     0 98316 1433  206 11  2 87  0  0
 1  0      0 43330876   1928 5065860    0    0     4 98316 1519  708 11  2 87  0  0
 1  0      0 43241420   1928 5154884    0    0     0 98296 1330  210 11  1 87  0  0
 1  0      0 43164744   1928 5231816    0    0     4 49159 1505  755 11  2 87  0  0
 0  1      0 43114340   1928 5282196    0    0     0 980204 1383  223  6  2 87  5  0
 0  1      0 43117148   1928 5279384    0    0     4     0 1476  937  0  0 87 12  0
 0  1      0 43120284   1928 5276256    0    0     4     0 12718 55243  0  2 86 11  0
 0  0      0 43082340   1928 5300040    0    0  2056    18 11558 32099  7  8 80  4  0
 0  0      0 43017472   1936 5365796    0    0  1024    40 19835 32590 11 12 77  0  0
 0  0      0 42949860   1936 5432552    0    0     4    16 19561 31394 10 12 78  0  0
 1  0      0 42889424   1936 5491716    0    0     0     0 21073 42454 11 12 77  0  0
 1  0      0 42827168   1936 5557984    0    0     4     0 20131 37314 10 11 78  0  0

 安装完虚拟机engine后可以通过VNC查看状态,也可以直接登陆虚拟机



[root@ovirthost18 ha_agent]# pwd
/rhev/data-center/mnt/glusterSD/192.168.184.17:_Govirt/1b618315-0622-4b10-846b-6903776c13ec/ha_agent
[root@ovirthost18 ha_agent]# ll
total 1
lrwxrwxrwx 1 vdsm kvm 132 Mar 10 16:10 hosted-engine.lockspace -> /var/run/vdsm/storage/1b618315-0622-4b10-846b-6903776c13ec/38543009-27ee-4c8d-878d-cd044b93a3b1/b0ae75b6-6c70-478a-a35f-d6a2972aa708
lrwxrwxrwx 1 vdsm kvm 132 Mar 10 16:10 hosted-engine.metadata -> /var/run/vdsm/storage/1b618315-0622-4b10-846b-6903776c13ec/6127b7b6-7ed7-466f-9818-90c564e6f71d/b44e0552-ca0b-417e-85a9-b49fe7816d52

安装完自承载engine后由于原来的iptables被重写,还要添加回glusterfs的端口
-A INPUT -m state --state NEW -m tcp -p tcp --dport 24007 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 49152 -j ACCEPT

故障排除:

点击(此处)折叠或打开

  1. [root@192-168-166-119 ~]# hosted-engine --deploy
  2. [ INFO ] Stage: Initializing
  3. [ INFO ] Generating a temporary VNC password.
  4. [ INFO ] Stage: Environment setup
  5.           Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.
  6.           Are you sure you want to continue? (Yes, No)[Yes]:
  7.           Configuration files: []
  8.           Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20151230101541-9ppzo8.log
  9.           Version: otopi-1.4.0 (otopi-1.4.0-1.el7.centos)
  10.           It has been detected that this program is executed through an SSH connection without using screen.
  11.           Continuing with the installation may lead to broken installation if the network connection fails.
  12.           It is highly recommended to abort the installation and run it inside a screen session using command "screen".
  13.           Do you want to continue anyway? (Yes, No)[No]: Yes
  14. [ ERROR ] Failed to execute stage 'Environment setup': Hardware does not support virtualization
  15. [ INFO ] Stage: Clean up
  16. [ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20151230101630.conf'
  17. [ INFO ] Stage: Pre-termination
  18. [ INFO ] Stage: Termination
如果硬件支持虚拟化,在BOIS中启用CPU虚拟化.


参考:
http://www.ibm.com/developerworks/cn/cloud/library/1209_xiawc_ovirt/index.html


阅读(10149) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~