Skip to content

Edits suggested by Rutuja #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ When ordering this catalog item in RHDP:

. Select *Practice/Enablement* for the *Activity* field.
. Select the nearest or any region in the *Region* field.
. Select *n3.xlarge.x86* as the flavor in *Type* field.
. Select *n3.xlarge.x86* as the flavor in the *Type* field.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay


=== Red Hat Partners

Expand All @@ -45,7 +45,7 @@ For this course, you should have:
* https://rol.redhat.com/rol/app/courses/do280-4.14[Red Hat OpenShift Administration II: Configuring a Production Cluster (DO280),window=read-later], or equivalent knowledge on configuring a production Red Hat OpenShift cluster.
* https://rol.redhat.com/rol/app/technical-overview/do016-4.14[Red Hat OpenShift Virtualization (OCP Virt) Technical Overview (DO016),window=read-later]
* https://rol.redhat.com/rol/app/courses/do316-4.14[Managing Virtual Machines with Red Hat OpenShift Virtualization (DO316),window=read-later], or equivalent knowledge on how to create virtual machines on Red Hat OpenShift cluster using Red Hat OpenShift Virtualization.
* Knowledge on installing Red Hat Advanced Cluster Management (RHACM) operator
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no link for this.

* Knowledge of installing Red Hat Advanced Cluster Management (RHACM) operator

== Objectives

Expand Down
40 changes: 20 additions & 20 deletions modules/appendix/pages/section1.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= Initial Setup on Hypervisor without Automation

Before proceeding the actual MCAP deployment, let's first ensure the initial setup and configuration is done on the hypervisor.
You will need to perform few tasks before actual deployment of openshift clusters.
Before proceeding with the actual MCAP deployment, let's first ensure the initial setup and configuration are done on the hypervisor.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

You will need to perform a few tasks before the actual deployment of openshift clusters.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay


image::MCAP_setup_1.png[]

Expand All @@ -20,10 +20,10 @@ Login as `root` on the hypervisor.

== Setup and Configuration without Automation

=== Create SSH key for the root user
=== Create an SSH key for the root user
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay


The public key from the following command will be used while deploying _Hub_ and _Infrastructure_ clusters.
You will be asked for public key while building the discovery iso for the host.
You will be asked for a public key while building the discovery iso for the host.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay


[source,bash,role=execute]
----
Expand All @@ -32,8 +32,8 @@ ssh-keygen -t rsa -f /root/.ssh/id_rsa -N ''

=== Install the required packages

The following required packages needed for DHCP server, HTTP server, DNS server, VNC server and creating virtual machines on hypervisor.
It also include additional tools packages.
The following required packages are needed for DHCP server, HTTP server, DNS server, VNC server, and creating virtual machines on the hypervisor.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

It also includes additional tools and packages.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


[source,bash,role=execute]
----
Expand All @@ -44,9 +44,9 @@ libguestfs-tools-c cockpit cockpit-machines unzip tigervnc tigervnc-server firef

=== Increase the _Swap_ space

_Swap_ space is extension of physical RAM.
_Swap_ space is an extension of physical RAM.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

It offers virtual memory in case of physical RAM is fully used.
MCAP needs considerable amount of memory and it is recommended to have proportionate amount of _Swap_ space configured in an environment.
MCAP needs a considerable amount of memory and it is recommended to have a proportionate amount of _Swap_ space configured in an environment.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


. Disable the existing _Swap_ first.
+
Expand All @@ -55,7 +55,7 @@ MCAP needs considerable amount of memory and it is recommended to have proportio
swapoff -a
----
+
Check the _Swap_ space using `free` command.
Check the _Swap_ space using the `free` command.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand Down Expand Up @@ -93,7 +93,7 @@ Here `nvme1n1` disk can be used to create the swap space.
The NVMe disk sequencing used as an OS partition will change, whenever you provision the catalog.
The unused NVMe disk may vary in your environment output.

