Skip to content

Commit

Permalink
Merge pull request #2 from gfbarros/main
Browse files Browse the repository at this point in the history
Updated numerous images and some text for new version.
  • Loading branch information
acowles-redhat authored Aug 21, 2024
2 parents a54344a + 36899f9 commit bd90174
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 42 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions content/modules/ROOT/pages/module-01-intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Your login is available with:
* *User:* {user}
* *Password:* {password}

== Switch to Administrator View

After logging in you will show up in the Developer view,

[[create_project]]
== Create a New Project

Expand All @@ -39,6 +43,11 @@ The *Virtualization* tab is available only when Red Hat OpenShift Virtualization
====

. From the *Projects* dropdown switch to the project `vmimported-{user}`.
+
[NOTE]
====
The images in this lab guide may show different user numbers than your own. Do not worry, just create projects, etc with your user number.
====

. Examine the *VirtualMachines* dashboard that appears. There are currently several VMs listed, but they are not turned on:
+
Expand Down Expand Up @@ -183,6 +192,11 @@ image::module-01-intro/21_VM_Dialog_Migrate.png[link=self, window=blank, width=1
+
image::module-01-intro/22_Migrated.png[link=self, window=blank, width=100%]

. You can see the VM moving between nodes if you look at the Pod that is running the VM. Blink and you'll miss it though!
+
image::module-01-intro/23_PodLink.png[link=self, window=blank, width=100%]
image::module-01-intro/24_Pod.png[link=self, window=blank, width=100%]

== Summary

In this lab, we reviewed virtual machine state management tasks, and executed a live migration of a VM. Both of these are common and necessary tasks as platform administrators and a great way to familiarize yourself with some basic features available when working with VMs in OpenShift Virtualization.
2 changes: 1 addition & 1 deletion content/modules/ROOT/pages/module-04-storage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ There is a warning about the *cloudinitdisk* not being included in the snapshot.
+
image::module-04-storage/06_VM_Snapshot_Dialog.png[link=self, window=blank, width=100%]

. Press *Save* and wait till the _Snapshot_ has been created and the *status* shows as *Succeeded*.
. Press *Save* and wait till the _Snapshot_ has been created and the *status* shows as *Operation complete*.
+
image::module-04-storage/07_VM_Snapshot_Taken.png[link=self, window=blank, width=100%]

Expand Down
44 changes: 3 additions & 41 deletions content/modules/ROOT/pages/module-07-tempinst.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,44 +35,6 @@ image::module-07-tempinst/01_Template_List.png[link=self, window=blank, width=10
+
image::module-07-tempinst/02_Search_Centos9.png[link=self, window=blank, width=100%]

. Click on the template name for *centos-stream90-server-small*, you will be prompted with a message that default templates cannot be edited and asked if you'd like to clone. Click the *Create a new custom Template* option.
image::module-07-tempinst/= Template and InstanceType Management

== Introduction

Pre-configured Red Hat virtual machine templates are listed in the *Virtualization* -> *Templates* page. These templates are available for different versions of Red Hat Enterprise Linux, Fedora, CentOS, Microsoft Windows Desktop, and Microsoft Windows Server editions. Each Red Hat virtual machine template is preconfigured with an operating system image, the default settings for the operating system, the flavor (CPU and memory), and the workload type (server).

The *Templates* page displays four types of virtual machine templates:

* *Red Hat Supported* templates are fully supported by Red Hat.
* *User Supported* templates are *Red Hat Supported* templates that were cloned and created by users.
* *Red Hat Provided* templates have limited support from Red Hat.
* *User Provided* templates are *Red Hat Provided* templates that were cloned and created by users.

[[prepare_templates_lab]]
== Prepare for the lab

. The tasks that we are about to perform will require us to provision a few additional VMs. In preparation we are going to ask that you shut down the existing *fedora01* and *fedora02* virtual machines to ensure that your shared environment has enough resources to complete the lab.

. Navigate to *Virtualization -> Virtualmachines*
. Make sure you check every project that you have access to to see all VMs in the environment. At a minimum you should check projects `vmimported-{user}` and `vmexamples-{user}`
. If any VMs are showing a status of *Running* click the three dots to the right and select *Stop*.

Now all VMs should be in *Stopped* state.

[[clone_customize_template]]
== Clone and Customize a Template

By default pre-configured the templates provided by Red Hat OpenShift Virtualization cannot be customized. However you can clone a template and make adjustments to it for your particular workload in order to make it easier to request specific types of virtual machines for specific workloads. In this section of the lab we are going to do just this, by creating a template that will provide a preconfigured database server on demand for our end users.

. To begin, navigate to *Virtualization* -> *Templates* and select *openshift* for your project (you may need to open the *Project* drop-down and click the radio button next to *Show default projects*).
+
image::module-07-tempinst/01_Template_List.png[link=self, window=blank, width=100%]

. In the search bar type in *centos9* and in the list of templates that appear find the template for *centos-stream9-server-small*.
+
image::module-07-tempinst/02_Search_Centos9.png[link=self, window=blank, width=100%]

. Click on the template name for *centos-stream90-server-small*, you will be prompted with a message that default templates cannot be edited and asked if you'd like to clone. Click the *Create a new custom Template* option.
+
image::module-07-tempinst/03_Create_Custom_Template.png[link=self, window=blank, width=100%]
Expand Down Expand Up @@ -107,10 +69,10 @@ userData: |-
password: ${CLOUD_USER_PASSWORD}
chpasswd: { expire: False }
packages:
- mariadb-server
- mariadb-server
runcmd:
- systemctl enable mariadb
- systemctl start mariadb
- systemctl enable mariadb
- systemctl start mariadb
----
+
image::module-07-tempinst/10_Cloud_Init_Script.png[link=self, window=blank, width=100%]
Expand Down

0 comments on commit bd90174

Please sign in to comment.