前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos8安装部署ovirt-engine

centos8安装部署ovirt-engine

作者头像
summerking
发布2022-11-24 16:47:43
1.3K0
发布2022-11-24 16:47:43
举报
文章被收录于专栏:summerking的专栏

oVirt-engine既可以以虚机的形式部署在ovirt-node上,也可以部署在一台独立的服务器上(建议)

# 1. centos8最新化安装

# 2. centos8执行yum系统更新

  • centOS8于2021年12月31日停止了源的服务
代码语言:javascript
复制
cd /etc/yum.repos.d/ && mkdir backup && mv *repo backup/
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
sed -i -e "s|mirrors.cloud.aliyuncs.com|mirrors.aliyun.com|g " /etc/yum.repos.d/CentOS-*
sed -i -e "s|releasever|releasever-stream|g" /etc/yum.repos.d/CentOS-*
yum clean all && yum makecache
sudo yum -y update --allowerasing
...

# 3. 配置主机名解析

代码语言:javascript
复制
[root@engine108 ~]# hostname
engine108
[root@engine108 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.133.108 engine108
[root@engine108 ~]#

# 4. 关闭防火墙/SeLinux

代码语言:javascript
复制
systemctl stop firewalld
systemctl disable firewalld

编辑/etc/selinux/config, 将SELINUX=enforcing 更改为 SELINUX=disabled

# 5.重启机器

代码语言:javascript
复制
reboot -f

# 6. 配置ovirt4.4的yum源

代码语言:javascript
复制
[root@engine108 ~]# dnf install https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm
Repository extras is listed more than once in the configuration
CentOS Stream 8 - AppStream                                                                                                                                                                                  13 MB/s |  25 MB     00:01    
CentOS Stream 8 - BaseOS                                                                                                                                                                                     12 MB/s |  26 MB     00:02    
CentOS Stream 8 - Extras common packages                                                                                                                                                                    7.0 kB/s | 5.2 kB     00:00    
Last metadata expiration check: 0:00:01 ago on Fri 18 Nov 2022 06:16:46 PM CST.
ovirt-release44.rpm                                                                                                                                                                                          12 kB/s |  21 kB     00:01    
Dependencies resolved.
============================================================================================================================================================================================================================================
 Package                                                  Architecture                                 Version                                                                     Repository                                          Size
============================================================================================================================================================================================================================================
Installing:
 ovirt-release44                                          noarch                                       4.4.10.3-1.el8                                                              @commandline                                        21 k
Installing dependencies:
 python3-pip                                              noarch                                       9.0.3-22.el8                                                                AppStream                                           20 k
 python3-setuptools                                       noarch                                       39.2.0-6.el8                                                                base                                               163 k
 python36                                                 x86_64                                       3.6.8-38.module_el8.5.0+895+a459eca8                                        AppStream                                           19 k
 tar                                                      x86_64                                       2:1.30-6.el8                                                                base                                               838 k
Enabling module streams:
 python36                                                                                              3.6                                                                                                                                 

Transaction Summary
============================================================================================================================================================================================================================================
Install  5 Packages

Total size: 1.0 M
Total download size: 1.0 M
Installed size: 3.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): python3-pip-9.0.3-22.el8.noarch.rpm                                                                                                                                                                  152 kB/s |  20 kB     00:00    
(2/4): python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64.rpm                                                                                                                                             214 kB/s |  19 kB     00:00    
(3/4): python3-setuptools-39.2.0-6.el8.noarch.rpm                                                                                                                                                           588 kB/s | 163 kB     00:00    
(4/4): tar-1.30-6.el8.x86_64.rpm                                                                                                                                                                            1.3 MB/s | 838 kB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                       1.6 MB/s | 1.0 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                    1/1 
  Installing       : tar-2:1.30-6.el8.x86_64                                                                                                                                                                                            1/5 
  Running scriptlet: tar-2:1.30-6.el8.x86_64                                                                                                                                                                                            1/5 
  Installing       : python3-setuptools-39.2.0-6.el8.noarch                                                                                                                                                                             2/5 
  Installing       : python3-pip-9.0.3-22.el8.noarch                                                                                                                                                                                    3/5 
  Installing       : python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64                                                                                                                                                               4/5 
  Running scriptlet: python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64                                                                                                                                                               4/5 
  Installing       : ovirt-release44-4.4.10.3-1.el8.noarch                                                                                                                                                                              5/5 
  Running scriptlet: ovirt-release44-4.4.10.3-1.el8.noarch                                                                                                                                                                              5/5 
  Verifying        : python3-setuptools-39.2.0-6.el8.noarch                                                                                                                                                                             1/5 
  Verifying        : tar-2:1.30-6.el8.x86_64                                                                                                                                                                                            2/5 
  Verifying        : python3-pip-9.0.3-22.el8.noarch                                                                                                                                                                                    3/5 
  Verifying        : python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64                                                                                                                                                               4/5 
  Verifying        : ovirt-release44-4.4.10.3-1.el8.noarch                                                                                                                                                                              5/5 