. Use unused 250GB nvme disk as swap partition.
. Use unused 250GB nvme disk as a swap partition.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -111,7 +111,7 @@ The above UUID may differ in your environment.

. Add swap entry in `/etc/fstab` to make it persistent throughout the reboot.
+
Ensure to replace the UUID in following command with UUID from previous step.
Ensure to replace the UUID in following command with the UUID from the previous step.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand Down Expand Up @@ -147,7 +147,7 @@ Swap: 238Gi 0B 238Gi

=== Create LV for VM storage pool

The LV created in this section will be used as storage pool for virtual machine disks and backend shared OpenShift DataFoundation using Red Hat Ceph storage for _Tenant_ cluster.
The LV created in this section will be used as a storage pool for virtual machine disks and backend-shared OpenShift DataFoundation using Red Hat Ceph storage for the _Tenant_ cluster.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


. Find the 3.5TB nvme disks.
+
Expand Down Expand Up @@ -229,14 +229,14 @@ The above UUID may differ in your environment.

. Mount the 7TB LV on `/var/lib/libvirt/images`.
+
Ensure to replace the UUID in following command with UUID from previous step.
Ensure to replace the UUID in the following command with UUID from the previous step.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
echo "UUID=195dc91e-58be-4671-bbf5-b4fdf70945e2 /var/lib/libvirt/images ext4 errors=remount-ro 0 1" >> /etc/fstab
----
+
Run `mount` command to mount the LV on `/var/lib/libvirt/images`.
Run the `mount` command to mount the LV on `/var/lib/libvirt/images`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand Down Expand Up @@ -273,7 +273,7 @@ After enabling and starting the libvirt services, `virbr0` bridge will be create
You can verify it by running the `ip addr` command.

After enabling and starting the cockpit services, it creates cockpit web console access.
You can login to cockpit web console with `lab-user's` credentials.
You can log in to the cockpit web console with the `lab-user's` credentials.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


