Skip to content

Commit

Permalink
added what you learned section
Browse files Browse the repository at this point in the history
  • Loading branch information
lgchiaretto committed Dec 23, 2024
1 parent 5531921 commit dc7540e
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 12 deletions.
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise1-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,7 @@ NAME AGE STATUS READY
virtualmachine.kubevirt.io/exercise1 96m Running True
----

=== What you learned

In this exercise, you learned that virtual machines running on OpenShift Virtualization operate similarly to pods.
Specifically, when configuring resource `requests` for CPU or memory, you cannot allocate more resources to a virtual machine than are available on a single node.
2 changes: 2 additions & 0 deletions content/modules/ROOT/pages/exercise10-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,5 @@ virtctl start exercise10-b
----
virtctl ssh lab-user@exercise10-a -c 'ping -c 3 192.168.0.11'
----

=== What you learned
2 changes: 2 additions & 0 deletions content/modules/ROOT/pages/exercise11-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,5 @@ oc apply -f exercise11-b.yaml
----
virtctl ssh lab-user@exercise11-a -c 'ping -c 3 192.168.0.11'
----

=== What you learned
5 changes: 1 addition & 4 deletions content/modules/ROOT/pages/exercise12-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,4 @@ Warning: Permanently added 'vmi/exercise12-a.namespace-{user}' (ED25519) to the
Hey Hey Hey, it's working!!
----





=== What you learned
4 changes: 4 additions & 0 deletions content/modules/ROOT/pages/exercise2-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,7 @@ pod/virt-launcher-exercise2 1/1 Running 0 40s
NAME AGE STATUS READY
virtualmachine.kubevirt.io/exercise2 5m9s Running True
----

=== What you learned

In this exercise, you learned that virtual machines cannot be started if a `nodeSelector` is defined and no nodes match the specified label in the `nodeSelector`.
8 changes: 7 additions & 1 deletion content/modules/ROOT/pages/exercise3-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,10 @@ or
[source,sh,role=execute,subs="attributes"]
----
oc exec curlimage -- curl -s https://exercise3-namespace-{user}.apps.cluster-{guid}.dynamic.redhatworkshops.io
----
----

=== What you learned

In this exercise, you learned how to troubleshoot issues preventing external access to an application by examining all related network components in OpenShift.
You tested the application within the virtual machine, verified the service, and checked the route.
These steps help you to determine whether the issue is within OpenShift or an external system.
2 changes: 0 additions & 2 deletions content/modules/ROOT/pages/exercise4-break.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ In this scenario, a Virtual Machine named `exercise4` is currently in a Running

Your task is to investigate the problem by analyzing the VM’s resource usage, including CPU, memory, and other relevant metrics. You are permitted to adjust the VM's compute resources as needed to resolve the issue; however, a reboot is not permitted.

NOTE: The goal is to identify bottlenecks or misconfigurations and implement optimizations to enhance the application's efficiency within the virtualized infrastructure.

=== Analyzing CPU utilization within the virtual machine
++++
<a href="_images/exercise4/04-break01.png" target="_blank" class="popup">
Expand Down
9 changes: 8 additions & 1 deletion content/modules/ROOT/pages/exercise4-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ In this scenario, a Virtual Machine named `exercise4` is currently in a Running

Your task is to investigate the problem by analyzing the VM’s resource usage, including CPU, memory, and other relevant metrics. You are permitted to adjust the VM's compute resources as needed to resolve the issue; however, a reboot is not permitted.

NOTE: The goal is to identify bottlenecks or misconfigurations and implement optimizations to enhance the application's efficiency within the virtualized infrastructure.
[NOTE]
====
* The goal is to identify bottlenecks or misconfigurations and implement optimizations to enhance the application's efficiency within the virtualized infrastructure.
* Do not kill any process running inside the virtual machine
* Do not reboot the virtual machine
====

The steps to fix exercise4 are:

Expand Down Expand Up @@ -174,3 +179,5 @@ virtctl ssh lab-user@exercise4 -c 'lscpu | grep Socket'
Warning: Permanently added 'vmi/exercise4.namespace-{user}' (ED25519) to the list of known hosts.
4
----

=== What you learned
2 changes: 2 additions & 0 deletions content/modules/ROOT/pages/exercise5-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ virtctl console exercise5
----

- Check the disk availability using lsblk or fdisk -l command. The new additional disk from exercise5-vol-data1 should be there and ready to be format and mount by the user.

=== What you learned
4 changes: 3 additions & 1 deletion content/modules/ROOT/pages/exercise6-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,6 @@ oc get vmi
----
NAME AGE PHASE IP NODENAME READY
exercise6 3m50s Running 10.135.1.196 worker-cluster-vmnjk-3 True
----
----

=== What you learned
1 change: 1 addition & 0 deletions content/modules/ROOT/pages/exercise7-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,4 @@ NAME TARGETKIND TARGETNAME COMPLETE RESTORETIM
restore-exercise7-snapshot VirtualMachine exercise7 true 38s
----

=== What you learned
4 changes: 3 additions & 1 deletion content/modules/ROOT/pages/exercise8-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,6 @@ oc logs $PODNAME -n namespace-{user} -f --tail 10
[source,sh,role=execute,subs="attributes"]
----
virtctl ssh lab-user@exercise8
----
----

=== What you learned
4 changes: 3 additions & 1 deletion content/modules/ROOT/pages/exercise9-guided.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,6 @@ virtctl ssh lab-user@exercise9 --command 'sudo shutdown -h now'
[source,sh,role=execute,subs="attributes"]
----
oc get vm
----
----

=== What you learned
6 changes: 5 additions & 1 deletion content/modules/ROOT/pages/lab-environment.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ At the end of this lab, there's a xref:guidedsolution.adoc[Guided Solution] for

TIP: In this lab, there's no direct way to open a second terminal. However, on bastion you can use `tmux`, which comes pre-installed with some user-friendly customizations to enhance your experience. To start `tmux`, simply type `tmux` in the bastion terminal.

TIP: To copy and paste within `tmux`, use the mouse to select the text for copying, and press `Ctrl + V` to paste.
TIP: To copy and paste within `tmux`, use the mouse to select the text for copying, and press `Ctrl + V` to paste.

=== What you learned section

At the end of each `Guided Solution` exercise, you'll find a detailed explanation of the solution along with a review of the key concepts and skills you learned during the activity.

0 comments on commit dc7540e

Please sign in to comment.