Installed:
  ovirt-release44-4.4.10.3-1.el8.noarch          python3-pip-9.0.3-22.el8.noarch          python3-setuptools-39.2.0-6.el8.noarch          python36-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64          tar-2:1.30-6.el8.x86_64         

Complete!

# 7. 启用需要的模块

代码语言:javascript
复制
[root@engine108 ~]# dnf module -y enable javapackages-tools
Repository extras is listed more than once in the configuration
CentOS-8-stream - Ceph Pacific                                                                                                                                                                              584 kB/s | 456 kB     00:00    
CentOS Stream 8 - PowerTools                                                                                                                                                                                983 kB/s | 5.1 MB     00:05    
determining the fastest mirror (13 hosts).. done.                                                      [                                    ===                                                           ] 201  B/s | 726  B     --:-- ETA
Latest oVirt 4.4 Release                                                                                                                                                                                     59 kB/s | 2.7 MB     00:47    
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                                              1.4 MB/s |  13 MB     00:09    
CentOS-8-stream - Gluster 8                                                                                                                                                                                  59 kB/s |  42 kB     00:00    
virtio-win builds roughly matching what will be shipped in upcoming RHEL                                                                                                                                     77 kB/s | 194 kB     00:02    
Copr repo for EL8_collection owned by sbonazzo                                                                                                                                                               83 kB/s | 246 kB     00:02    
Copr repo for gluster-ansible owned by sac                                                                                                                                                                  4.2 kB/s | 7.3 kB     00:01    
CentOS-8 - Advanced Virtualization                                                                                                                                                                          251 kB/s | 207 kB     00:00    
CentOS-8 - oVirt 4.4                                                                                                                                                                                         49 kB/s | 1.2 MB     00:24    
CentOS-8 - OpsTools - collectd                                                                                                                                                                               69 kB/s |  41 kB     00:00    
CentOS-8 - OpsTools - collectd - vault                                                                                                                                                                       93 kB/s | 149 kB     00:01    
CentOS-8 - NFV OpenvSwitch                                                                                                                                                                                  299 kB/s | 175 kB     00:00    
CentOS-8 - OpenStack victoria                                                                                                                                                                               3.7 MB/s | 3.3 MB     00:00    
Dependencies resolved.
============================================================================================================================================================================================================================================
 Package                                                  Architecture                                            Version                                                    Repository                                                Size
============================================================================================================================================================================================================================================
Enabling module streams:
 javapackages-tools                                                                                               201801                                                                                                                   

Transaction Summary
============================================================================================================================================================================================================================================

Complete!

[root@engine108 ~]# dnf module -y enable pki-deps
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:00:35 ago on Fri 18 Nov 2022 06:19:13 PM CST.
Dependencies resolved.
============================================================================================================================================================================================================================================
 Package                                                  Architecture                                            Version                                                    Repository                                                Size
============================================================================================================================================================================================================================================
Enabling module streams:
 pki-deps                                                                                                         10.6                                                                                                                     

