开发环境搭建
1. 安装4.2的源
# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
2. 安装第三方依赖
# yum install git java-devel maven openssl \
# yum install ovirt-engine-wildfly ovirt-engine-wildfly-overlay
# yum install ovirt-host-deploy ovirt-setup-lib
3. 安装ovirt-engine
# yum install ovirt-engine*
4. 配置java
# alternatives --config java
# alternatives --config javac
5. 设置环境变量
设置环境变量(具体的值根据你系统安装的来设置)
source /etc/profile
6. 设置hostname
7. 配置数据库
=== PostgreSQL accessibility
Configure PostgreSQL to accept user and password:
Locate `pg_hba.conf` within your distribution, common locations are:
- `/var/lib/pgsql/data/pg_hba.conf`
- `/etc/postgresql-*/pg_hba.conf`
- `/etc/postgresql/*/main/pg_hba.conf`
- `/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_hba.conf` (el7 with rh-postgresql95)
Within `pg_hba.conf` set method to `password` for `127.0.0.1/32` and
`::1/128`.
Tune PostgreSQL configuration:
Locate `postgresql.conf` within your distribution, common locations are:
- `/var/lib/pgsql/data`
- `/etc/postgresql*`
- `/var/opt/rh/rh-postgresql95/lib/pgsql/data/postgresql.conf` (el7 with rh-postgresql95)
Within `postgresql.conf` set:
Restart the PostgreSQL service (`systemctl restart rh-postgresql95-postgresql` for the SCL one).
=== Database creation
Create database for ovirt-engine, usually the following sequence should
work to create a user named `engine` that owns database named `engine`:
8. 下载源码
# git clone git://gerrit.ovirt.org/ovirt-engine
9. 执行下面的命令编译(这个命令必须在非root用户下执行)
# make install-dev PREFIX="/home/ovirt-engine" DEV_BUILD_SCL_POSTGRESQL=1
10. 在非root用户下执行/home/ovirt-engin/bin/engine-setup --offline
// 非root用户下
12. 在web页面上登录192.168.1.114:8080
相关链接:
https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob_plain;f=README.adoc;hb=HEAD
# 数据库相关的rpm包
[root@engine114 ~]# rpm -qa|grep postgres rh-postgresql95-postgresql-9.5.9-4.el7.x86_64 rh-postgresql95-build-2.2-2.el7.x86_64 rh-postgresql95-2.2-2.el7.x86_64 rh-postgresql95-postgresql-plpython-9.5.9-4.el7.x86_64 rh-postgresql95-postgresql-devel-9.5.9-4.el7.x86_64 collectd-postgresql-5.8.0-3.el7.x86_64 rh-postgresql95-postgresql-libs-9.5.9-4.el7.x86_64 rh-postgresql95-postgresql-server-9.5.9-4.el7.x86_64 postgresql-libs-9.2.23-3.el7_4.x86_64 rh-postgresql95-postgresql-pltcl-9.5.9-4.el7.x86_64 rh-postgresql95-postgresql-test-9.5.9-4.el7.x86_64 rh-postgresql95-postgresql-plperl-9.5.9-4.el7.x86_64 rh-postgresql95-postgresql-docs-9.5.9-4.el7.x86_64 rh-postgresql95-runtime-2.2-2.el7.x86_64 rh-postgresql95-postgresql-contrib-9.5.9-4.el7.x86_64 rh-postgresql95-postgresql-static-9.5.9-4.el7.x86_64 rh-postgresql95-scldevel-2.2-2.el7.x86_64