安装ovirt
安装repository
yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
安装管理节点
yum install ovirt-engine
engine-setup在engine-setup过程中,需填写一个域名。
因此,后续需在打开portal的机器上,修改该机器的host文件,添加该域名。否则,在试图登录portal时,会报如下的错误:
The client is not authorized to request an authorization. It’s required to access the system using FQDN.安装主机
oVirt主机分为2类:oVirt Node:
This is a minimal operating system based on Enterprise Linux. It is distributed as an ISO file and contains only the packages required for the machine to act as a host.Enterprise Linux Host:
Red Hat Enterprise Linux or CentOS can be used as hosts.在主机上要做的步骤如下:
a> 先安装 yum repository 的rpm包:yum localinstall <http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
如果以上命令运行失败,可以先用wget下载,再用yum localinstall安装。
b> 检查iptables service是否运行正常:
chkconfig iptables on
若没有 iptables service,则先安装:
yum install iptables-services.x86_64 systemctl restart iptables
建议最少添加2个主机,否则有些特性使用不了,如:迁移和HA.
Important:
SELinux is in enforcing mode upon installation. To verify, run getenforce. SELinux is required to be in enforcing mode on all hypervisors and Engine for your oVirt environment.注:安装的时候,会自动给改成Enforcing mode的,不需手动修改。
遇到的问题(Trouble Shooting)
在添加普通的CentOS 7.3 为主机的时候,遇到以下问题:
1.1 报错“extra/7/x86_64” 找不到
Root Cause: 未知,大约和DNS或yum repository有关
解决:编辑 /etc/sysconfig/network-scripts 下的主要的接口文件,在这里为:ifcfg-ovirtmgmt 或 ifcfg-eno1, 添加DNS1为8.8.8.81.2 网络无法连通
Root Cause:这是因为之前有在该主机上设置过bridge br0
解决:1> 先 brctl delif br0 <interfacename, e.g. eno1> 2> ifdown ifcfg-br0 # 此时才能将此接口设为down 3> brctl delbr br0 # 此时才能删除此bridge
1.3 YUM 安装失败
Root Cause:Installing Host的时候有116个步骤,其中的yum安装步骤有可能因为网络的原因而安装失败
解决:重新安装即可1.4 主机Installing之后无错误,却始终是Non-Operational,而无法UP
Root Cause:网络相关,具体未知
解决:编辑 ovirtmgmt ,将“虚拟机网络”前面的勾去掉,再去激活主机,则主机可以UP.