Transaction Summary
============================================================================================================================================================================================================================================

Complete!
[root@engine108 ~]# dnf module -y enable postgresql:12
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:00:59 ago on Fri 18 Nov 2022 06:19:13 PM CST.
Dependencies resolved.
============================================================================================================================================================================================================================================
 Package                                                  Architecture                                            Version                                                    Repository                                                Size
============================================================================================================================================================================================================================================
Enabling module streams:
 postgresql                                                                                                       12                                                                                                                       

Transaction Summary
============================================================================================================================================================================================================================================

Complete!

[root@engine108 ~]# dnf -y update
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:01:35 ago on Fri 18 Nov 2022 06:19:13 PM CST.
Dependencies resolved.
============================================================================================================================================================================================================================================
 Package                                             Architecture                                   Version                                               Repository                                                                   Size
============================================================================================================================================================================================================================================
Upgrading:
 libzstd                                             x86_64                                         1.4.5-6.el8                                           ovirt-4.4-centos-openstack-victoria                                         335 k
 python3-six                                         noarch                                         1.15.0-2.el8                                          ovirt-4.4-centos-openstack-victoria                                          39 k

Transaction Summary
============================================================================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 375 k
Downloading Packages:
(1/2): python3-six-1.15.0-2.el8.noarch.rpm                                                                                                                                                                  211 kB/s |  39 kB     00:00    
(2/2): libzstd-1.4.5-6.el8.x86_64.rpm                                                                                                                                                                       1.3 MB/s | 335 kB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                       528 kB/s | 375 kB     00:00     
CentOS-8 - OpenStack victoria                                                                                                                                                                               972  B/s | 1.0 kB     00:01    
Importing GPG key 0x764429E6:
 Userid     : "CentOS Cloud SIG (http://wiki.centos.org/SpecialInterestGroup/Cloud) <security@centos.org>"
 Fingerprint: 736A F511 6D9C 40E2 AF6B 074B F9B9 FEE7 7644 29E6
 From       : https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Cloud
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                    1/1 
  Upgrading        : python3-six-1.15.0-2.el8.noarch                                                                                                                                                                                    1/4 
  Upgrading        : libzstd-1.4.5-6.el8.x86_64                                                                                                                                                                                         2/4 
  Cleanup          : python3-six-1.11.0-8.el8.noarch                                                                                                                                                                                    3/4 
  Cleanup          : libzstd-1.4.4-1.el8.x86_64                                                                                                                                                                                         4/4 
  Running scriptlet: libzstd-1.4.4-1.el8.x86_64                                                                                                                                                                                         4/4 
  Verifying        : libzstd-1.4.5-6.el8.x86_64                                                                                                                                                                                         1/4 
  Verifying        : libzstd-1.4.4-1.el8.x86_64                                                                                                                                                                                         2/4 
  Verifying        : python3-six-1.15.0-2.el8.noarch                                                                                                                                                                                    3/4 
  Verifying        : python3-six-1.11.0-8.el8.noarch                                                                                                                                                                                    4/4 

Upgraded:
  libzstd-1.4.5-6.el8.x86_64                                                                                         python3-six-1.15.0-2.el8.noarch                                                                                        

Complete!

安装ovirt-engine软件包

[root@engine108 ~]# dnf -y install ovirt-engine
...
...
  xmlrpc-common-3.1.3-1.el8.noarch                                          xmlstreambuffer-1.5.4-8.module_el8.4.0+595+e59c9af2.noarch                        xorg-x11-font-utils-1:7.5-41.el8.x86_64                                      
  xorg-x11-fonts-ISO8859-1-100dpi-7.5-19.el8.noarch                         xorg-x11-server-utils-7.7-27.el8.x86_64                                           xsom-0-19.20110809svn.module_el8.4.0+595+e59c9af2.noarch                     
  yajl-2.1.0-11.el8.x86_64                                                 

Complete!
[root@engine108 ~]#

# 8. 初始化配置ovirt-engine

