OVM虚拟化平台安装成功后初始化配置方法!

对于首安装OVM用户,在OVM平台安装成功后,第一次登陆出现无法登陆的状况!OVM管理平台在成功安装后,必需进行admin初始化设置,方能成功登陆!首先,在你管理平台的ssh,就是不要用root登录,直接用admin登录,密码admin,或者你在root下面执行su – admin也可以。初始化你的平台系统。

平台配置方法

1、自动化配置

在/opt/esage/config/esage.properties这个路径文件 里含有

192.168.0.125的位置需要修改,修成了本地实际IP.

[root@localhost ~]# cat /opt/esage/config/esage.properties
[datacenter]
esage.database.host = 127.0.0.1
esage.rabbitmq.username = guest
esage.rabbitmq.host = 127.0.0.1
esage.appstore.templateLocation = 192.168.0.125:/vmimage
esage.appstore.localtemplatePath = /opt/templatelibrary/
esage.rabbitmq.password = guest
esage.datacenter.id = Default
esage.rabbitmq.port = 5672
esage.redis.host = 127.0.0.1
esage.redis.port = 6379
esage.event.identity = m_user
esage.platform.api.location = http://192.168.0.125:8009/api
esage.event.credential = m_password

[platform]
esage.platform.sessionTimeout = 60
esage.database.user = esage
esage.database.password = esage_2020@
esage.database.host = 127.0.0.1
esage.platform.mail.server = 127.0.0.1
esage.platform.mail.user = ovm_sf@51ovm.com
esage.platform.mail.password = none
esage.auth.module = esage
esage.rabbitmq.username = guest
esage.rabbitmq.password = guest
esage.rabbitmq.port = 5672
esage.redis.host = 127.0.0.1
esage.redis.port = 6379
esage.platform.api.location = http://192.168.0.125:8009/api
esage.rabbitmq.host = 127.0.0.1

2、如果自动化配置没有生效,需要手工配置:

ovm-UI配置文件的路径为:

在/var/www/html/ui/index.html这个路径文件里,含有192.168.0.125的位置需要全部修改成本地IP地址。
[root@localhost ~]# cat /var/www/html/ui/index.html
<!doctype html>
<html>
<head>
<meta charset=”utf-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″>
<title></title>
<meta name=”description” content=””>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no”>
<link rel=”stylesheet” href=”./styles/fonts.css”/>
<!–<link rel=”stylesheet” href=”./styles/react-select.css”/>–>
</head>
<body>
<!–[if lt IE 8]>
<p class=”browsehappy”>You are using an <strong>outdated</strong> browser. Please <a href=”http://browsehappy.com/”>upgrade
your browser</a> to improve your experience.</p>
<![endif]–>
<div id=”content”>
</div>
<script>
__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__
</script>
<script>
const global_uploadHost = ‘http://192.168.0.125:8009′;
const global_host = ‘http://192.168.0.125/api’;
</script>
<script type=”text/javascript” src=”assets/vendor.js”></script>
<script type=”text/javascript” src=”assets/main.js”></script>
</body>
</html>
[root@localhost ~]#

修改完配置文件后重启一下两个服务

[root@localhost ~]# systemctl restart esage-tomcat.service
[root@localhost ~]# systemctl restart httpd.service

此时,可以重新打开登陆页面,进行登陆!