centos7.3 安装ovirt-engine4.0 版本

简介:

官网:

安装指南:http://www.ovirt.org/documentation/install-guide/Installation_Guide/

下载地址:http://www.ovirt.org/download/

管理端安装:http://www.ovirt.org/documentation/install-guide/chap-Installing_oVirt/

node安装 :http://www.ovirt.org/documentation/install-guide/chap-oVirt_Nodes/

管理端:

yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm


node 节点iso:


http://resources.ovirt.org/pub/ovirt-4.0/iso/ovirt-node-ng-installer/ovirt-node-ng-installer-ovirt-4.0-2016062412.iso 


rpm -ihv http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm


安装node 节点时,强烈建议自动分区

管理端yum仓库:

[ovirt-4.1]

name=Latest oVirt 4.1 Release

#baseurl=http://resources.ovirt.org/pub/ovirt-4.1/rpm/el$releasever/

mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-4.1-el$releasever

enabled=1

skip_if_unavailable=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-ovirt-4.1

[aliyun]

name=aliyun

baseurl=https://mirrors.aliyun.com/centos/7/os/x86_64/

gpgcheck=0


[fr2.rpmfind.net]

name=fr2.rpmfind.net

baseurl=ftp://fr2.rpmfind.net/linux/centos/7.3.1611/updates/x86_64/

gpgcheck=0


首先管理端:

yum update

reboot

yum install -y ovirt-engine (官网比较慢)


Ovirt install guide

engine-setup 环境包配置以及安装包的下载


执行命令:engine-setup (这里密码我设置为admin 用户名也一样)

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-20170624083328-opfj3g.log

          Version: otopi-1.6.2 (otopi-1.6.2-1.el7.centos)

[ INFO  ] Stage: Environment packages setup

[ INFO  ] Yum Downloading: ovirt-4.1/7 (0%)

[ INFO  ] Yum Downloading: sac-gdeploy/x86_64 (0%)

[ INFO  ] Stage: Programs detection

[ INFO  ] Stage: Environment setup

[ INFO  ] Stage: Environment customization

         

          --== PRODUCT OPTIONS ==--

         

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

          Configure Image I/O Proxy on this host? (Yes, No) [Yes]: 

          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.

          Configure Data Warehouse on this host (Yes, No) [Yes]: 

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

         

          --== PACKAGES ==--

         

[ INFO  ] Checking for product updates...

[ INFO  ] No product updates found

         

          --== NETWORK CONFIGURATION ==--

         

          Host fully qualified DNS name of this server [ovirt-engine.gewala.net]: 

[WARNING] Failed to resolve ovirt-engine.gewala.net using DNS, it can be resolved only locally

          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  ] firewalld will be configured as firewall manager.

         

          --== DATABASE CONFIGURATION ==--

         

          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, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 

          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, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 

         

          --== OVIRT ENGINE CONFIGURATION ==--

         

          Engine admin password: 

          Confirm engine admin password: 

[WARNING] Password is weak: it is too short

          Use weak password? (Yes, No) [No]: yes

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

         

          --== STORAGE CONFIGURATION ==--

         

          Default SAN wipe after delete (Yes, No) [No]: 

         

          --== PKI CONFIGURATION ==--

         

          Organization name for certificate [gewala.net]: 

         

          --== APACHE CONFIGURATION ==--

         

          Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications.

          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.

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

         

          --== SYSTEM CONFIGURATION ==--

         

          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

         

          Local ISO domain ACL: *(rw)    

          Local ISO domain name [ISO_DOMAIN]: 

         

          --== MISC CONFIGURATION ==--

         

          Please choose Data Warehouse sampling scale:

          (1) Basic

          (2) Full

          (1, 2)[1]: 

         

          --== END OF CONFIGURATION ==--

         

[ INFO  ] Stage: Setup validation

         

          --== CONFIGURATION PREVIEW ==--

         

          Application mode                        : both

          Default SAN wipe after delete           : False

          Firewall manager                        : firewalld

          Update Firewall                         : True

          Host FQDN                               : ovirt-engine.gewala.net

          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                        : gewala.net

          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

         

          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

