Professional Documents
Culture Documents
Classroom Setup
Classroom Setup
= CLASSROOM SETUP =
= for foundation-based RED HAT ENTERPRISE LINUX 9 =
= Version: 9.x-7 22-Jun-2022 (ChangeLog at end of document.) =
= North American INSTRUCTOR HOTLINE +1 (855) 236-0912 =
= (Check with NIIT for hotline numbers for other regions) =
===========================================================================
If your USB is already prepared and nothing goes wrong, the following
steps configure foundation0.ilt.example.com. If you have issues, read the
text that follows for a longer step-by-step guide.
17) Boot foundation0 first and check that services are running.
f0$ rht-verify-f0
18) Verify services on classroom VM, as instructor (password: Asimov):
f0$ ssh root@classroom.example.com rht-verify-classroom
19) Boot the various student foundationX machines (or let them boot them)
20) Students can then start as needed their VMs
The below chart attempts to identify the relationships between the "short
version steps" above in an attempt to optimize parallelism.
Parallelization Flowchart
=========================
boot: f0 rh124
|
_________________________ f0$ rht-verify-f0
/ / \
/ / \
| f0$ rht-f0finish -------- ------- PXE
| | fX - Install foundationX
| |____________ |
| \ Once all rebooted
| \ f0$ rht-pushcourse all
| \ |
| \ f0$ rht-showstate all
\ \ /
\ \ /
----------------------- Access/display slides
|
Start teaching students
DETAILED INSTRUCTIONS
---------------------
Make sure the USB device is inserted as it is needed for any and all
options.
Type in "f0 rh124" as indicated on the menu (substitute your course code
for rh124). Optionally, you may omit the course code if you want to
parallelize a larger content course. If your USB device was properly
configured, it should automatically find the install source and begin
the installation. If there are multiple technology versions of the same
course on the media, it will install the "newest" by default. If you
want to install an older version, simply specify the technology version
by typing "f0 rh124-rhel63" as indicated on the menu (substitute your
course code and technology for rh124-rhel63).
In UEFI mode, you would be presented with a menu that you can choose
f0, and then course, initially seeing a screen similar to:
If the installer asks for the install media, that means that something
has gone wrong. Confirm the USB device has been properly configured. The
install media should be found in ${USB_DEVICE}/rhel9.x/x86_64/isos/.
Recall that there is a usbvalidate option to the rht-usb-* script that
can be used to verify the contents of the USB media (see ClassPrep.txt
for details on verifying the RHCIfoundation manifest).
Anaconda will prompt for time zone information so wait until you have
selected that information before you leave the installation to do other
things (like put out the student workbooks). If you would like to alter
the keyboard or language, you can also do that here before clicking on
"Begin Installation" to continue the installation.
If you have grub issues, please see the GRUB ISSUES section in the
ClassroomTroubleshooting.txt.
4. Login as kiosk
A non-privileged user, kiosk, has been created for your use with the
default password of "redhat". The root password on the foundation
systems, which should not be shared with the students (they have
sufficient sudo), is "Asimov".
f0$ rht-verify-f0
If you left out the course code in step 1 (or perhaps mistyped it),
you will need to add the course content by hand. To install course
content *after* the installation/reboot of foundation0:
* Mount the USB media, reinserting the RHTINST USB device and wait for
it to automount.
* Begin copying the course files by:
f0$ rht-verify-f0
The Red Hat Enterprise Linux 9 classroom uses KVM virtualization. This
means that ALL of the machines (instructor and student workstations) must
have virtualization enabled in the BIOS. Ensure that each of the student
machines has virtualization enabled in the BIOS before beginning the
installation. It has been reported that some systems require a hard power
off followed by a power on after enabling virtualization in the BIOS.
To install the student foundation system, boot the system using PXE
(Intel's Pre-boot eXecution Environment) and choose an appropriate
"fX" that is unique for each physical system.
If you are in an environment where you are unable to access the PXE
support within the NIC (for example, BIOS boot menu locked), you may
boot the system from an rhci-foundation CD or RHTINST USB and type
"pxe" at the prompt:
boot: pxe
which will load a GPXE kernel from the CD and then load the PXE menu
as above. Choose an appropriate "fX" that is unique for each physical
system.
Note that this method requires the USB to remain inserted for the
duration of the install (just like the installation of f0).
Once all the foundationX systems have finished installing and they
have booted, we can push/update the variables on to these systems from
foundation0.
f0$ rht-pushcourse 12
9. Verify that student VM images were retrieved
Two options that may be useful with rht-showstate are --log and
--test.
10. New utility will start VMs (optionally secure and/or set keyboard)
If you want to both set the keyboard and change the passwords of your
systems, then specify both options at once:
--secure will prompt you for a password that will be used to change
the password on the physical foundation0 and the installed VMs. This
will change the root and kiosk passwords of foundation0. It will also
change the root and instructor passwords on classroom and "save" the
VM. Lastly, it will change the root and "default user" passwords on
the remaining infrastructure and demonstration VMs and "save" them.
It will also adjust the GRUB password on foundation0.
If you try to manually secure the VMs, remember that you may be
resetting them throughout the class, undoing your password change.
The above rht-f0finish utility endeavors to "save" the VM as a
checkpoint used by the "reset" verb.
--keyboard will allow you to specify the keyboard to apply to all
the instructor VMs:
The above will loop through each of the VMs, starting with classroom,
to change the keyboard settings of the virtual console, X11, and Gnome
(provided no one has logged in to Gnome yet). Then it saves the image
overlay so that subsequent reset operations return to the new keyboard.
The above uses the keyboard layout of "Great Britain". To get a list
of valid layouts, use "localectl list-x11-keymap-layouts" on a same
version physical or virtual system.
This utility will wait a default number of seconds each time it starts
the classroom VM. If you know you are on particularly slow hardware,
you may want to extend that delay time with the --delay option.
Likewise, if you are on very fast hardware, you may want to shrink it.
The symptom of guessing wrong (or too short a delay) is that the
settings (password/keyboard) were never updated on the classroom VM.
The other VMs are typically updated just fine. You should manually
update the classroom VM on your own if this happens.
The --delay SECONDS option may be combined with none, one, or more of
the other options: --secure, --keyboard KEYBOARD, and --prompt.
Lastly, to work around an unstable named service the first time the
classroom VM boots, you may want to pass the --named option.
f0$ rht-f0finish --named
This option will restart the named service on the classroom VM just
before running rht-verify-classroom on that classroom VM.
The --named option may be combined with any number of the other
options.
classroom$ rht-verify-classroom
If you are trying to do this with a wireless interface, you may get a
warning about no existing connection profile. Use the nm-applet to
create a wireless connection profile. Be careful as this will most
likely corrupt the /etc/resolv.conf settings on foundation0. Be sure
to immediately run rht-external to "fix" the DNS settings and enable
NAT forwarding to that now available wireless connection profile.
will produce a list of Access Points and their edvertised SSID, then:
f0# nmcli dev wifi con <SSID> password <KEY> name My_Wifi
classroom$ rht-config-nat
If you want external access for the physical foundation systems but no
external access for the virtual layer, you can instruct rht-external
to skip configuring the classroom VM by appending --noclassroom.
Begin class
===========
rht-secure-fX will prompt you for a password that will be used to change
the root and GRUB passwords on the physical foundationX.
f0$ rht-secure-fX 12
Some courses deliver VMs that are not bootable at the beginning of
class. The students can combine "all" with --prompt to allow them to
choose which VMs to process:
f0$ rht-showstate -v 12
17. Boot foundation0 and test that services are configured and running
f0$ rht-verify-f0
classroom$ rht-verify-classroom
20. Boot the various student foundationX machines (or let them boot them)
While students may have left their VMs in unusual states, if you would
prefer to launch them all you could use a quick loop as before:
Operational Support
===================
The above command will replace the url inside the roster file with one
that includes the offeringid. Students will then be prompted to login
to the online environment and confirm their name, email, and attendance.
At the end of class, a course completion certificate will be generated
and emailed to the student's provided/confirmed email address.
You should have received the Offering ID for the class in a confirmation
email, but can always be looked up by logging into the LMS (log in to
Instructor Central and choose Access LMS).
https://rol.redhat.com/rol/rhz/login?offering=<offeringid>
If the class does not have Internet access or the students are not
properly enrolled in the LMS (typically onsites) you will need to
have them fill this out from a cellphone or some other online device.
If you need to adjust the default URL that the roster is provided through,
you can either append the replacement URL as an argument to the --url
option or you can manually edit the source file found in
~kiosk/survey/rht-survey-roster.desktop.
B. Once roster has been filled in, remove the roster desktop icon
The above command will replace the url inside the survey file with one
that includes the offeringid to allow online anonymous collection of
the student feedback.
You should have received the Offering ID for the class in a confirmation
email, but can always be looked up by logging into the LMS (log in to
Instructor Central and choose Access LMS).
If the class does not have Internet access or the students are not
properly enrolled in the LMS (typically CTP events) you will need to
have them fill this out from a cellphone or some other online device.
D. Once surveys have been filled in, remove the survey desktop icon unless
you are wiping the environment (See ClassroomReset.txt)
If the roster was done online, login to the status page to mark the
class complete triggering the delivery of the course completion
certificates to the emails supplied during roster collection.
https://rol.redhat.com/rol/rhz/login?offering=<offeringid>
ssh keys exist on foundation0 and classroom to let you break in anywhere.
=============================================================================
CHANGELOG
=========
* Wed Jun 22 2022 Robert Locke <rlocke@redhat.com> - 9.x-7
- clarify non-use of roster/survey by RHA
- add more info on rht-external support of dns and wifi
* Fri May 20 2022 Robert Locke <rlocke@redhat.com> - 9.x-7
- prep for release
* Tue Mar 8 2022 Robert Locke <rlocke@redhat.com> - 8.x-7
- add references to UEFI boot menu and other clean up
* Mon Jul 19 2021 Robert Locke <rlocke@redhat.com> - 8.x-7
- add references to --named option for rht-f0finish
* Mon Aug 19 2019 Robert Locke <rlocke@redhat.com> - 8.x-7
- adjust roster/survey references
* Thu May 30 2019 Robert Locke <rlocke@redhat.com> - 8.x-7
- prep for release
* Mon Apr 1 2019 Robert Locke <rlocke@redhat.com> - 8.x-7
- switch some references to RHEL 8
- add --test and --log references to rht-showstate
* Fri Aug 17 2018 Robert Locke <rlocke@redhat.com> - 7.x-6
- add references to OFFERINGID for online roster
* Wed Mar 9 2018 Robert Locke <rlocke@redhat.com> - 7.x-6
- correct roster and survey desktop filename references
- remove references to second physical system
* Mon Nov 13 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- add wording around setting international keyboards
* Thu Jul 6 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- add reference to rht-movebr0
* Thu Jun 22 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- add rht-external --noclassroom option
* Thu Mar 30 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- change rht-external to use prefix rather than netmask
* Fri Mar 17 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- rht-f0finish securing GRUB and processing galaxy0
- rht-secure-fX - new utility to (un)secure physical student systems
* Tue Mar 7 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- autologin of kiosk on foundation0 disabled
* Fri Mar 3 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- add references to rht-pushdesktop and rht-collectsurvey
* Thu Feb 23 2017 Robert Locke <rlocke@redhat.com> - 7.x-5
- add references to rht-verify-classroom being run by rht-f0finish
* Fri Jun 10 2016 Robert Locke <rlocke@redhat.com> - 7.x-5
- shift uplink references to rht-external
* Wed Apr 6 2016 Robert Locke <rlocke@redhat.com> - 7.x-5
- add references to older technology installation
- add reference to lsicmf kickstart argument
* Mon Feb 22 2016 Robert Locke <rlocke@redhat.com> - 7.x-5
- add step 7a for installing secondary physical system
* Tue Feb 2 2016 Robert Locke <rlocke@redhat.com> - 7.x-5
- change hostX reference to galaxyX
* Thu Dec 3 2015 Robert Locke <rlocke@redhat.com> - 7.x-4
- expand USB removal warning to wait for shutdown also (SETUP-133)
* Tue Nov 3 2015 Robert Locke <rlocke@redhat.com> - 7.x-4
- add --delay option to rht-f0finish
* Fri Oct 23 2015 Robert Locke <rlocke@redhat.com> - 7.x-4
- add references to --prompt in rht-f0finish and rht-vmsetkeyboard
- rework short version to make it easier to follow
- add note about monitors.xml (thanks Phil!)
* Fri Aug 28 2015 Robert Locke <rlocke@redhat.com> 7.1-4
- add step for starting "private" workstation first
* Mon Jul 6 2015 Robert Locke <rlocke@redhat.com> 7.1-4
- add reference to rht-pushcourse spawning rht-vmctl get
* Mon Jun 1 2015 Robert Locke <rlocke@redhat.com> 7.1-3
- add reference to rht-verify-f0 --validate
* Wed May 20 2015 Robert Locke <rlocke@redhat.com> 7.1-3
- bump release
* Mon Apr 27 2015 Robert Locke <rlocke@redhat.com> 7.1-2
- minor versioning fixes
* Wed Mar 18 2015 Robert Locke <rlocke@redhat.com> 7.1-2
- merge rht-secure-f0 and rht-vmctl start all steps
* Thu Mar 5 2015 Robert Locke <rlocke@redhat.com> 7.1-2
- change loops to use rht-each
* Mon Nov 24 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add mention of virbr1 not starting until nfs-server is up.
* Tue Nov 18 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add references to GPXE support
* Fri Oct 31 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add warnings about rebooting needs to re-run verify scripts
* Wed Oct 1 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add rht-secure-f0
* Tue Sep 30 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add rht-setmaxstations
* Mon Sep 29 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add substep to correct local time on foundation0
- remove anaconda timing concern
* Thu Sep 11 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- rht-verify-f0 - clarify Failures vs. Warnings
* Fri Aug 29 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add references to --nocourse for rht-verify-f0
* Thu Aug 14 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- minor cleanups
* Wed Jul 9 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- update rht-vmsetkeyboard instructions to support RHEL 6 VMs
* Thu Jul 3 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add rht-vmsetkeyboard usage instructions
* Mon Jun 30 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add DHCP information to the Summary
* Tue Jun 24 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- split out to ClassroomReset.txt and ClassroomTroubleshooting.txt
* Mon Jun 23 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- fix obsolete reference to gnome-display-properties
* Thu Jun 19 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add references to new rht-showstate
* Mon Jun 16 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- adjust classroom scripts to run as instructor
* Wed Jun 4 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- prep for release
* Tue May 27 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- add Optimal Parallelism section
* Thu May 22 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- incorporate feedback from field instructor tests
* Thu May 1 2014 Robert Locke <rlocke@redhat.com> 7.0-1
- incorporate feedback from pilots
* Fri Dec 9 2013 Robert Locke <rlocke@redhat.com> 7.0-0
- initial release