Open main menu

CDOT Wiki β

Changes

OPS245 Lab 2 dev

25 bytes added, 22:54, 14 February 2023
no edit summary
= LAB PREPARATION =
[[Image:vmware-1a-rhel.png|thumb|right|400px|At the end of lab2, your VMware Workstation application will contain '''4 virtual machines''' ('''c7hostr9host''' in your '''VMware Workstation''' application, and '''centos1rhel1, centos2rhel2, centos3 rhel3 VMs''' in your '''KVM''' application). You will now have the option to run one virtual machine at a time, or run all machines simultaneously to learn about networking (covered in later labs) ]]
=== Purpose / Objectives of Lab 2===
# What happens when the installation is finished?
# '''In a web browser''', click the kickstart (KS) link above. This link is a text file. Read through it to find the following information (pay attention to lines starting with #) and record it in your Lab Logbook:<ul><li>'''Regular-user account name'''</li><li>'''Regular-user account password'''</li><li>'''Root Password'''</li></ul>
# '''Note:''' the Regular-user account password and Root Passwords are encryptedin the kickstart (ks) file. They are both the same as the Regular-user account name (ops245).
# Boot the virtual machine and log in (use the user ID and password information from the previous step to gain access to this VM).
# Compare the experience to the first time you booted the other virtual machines.
# Use the '''virsh start''' command to launch all the VMs ('''rhel1''', '''rhel2''', and '''rhel3''').
# Inside each virtual machine, run <b><code>ip a</code></b> on the command line. Open a Terminal window in centos1 rhel1 to do so. You'll need the IP address of each machine for the next steps.
# Switch to your '''r9host''' VM, open a terminal, login as root, and change directory to '''/root/bin'''.
# Issue the Linux command: <b><code><span style="color:#3366CC;font-size:1.2em;">wget https://raw.githubusercontent.com/OPS245/labs/main/lab2-check.bash</span></code></b>
# Give the '''lab2-check.bash''' file execute permissions (for the file owner).
# Run the shell script and if any warnings, make fixes and re-run shell script until you receive "congratulations" message.
#Arrange proof of the following on the screen:
::&#x2713; '''<u>All</u> VMs''':<blockquote><ul><li>All 4 nested VMs '''created''' and '''running'''</li><li> Proof of '''yum updates''' on ALL VMs (i.e. results from '''yum update''' command)</li></ul></blockquote>
# How can you prompt the user for data and store into a variable?
# Show a few examples how loops can be used to error-check when prompting the user for data.
# What does the command '''rpm -qi centosredhat-release''' do and why is it important? # What is the difference between '''rpm -q centosredhat-release''' and '''uname -a'''?