[ INFO  ] Stage: Package installation

[ INFO  ] Stage: Misc configuration

[ INFO  ] Upgrading CA

[ INFO  ] Initializing PostgreSQL

[ INFO  ] Creating PostgreSQL 'engine' database

[ INFO  ] Configuring PostgreSQL

[ INFO  ] Creating PostgreSQL 'ovirt_engine_history' database

[ INFO  ] Configuring PostgreSQL

[ INFO  ] Creating CA

[ INFO  ] Creating/refreshing Engine database schema

[ INFO  ] Creating/refreshing DWH database schema

[ INFO  ] Configuring Image I/O Proxy

[ INFO  ] Setting up ovirt-vmconsole proxy helper PKI artifacts

[ INFO  ] Setting up ovirt-vmconsole SSH PKI artifacts

[ INFO  ] Configuring WebSocket Proxy

[ INFO  ] Creating/refreshing Engine 'internal' domain database schema

[ 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

[ INFO  ] Starting engine service

[ INFO  ] Restarting nfs services

[ INFO  ] Starting dwh service

[ INFO  ] Restarting ovirt-vmconsole proxy service

         

          --== SUMMARY ==--

         

[ INFO  ] Restarting httpd

          Please use the user 'admin@internal' and password specified in order to login

          Web access is enabled at:

              http://ovirt-engine.gewala.net:80/ovirt-engine

              https://ovirt-engine.gewala.net:443/ovirt-engine

          Internal CA 92:33:70:05:A2:83:0D:81:01:CE:39:24:59:21:7E:AE:00:B3:89:63

          SSH fingerprint: 54:64:7f:ab:6f:cb:dd:26:9a:26:07:92:5c:7b:50:dd

[ ERROR ] Could not refresh NFS exports (1: [u'exportfs: /etc/exports.d/ovirt-engine-iso-domain.exports:1: syntax error: bad option list'])  (这里我nfs 配置错了,之后进入/etc/exports.d/ovirt-engine-iso-domain.exports 修改一下即可)

         

          --== END OF SUMMARY ==--

         

[ INFO  ] Stage: Clean up

          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20170624083328-opfj3g.log

[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20170624084825-setup.conf'

[ INFO  ] Stage: Pre-termination

[ INFO  ] Stage: Termination

[ INFO  ] Execution of setup completed successfully

 NFS 修改

cat /etc/exports.d/ovirt-engine-iso-domain.exports 

/var/lib/exports/iso*(rw)

systemctl restart nfs-server.service

[root@ovirt-engine yum.repos.d]# showmount -e 192.168.3.176

Export list for 192.168.3.176:

/var/lib/exports/iso *

检查一下 共享目录权限 的拥有人与拥有组是否有权限,并且是否都属于 vdsm kvm 这两个用户与组的

否则会挂载不上的

wKioL1lc7U2SEddrAAAxmdAOFjM261.png


之后打开主页

ovirt-engine.gewala.net (自己的主机名即可)自己设置的用户与密码:admin/admin


node端:

我用自己的系统最小化安装,然后使用安装包做的node端

yum install vdsm vdsm-cli -y

如果启动失败vdsm服务,需要:

systemctl restart vdsmd  failed

vdsm-tool configure 

systemctl stop sanlock

systemctl stop libvirtd

h端:主机名解析 /etc/hosts

启动相关服务有:

systemctl restart vdsmd

systemctl restart vdsm-network

systemctl restart vdsm-network-init.service

systemctl restart momd

systemctl restart momd-vdsm

安装node dashboard图形管理端:

yum install cockpit-ovirt-dashboard.noarch -y

如果要进Node 里面使用virsh 操作的话使用以下操作

useradd user

echo "password" | passwd --stdin user

 saslpasswd2 -a libvirt user

virsh 登录的时候输入user 用户名与密码即可



本文转自 a120518129 51CTO博客,原文链接:http://blog.51cto.com/silencezone/1741237,如需转载请自行联系原作者

相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍如何基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
相关文章
|
4月前
|
存储 Ubuntu Linux
VMware-安装CentOS系统教程及安装包
虚拟机相当于是一个独立于你电脑的环境,在这个环境上面,你可以安装Linux、Windows、Ubuntu等各个类型各个版本的系统,在这个系统里面你不用担心有病读等,不用担心文件误删导致系统崩溃。 虚拟机也和正常的电脑系统是一样的,也可以开关机,不用的时候,你关机就可以了,也不会占用你的系统资源,使用起来还是比较方便 这里也有已经做好的CentOS 7系统,下载下来解压后直接用VMware打开就可以使用
865 69
|
3月前
|
存储 分布式计算 Linux
安装篇--CentOS 7 虚拟机安装
VMware 装 CentOS 7 不知道从哪下手?这篇超详细图文教程手把手教你在 VMware Workstation 中完成 CentOS 7 桌面系统的完整安装流程。从 ISO 镜像下载、虚拟机配置,到安装图形界面、设置用户密码,每一步都有截图讲解,适合零基础新手快速上手。装好之后无论你是要搭 Hadoop 集群,还是练 Linux ,这个环境都够你折腾一整天!
1313 2
|
4月前
|
Ubuntu Linux 索引
Centos 7、Debian及Ubuntu系统中安装和验证tree命令的指南。
通过上述步骤,我们可以在CentOS 7、Debian和Ubuntu系统中安装并验证 `tree`命令。在命令行界面中执行安装命令,然后通过版本检查确认安装成功。这保证了在多个平台上 `tree`命令的一致性和可用性,使得用户无论在哪种Linux发行版上都能使用此工具浏览目录结构。
415 78
|
5月前
|
Linux 网络安全 Apache
针对在Centos/Linux安装Apache过程中出现的常见问题集锦
以上每个问题的解决方案应深入分析错误日志、系统消息和各种配置文件,以找到根本原因并加以解决。务必保持系统和Apache软件包更新到最新版本,以修复已知的bugs和安全漏洞。安装和管理Web服务器是一项需要细致关注和不断学习的任务。随着技术的发展,推荐定期查看官方文档和社区论坛,以保持知识的更新。
255 80
|
3月前
|
安全 关系型数据库 MySQL
CentOS 7 yum 安装 MySQL教程
在CentOS 7上安装MySQL 8,其实流程很清晰。首先通过官方Yum仓库来安装服务,然后启动并设为开机自启。最重要的环节是首次安全设置:需要先从日志里找到临时密码来登录,再修改成你自己的密码,并为远程连接创建用户和授权。最后,也别忘了在服务器防火墙上放行3306端口,这样远程才能连上。
668 16
|
4月前
|
存储 关系型数据库 MySQL
在CentOS 8.x上安装Percona Xtrabackup工具备份MySQL数据步骤。
以上就是在CentOS8.x上通过Perconaxtabbackup工具对Mysql进行高效率、高可靠性、无锁定影响地实现在线快速全量及增加式数据库资料保存与恢复流程。通过以上流程可以有效地将Mysql相关资料按需求完成定期或不定期地保存与灾难恢复需求。
396 10
|
5月前
|
人工智能 数据挖掘 Linux
Centos安装Python3.7(亲测可用)
本指南详细介绍了在基于Linux(以CentOS系统为例,使用yum包管理器)的系统上安装Python 3.7版本的完整流程。Python是一种广泛使用的高级编程语言,在各种领域如软件开发、数据分析、人工智能和区块链开发等都有着重要的应用。
547 2
|
4月前
|
运维 网络协议 Linux
CentOS下Bind服务的安装与故障排查
通过以上的步骤,您应该能够在CentOS系统上安装并配置BIND DNS服务,并进行基本的故障排查。
424 0
|
4月前
|
存储 Ubuntu Linux
安卓手机免root安装各种Linux系统:Ubuntu, Centos,Kali等
此外还可以安装Slackware、Archstrike等系统,还可以通过github查找方法安装更多有趣的东西。 昨日小编就是通过Termux安装的Kali Linux工具包。