[source,bash,role=execute]
----
Expand All @@ -300,7 +300,7 @@ You can use the cockpit web console (https://<your_hypervisor_IP>:9090/) to moni

=== Configure DHCP

It is recommended to have DHCP server.
It is recommended to have the DHCP server.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

In this section, you will be configuring the DHCP server.

. Create the `/etc/dhcp/dhcpd.conf` file.
Expand Down Expand Up @@ -393,7 +393,7 @@ systemctl start dhcpd

=== Configure DNS

To have name resolution, DNS server is needed.
To have name resolution, the DNS server is needed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

In this section, you will be configuring the DNS server.

. Create the `/etc/named.conf` file.
Expand Down Expand Up @@ -692,9 +692,9 @@ dig sno1.lab.example.com
=== Configure HTTP

The HTTP server is needed to serve the ignition configuration files.
These ignition configuration files will be pulled from HTTP server during the openshift node installation.
These ignition configuration files will be pulled from the HTTP server during the openshift node installation.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

In this section, you will be configuring the HTTP server.
There are multiple ways to configure the HTTP server but here directory from user's home directory holds the files.
There are multiple ways to configure the HTTP server but here directory from the user's home directory holds the files.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


. Create the `/etc/httpd/conf.d/userdir.conf` file.
+
Expand Down Expand Up @@ -818,7 +818,7 @@ rm /home/lab-user/public_html/cmd
[NOTE]
"HTTP/1.1 200 OK" indicates http server is working.

=== Create Storage Pool for KVMs
=== Create a Storage Pool for KVMs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


All five KVMs need the storage pool for storing the VM disks.
In this section, you will be creating the storage pool.
Expand Down
10 changes: 5 additions & 5 deletions modules/appendix/pages/section2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image::MCAP_setup_2.png[]

. Download the `rhel-9.4-x86_64-kvm.qcow2` image from the https://access.redhat.com/downloads/content/rhel[Red Hat Customer Portal,window=read-later] to your laptop/desktop.

. Use secured copy (scp) to copy the `rhel-9.4-x86_64-kvm.qcow2` image from your laptop/desktop to hypervisor and then place it in `/root` directory.
. Use secured copy (scp) to copy the `rhel-9.4-x86_64-kvm.qcow2` image from your laptop/desktop to the hypervisor and then place it in `/root` directory.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand Down Expand Up @@ -63,7 +63,7 @@ cluster_size: 65536
...output omitted...
----

. Resize the image with additional size of 30G.
. Resize the image with an additional size of 30G.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -72,7 +72,7 @@ qemu-img resize rhel-9.4-x86_64-kvm.qcow2 +30G
+
This increases the virtual size of the disk.
+
Ensure virtual size is increased by 30GB.
Ensure the virtual size is increased by 30GB.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand Down Expand Up @@ -121,7 +121,7 @@ https://access.redhat.com/solutions/57263[How to extend a XFS filesytem using th
virt-customize -a rhel-9.4-x86_64-kvm.qcow2 --root-password password:redhat
----
+
You can use this password for logging into VM via console.
You can use this password for logging into VM via the console.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


. Disable the `cloud-init` service in qcow2 image.
+
Expand Down Expand Up @@ -207,7 +207,7 @@ Domain 'storage' started

----
+
Verify `storage` VM is in `running` state.
Verify `storage` VM is in a `running` state.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand Down
18 changes: 9 additions & 9 deletions modules/appendix/pages/section3.adoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
= Hub VM Deployment without Automation

In this section, you will be creating one KVM with name `hub`.
In this section, you will be creating one KVM with the name `hub`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


image::MCAP_setup_3.png[]

== Prerequisites

Copy the `rhel-9.4-x86_64-kvm.qcow2` image from `/root` and place it in /var/lib/libvirt/images directory with name as `rhel9-guest.qcow2`.
Copy the `rhel-9.4-x86_64-kvm.qcow2` image from `/root` and place it in /var/lib/libvirt/images directory with the name as `rhel9-guest.qcow2`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


.Sample output
----
Expand Down Expand Up @@ -48,7 +48,7 @@ cluster_size: 65536
...output omitted...
----

. Resize the image with additional size of 120G.
. Resize the image with an additional size of 120G.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -57,7 +57,7 @@ qemu-img resize rhel9-guest.qcow2 +120G
+
This increases the virtual size of the disk.
+
Ensure virtual size is increased by 120GB.
Ensure the virtual size is increased by 120GB.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand Down Expand Up @@ -107,7 +107,7 @@ https://access.redhat.com/solutions/57263[How to extend a XFS filesytem using th
virt-customize -a rhel9-guest.qcow2 --root-password password:redhat
----
+
You can use this password for logging into VM via console.
You can use this password for logging into the VM via the console.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


. Disable the `cloud-init` service in qcow2 image.
+
Expand All @@ -130,7 +130,7 @@ virt-customize -a rhel9-guest.qcow2 --ssh-inject root:file:/root/.ssh/id_rsa.pub
virt-customize -a rhel9-guest.qcow2 --selinux-relabel
----

. Create the image for `hub` VM using the _rhel9.X_ qcow2 image.
. Create the image for the `hub` VM using the _rhel9.X_ qcow2 image.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -144,7 +144,7 @@ Formatting '/var/lib/libvirt/images/hub.qcow2', fmt=qcow2 cluster_size=65536 ext

. Create the `hub` VM with three 2TB disks.
Disk path should be storage pool path i.e. `/var/lib/libvirt/images/`.
mac address for the `hub` VM should be same as from the dhcp configuration.
mac address for the `hub` VM should be the same as from the dhcp configuration.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand Down Expand Up @@ -190,7 +190,7 @@ Domain 'hub' started

----
+
Verify `hub` VM is in `running` state.
Verify `hub` VM is in a `running` state.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand All @@ -204,7 +204,7 @@ virsh list --all

. Verify `hub` VM is booted successfully.
+
Take the console of the `hub` VM and login as _root_ user with _redhat_ as password.
Take the console of the `hub` VM and log in as _root_ user with _redhat_ as the password.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand Down
24 changes: 12 additions & 12 deletions modules/appendix/pages/section4.adoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
= Infrastructure VM Deployment without Automation

In this section, you will be creating three KVMs with name `sno1`, `sno2` and `sno3`.
In this section, you will be creating three KVMs with the name `sno1`, `sno2`, and `sno3`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


image::MCAP_setup_4.png[]

== Prerequisites

Copy the `rhel-9.4-x86_64-kvm.qcow2` image from `/root` and place it in `/var/lib/libvirt/images` directory with name as `rhel9-guest-sno.qcow2`.
Copy the `rhel-9.4-x86_64-kvm.qcow2` image from `/root` and place it in `/var/lib/libvirt/images` directory with the name `rhel9-guest-sno.qcow2`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


.Sample output
----
Expand Down Expand Up @@ -48,7 +48,7 @@ cluster_size: 65536
...output omitted...
----

. Resize the image with additional size of 120G.
. Resize the image with an additional size of 120G.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -57,7 +57,7 @@ qemu-img resize rhel9-guest-sno.qcow2 +120G
+
This increases the virtual size of the disk.
+
Ensure virtual size is increased by 120GB.
Ensure the virtual size is increased by 120GB.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand Down Expand Up @@ -107,7 +107,7 @@ https://access.redhat.com/solutions/57263[How to extend a XFS filesytem using th
virt-customize -a rhel9-guest-sno.qcow2 --root-password password:redhat
----
+
You can use this password for logging into VM via console.
You can use this password for logging into the VM via the console.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.


. Disable the `cloud-init` service in qcow2 image.
+
Expand Down Expand Up @@ -165,7 +165,7 @@ Formatting '/var/lib/libvirt/images/sno2.qcow2', fmt=qcow2 cluster_size=65536 ex
Formatting '/var/lib/libvirt/images/sno3.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=139586437120 backing_file=/var/lib/libvirt/images/rhel9-guest-sno.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
----

. Create the `sno1`, `sno2` and `sno3` VMs.
. Create the `sno1`, `sno2`, and `sno3` VMs.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

Disk path should be storage pool path i.e. `/var/lib/libvirt/images/`.
mac address for the `sno1`, `sno2` and `sno3` VMs should be same as from the dhcp configuration.
+
Expand Down Expand Up @@ -229,7 +229,7 @@ You can restart your domain by running:
virsh --connect qemu:///system start sno3
----
+
Verify `sno1`, `sno2` and `sno3` VMs are created and in `shut off` state.
Verify that `sno1`, `sno2` and `sno3` VMs are created and are in `shut off` state.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand All @@ -244,7 +244,7 @@ virsh list --all
- sno3 shut off
----

. Start the `sno1`, `sno2` and `sno3` VMs.
. Start the `sno1`, `sno2`, and `sno3` VMs.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -261,7 +261,7 @@ Domain 'sno3' started

----
+
Verify `sno1`, `sno2` and `sno3` VMs are in `running` state.
Verify `sno1`, `sno2`, and `sno3` VMs are in `running` state.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
.Sample output
----
Expand All @@ -276,9 +276,9 @@ virsh list --all
25 sno3 running
----

. Verify `sno1`, `sno2` and `sno3` VMs are booted successfully.
. Verify `sno1`, `sno2` and, `sno3` VMs are booted successfully.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
Take the console of the `sno1`, `sno2` and `sno3` VMs and login as _root_ user with _redhat_ as password.
Take the console of the `sno1`, `sno2`, and `sno3` VMs and login as _root_ user with _redhat_ as password.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

+
[source,bash,role=execute]
----
Expand All @@ -297,4 +297,4 @@ Password:
[root@sno1 ~]#
----
+
Similarly verify `sno2` and `sno3` VMs are booted successfully.
Similarly, verify that `sno2` and `sno3` VMs are booted successfully.
Loading
Loading