|
2 | 2 | title: Installing on RHEL |
3 | 3 | authors: |
4 | 4 | - sandrobonazzola |
| 5 | + - gocallag |
5 | 6 | page_classes: download |
6 | 7 | --- |
7 | 8 |
|
8 | | -# Installing on RHEL or derivatives |
9 | | -## Installing on RHEL 8.6 or derivatives |
| 9 | +# Installing on RHEL 9.x or derivatives |
10 | 10 |
|
11 | | -In order to install oVirt 4.5 on RHEL 8.6 or derivatives you'll need to provide CentOS Stream required configuration. |
12 | | -The following bash code is needed before starting to install oVirt 4.5 on top of RHEL 8.6 |
| 11 | +## For RHEL 9.x |
13 | 12 |
|
14 | | -Specific to RHEL only: |
15 | | -```bash |
16 | | -subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms |
17 | | -subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms |
18 | | -subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms |
19 | | - |
20 | | -rpm -i --justdb --nodeps --force "https://vault.centos.org/centos/8-stream/BaseOS/$(rpm --eval '%_arch')/os/Packages/centos-stream-release-8.6-1.el8.noarch.rpm" |
21 | | -``` |
22 | | - |
23 | | -Specific to Rocky Linux only: |
24 | | -```bash |
25 | | -# On Rocky there's an issue with centos-release-nfv package from extras |
26 | | -dnf install -y dnf-plugins-core |
27 | | -dnf config-manager --set-disabled extras |
28 | | -``` |
29 | | - |
30 | | -Common to RHEL 8.6 and derivatives: |
31 | | - |
32 | | -```bash |
33 | | -cat >/etc/yum.repos.d/CentOS-Stream-Extras.repo <<'EOF' |
34 | | -[cs8-extras] |
35 | | -name=CentOS Stream $releasever - Extras |
36 | | -baseurl=https://vault.centos.org/$contentdir/8-stream/extras/$basearch/os/ |
37 | | -gpgcheck=1 |
38 | | -enabled=1 |
39 | | -gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official |
40 | | -EOF |
41 | | - |
42 | | -cat >/etc/yum.repos.d/CentOS-Stream-Extras-common.repo <<'EOF' |
43 | | -[cs8-extras-common] |
44 | | -name=CentOS Stream $releasever - Extras common packages |
45 | | -baseurl=https://vault.centos.org/$contentdir/8-stream/extras/$basearch/extras-common/ |
46 | | -gpgcheck=1 |
47 | | -enabled=1 |
48 | | -gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Extras |
49 | | -EOF |
50 | | - |
51 | | - |
52 | | -echo "8-stream" > /etc/yum/vars/stream |
| 13 | +The following repositories need to be enabled for RHEL 9.x only. |
53 | 14 |
|
54 | | -dnf distro-sync --nobest |
55 | | -``` |
56 | | - |
57 | | - |
58 | | -## Installing on RHEL 9.0 or derivatives |
59 | | - |
60 | | -Specific to RHEL only: |
61 | 15 | ```bash |
62 | 16 | subscription-manager repos --enable rhel-9-for-x86_64-baseos-rpms |
63 | 17 | subscription-manager repos --enable rhel-9-for-x86_64-appstream-rpms |
64 | 18 | subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms |
65 | 19 | subscription-manager repos --enable rhel-9-for-x86_64-resilientstorage-rpms |
66 | | - |
67 | | -rpm -i --justdb --nodeps --force "http://mirror.stream.centos.org/9-stream/BaseOS/$(rpm --eval '%_arch')/os/Packages/centos-stream-release-9.0-26.el9.noarch.rpm" |
68 | 20 | ``` |
69 | 21 |
|
70 | | -> **NOTE** |
71 | | -> If installation fails on `centos-stream-release-9.0-26.el9.noarch.rpm` please check the content of the repository for a newer version of that package. |
| 22 | +## For RHEL 9.x and RHEL 9.x derivatives |
72 | 23 |
|
73 | | -Common to RHEL 9.0 and derivatives: |
| 24 | +Once a minimal RHEL 9.x (or derivative) system has been built, you can install the pre-production master snapshots (oVirt Release 4.5.6 + Engine 4.5.7) |
74 | 25 |
|
75 | 26 | ```bash |
76 | | -cat >/etc/yum.repos.d/CentOS-Stream-Extras-common.repo <<'EOF' |
77 | | -[c9s-extras-common] |
78 | | -name=CentOS Stream $releasever - Extras packages |
79 | | -metalink=https://mirrors.centos.org/metalink?repo=centos-extras-sig-extras-common-$stream&arch=$basearch&protocol=https,http |
80 | | -gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Extras |
81 | | -gpgcheck=1 |
82 | | -repo_gpgcheck=0 |
83 | | -metadata_expire=6h |
84 | | -countme=1 |
85 | | -enabled=1 |
86 | | -EOF |
87 | | - |
88 | | -echo "9-stream" > /etc/yum/vars/stream |
89 | | - |
90 | | -dnf distro-sync --nobest |
| 27 | +dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-9 |
| 28 | +dnf install -y ovirt-release-master |
91 | 29 | ``` |
92 | 30 |
|
93 | | -Due to [Bug 2091581](https://bugzilla.redhat.com/show_bug.cgi?id=2091581), while installing the virtualization host |
94 | | -you will be missing `nmstate-plugin-ovsdb` or `python3-libnmstate` unless you install them from |
95 | | -CentOS build [nmstate-2.0.0-2.el9](https://kojihub.stream.centos.org/koji/buildinfo?buildID=17369). |
96 | | -While installing it you need to ensure openvswitch2.15 will be installed instead of any later version. |
97 | | - |
98 | | -Here's how to do that: |
99 | | - |
100 | | -```bash |
101 | | -dnf install -y centos-release-ovirt45 |
102 | | -dnf install -y ovirt-openvswitch |
103 | | -dnf install -y \ |
104 | | -https://kojihub.stream.centos.org/kojifiles/packages/nmstate/2.0.0/2.el9/noarch/nmstate-plugin-ovsdb-2.0.0-2.el9.noarch.rpm \ |
105 | | -https://kojihub.stream.centos.org/kojifiles/packages/nmstate/2.0.0/2.el9/noarch/python3-libnmstate-2.0.0-2.el9.noarch.rpm |
106 | | - |
107 | | -``` |
| 31 | +At this point you can choose to install the : |
| 32 | +* Minimal Host + Self-Hosted Engine, `dnf install -y ovirt-hosted-engine-setup` |
| 33 | +* A minimal host, `dnf install -y ovirt-host` |
0 commit comments