11
2024
07
16:57:56

RHEl8.6安装ovirt4.5

一、配置源


1、基于rhel8.6适配


subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms

subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms


rpm -i --justdb --nodeps --force "http://mirror.centos.org/centos/8-stream/BaseOS/$(rpm --eval '%_arch')/os/Packages/centos-stream-release-8.6-1.el8.noarch.rpm"



cat >/etc/yum.repos.d/CentOS-Stream-Extras.repo <<'EOF'

[cs8-extras]

name=CentOS Stream $releasever - Extras

mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras&infra=$infra

#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/os/

gpgcheck=1

enabled=1

gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official

EOF


cat >/etc/yum.repos.d/CentOS-Stream-Extras-common.repo <<'EOF'

[cs8-extras-common]

name=CentOS Stream $releasever - Extras common packages

mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras-extras-common

#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/extras-common/

gpgcheck=1

enabled=1

gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Extras

EOF



echo "8-stream" > /etc/yum/vars/stream


dnf distro-sync --nobest


 

2、配置ovirt源


dnf install -y centos-release-ovirt45

 

启用javapackages-tools模块。


# dnf module -y enable javapackages-tools

 

启用pki-deps模块。


# dnf module -y enable pki-deps

 

启用postgresql模块的版本12。


# dnf module -y enable postgresql:12

 

启用mod_auth_openidc模块的版本2.3。


# dnf module -y enable mod_auth_openidc:2.3

 

启用nodejs模块的版本14:


# dnf module -y enable nodejs:14

 

同步已安装的软件包以将其更新到最新的可用版本。


# dnf distro-sync --nobest

 

3、基础配置


service firewalld  stop

systemctl disable firewalld

 

修改selinux


SELINUX=disabled

 

4、修改主机名


hostnamectl  set-hostname  ovirt4.5.com

# cat  /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

179.220.209.212 ovirt4.5.com

 

5、禁用IPV6


net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

 

6、安装ovirt包


dnf install ovirt-engine

 

执行安装


# engine-setup

 

除了禁用防火墙,以下三个参数设置为no,其他的默认


* Please note * : Keycloak is now deprecating AAA/JDBC authentication module.

          It is highly recommended to install Keycloak based authentication.

        * Please note * : Keycloak is now deprecating AAA/JDBC authentication module.

          It is highly recommended to install Keycloak based authentication.

          Configure Keycloak on this host (Yes, No) [Yes]:No

         

          Are you really sure not to install internal Keycloak based authentication?

          AAA modules are being deprecated

          Configure Keycloak on this host (Yes, No) [Yes]:No

          Use default credentials (admin@internal) for ovirt-provider-ovn (Yes, No) [Yes]:No

 

新建文件/etc/ovirt-engine/engine.conf.d/99-custom-sso-setup.conf内容如下


SSO_ALTERNATE_ENGINE_FQDNS="179.220.209.212"

 

7、登录界面添加节点


# yum -y install qemu-kvm libvirt virt-install bridge-utils vdsm


# systemctl start libvirtd 

# systemctl enable libvirtd

 

8、配置本地存储


mkfs.xfs /dev/sdb

mkdir  /data 

mount  /dev/sdb  /data/

mkdir -p  /data/data /data/image  /data/export

chown vdsm:kvm -R /data/

 

参考:


https://www.ovirt.org/documentation/installing_ovirt_as_a_standalone_manager_with_local_databases/index.html

————————————————





推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://hqyman.cn/post/7052.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: