瞎折腾-凯发网娱乐官网

微信扫一扫,分享到朋友圈

2

系统为: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-engine ovirt-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 ([email protected]) for ovirt-provider-ovn (yes, no) [yes]: 回车(使用默认的[email protected]内部管理员账号)
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 密码:刚才设定的密码

界面预览:

总体来说 是一个不错的系统 还有很多功能、玩法,等着大家去探索

展开阅读全文
这个博主很懒,懒死了。
上一篇

天级收录要下架 百度链接提交已改为“快速收录”和“普通收录”

下一篇

免费/高性价比国内外cdn一览 – 再也不怕找不到好用的cdn了。

你也可能喜欢

2 条评论

  1. 采集的不错,才在loc发,你就采集了,很不错,小伙子

    1. @pony 多谢pony哥

发表评论

this site uses akismet to reduce spam. .

插入图片