系统为:CentOS7.7
VirtEngine开源版https://virtengine.com/products/opensource.html
1.关闭SELinux
vi /etc/selinux/config
相应内容改为
SELINUX=diabled
2.关闭系统防火墙
systemctl stop firewalld.service 停止firewall
systemctl disable firewalld.service 禁止firewall开机启动
3.设置hostname
hostnamectl set-hostname engine.lian
重启一下系统
reboot
4.如果是国内机器,请修改一下yum源
cd /etc/yum.repo.d
mkdir bak
mv *.repo bak/
curl -o CentOS7-Base-163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
5.在正式安装之前,将ovirt官方的源添加到系统yum源库中(最新的是4.4版本,我用的是4.2)
yum install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
yum -y update
6.安装ovirt-engine
yum install -y ovirt-engine
这一步会安装大量的依赖关系用到的包大约400个左右,所以需要的时间比较长,特别是最后一个ovirt-engine-*的包需要从官方的源下载,国内速度比较慢,我这边很快,在150MB/S左右,国内的机器耐心等待就行,安装过程大概用了差不多十五分钟左右
7.错误排查安装期间遇到错误:
GPG key retrieval failed: [Errno 12] Timeout on https://raw.githubusercontent.com/CentOS-Storage-SIG/centos-release-storage-common/master/RPM-GPG-KEY-CentOS-SIG-Storage: (28, 'Connection timed out after 30001 milliseconds')
这是GPG key校验的时候超时了,设置不做校验即可
vi /etc/yum.repo.d/ovirt-4.2.repo
vi /etc/yum.repo.d/ovirt-4.2-dependencies.repo
修改内容中所有的的gpgcheck=0
8.配置ovirt-engineovirt-engine安装完成后需要运行首次配置向导
engine-setup
Configure Engine on this host (Yes, No) [Yes]: 回车
Configure ovirt-provider-ovn (Yes, No) [Yes]: 回车(OVN:Open Virtual Network,配置虚拟网络)
Configure Image I/O Proxy on this host (Yes, No) [Yes]: 回车(Image I/O Proxy可以支持向oVirt平台中上传虚拟机的磁盘镜像)
Configure WebSocket Proxy on this host (Yes, No) [Yes]: 回车(WebSocket Proxy用来支持使用noVNC远程登录虚拟机图形界面管理)
Configure Data Warehouse on this host (Yes, No) [Yes]: 回车(在本机配置数据库)
Configure VM Console Proxy on this host (Yes, No) [Yes]: 回车(支持访问虚拟机的串口console通信)
Host fully qualified DNS name of this server [localhost.localdomain]: 回车(使用默认hostname就行,用IP地址访问无所谓)
Do you want Setup to configure the firewall? (Yes, No) [Yes]: no回车(因为之前已经把防火墙服务给关掉了,所以就不用再配置防火墙的具体设置了)
Where is the DWH database located? (Local, Remote) [Local]: 回车(DWH: Data WareHouse使用本地数据库)
Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 回车(自动配置PostGreSQL数据库)
Where is the Engine database located? (Local, Remote) [Local]: 回车(Engine用到的数据库位于本机)
Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 回车(使用安装程序自动创建Engine数据库)
Engine admin password: 输入后台管理员admin的密码回车
Confirm engine admin password: 再输入一遍密码回车
Application mode (Virt, Gluster, Both) [Both]: 回车
Use default credentials (admin@internal) for ovirt-provider-ovn (Yes, No) [Yes]: 回车(使用默认的admin@internal内部管理员账号)
Default SAN wipe after delete (Yes, No) [No]: 回车(yes的话在删除虚拟机的虚拟磁盘后会擦除存储设备上的对应块)
Organization name for certificate [localdomain]: 回车
Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]: 回车(使用apache作为web服务器)
Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]: 回车(自动配置CA证书)
Please choose Data Warehouse sampling scale:
(1) Basic
(2) Full
(1, 2)[1]: 回车(使用基本的数据库示例初始化数据)
Do you want Setup to continue, with amount of memory less than recommended? (Yes, No) [No]: yes回车(因为是在虚拟机上装的,内存有点小,才会提示这个)
Please confirm installation settings (OK, Cancel) [OK]: 回车
然后等待部署完毕
至此,oVirt-Engine安装完毕,直接访问服务器的ip地址,会提示The redirection URI for client is not registered
解决方法:增加一个配置文件如下
vi /etc/ovirt-engine/engine.conf.d/99-sso.conf
写入内容:
SSO_CALLBACK_PREFIX_CHECK=false
重启ovirt-engine服务
service ovirt-engine restart
再次访问,错误提示消失,可以登录管理门户
帐号:admin密码:刚才设定的密码
界面预览:
总体来说 是一个不错的系统 还有很多功能、玩法,等着大家去探索
原创文章,作者:陌涛,如若转载,请注明出处:https://imotao.com/2544.html
评论列表(2条)
采集的不错,才在LOC发,你就采集了,很不错,小伙子
@pony:多谢Pony哥