代码语言:javascript
复制
[root@engine108 ~]# engine-setup
[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: /etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf, /etc/ovirt-engine-setup.conf.d/10-packaging.conf
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20221118183714-q5ad7r.log
          Version: otopi-1.9.6 (otopi-1.9.6-1.el8)
[ INFO  ] DNF Repository extras is listed more than once in the configuration
...
...
         
          --== SUMMARY ==--
         
[ INFO  ] Restarting httpd
          Please use the user 'admin@internal' and password specified in order to login
          Web access is enabled at:
              http://engine108:80/ovirt-engine
              https://engine108:443/ovirt-engine
          Internal CA 14:CA:B6:20:39:55:F2:9C:94:11:CA:33:FC:87:4B:1E:FF:0B:85:C1
          SSH fingerprint: SHA256:j2n0/Z/QiWfSZrI5TrMOM1Utboz73gcmJsTHM8Z0GY8
[WARNING] Less than 16384MB of memory is available
          Web access for grafana is enabled at:
              https://engine108/ovirt-engine-grafana/
          Please run the following command on the engine machine engine108, for SSO to work:
          systemctl restart ovirt-engine
         
          --== END OF SUMMARY ==--
         
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20221118183714-q5ad7r.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20221118184041-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ INFO  ] Execution of setup completed successfully
[root@engine108 ~]# 
[root@engine108 ~]# echo "export LC_ALL=en_US.UTF8" >> /etc/profile
[root@engine108 ~]# source /etc/profile
  • 注意 我们的win机器必须配置hosts文件才能访问

# 9. 配置NFS存储

代码语言:javascript
复制
mkdir -p /data/vmstorage /data/iso /data/export
chown 36:36 /data/iso/ 
chown 36:36 /data/vmstorage
chown 36:36 /data/export
chmod 755 /data/vmstorage/
chmod 755 /data/iso/
chmod 755 /data/export
vi /etc/exports 

[root@node150-1 ~]# cat /etc/exports
/data/iso 0.0.0.0/0.0.0.0(rw,sync)
/data/vmstorage 0.0.0.0/0.0.0.0(rw,sync)
/data/export 0.0.0.0/0.0.0.0(rw,sync)

exportfs -a
systemctl restart nfs-server rpcbind.service
systemctl enable nfs-server rpcbind.service

# 10. 上传镜像

代码语言:javascript
复制
[root@node150-1 images]# cd   /data/iso/2270b708-4692-4a77-9d96-3b2c859b576b/images/11111111-1111-1111-1111-111111111111/
[root@node150-1 11111111-1111-1111-1111-111111111111]# ll
total 996352
-rw-r--r--. 1 root root 1020264448 Nov 17 09:15 CentOS-7-x86_64-Minimal-2009.iso
[root@node150-1 11111111-1111-1111-1111-111111111111]# pwd
/data/iso/2270b708-4692-4a77-9d96-3b2c859b576b/images/11111111-1111-1111-1111-111111111111
[root@node150-1 11111111-1111-1111-1111-111111111111]# 

Virt-Viewer下载地址

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-11-21,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • # 1. centos8最新化安装
  • # 2. centos8执行yum系统更新
  • # 3. 配置主机名解析
  • # 4. 关闭防火墙/SeLinux
  • # 5.重启机器
  • # 6. 配置ovirt4.4的yum源
  • # 7. 启用需要的模块
  • # 8. 初始化配置ovirt-engine
  • # 9. 配置NFS存储
  • # 10. 上传镜像
相关产品与服务
Grafana 服务
Grafana 服务(TencentCloud Managed Service for Grafana,TCMG)是腾讯云基于社区广受欢迎的开源可视化项目 Grafana ,并与 Grafana Lab 合作开发的托管服务。TCMG 为您提供安全、免运维 Grafana 的能力,内建腾讯云多种数据源插件,如 Prometheus 监控服务、容器服务、日志服务 、Graphite 和 InfluxDB 等,最终实现数据的统一可视化。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档