CS 480-M01 Linux System Administration - CRN 60315 - Fall 2022
[Home]     [Syllabus]     [Notes]     [Grades]

Lab 1 - CS480 M01

CS 480 M01 Lab Session 1 - 2022 Fall

Purpose: Make sure that everything gets installed and gets set as instructed below. Be meticulous.
Nevertheless, do not just follow the steps below. Check and EXPLORE the other options before proceeding. Read the online help whenever there is something unclear to you.

Connect to your virtual machine at csvm3.cs.nmsu.edu

  • There is a virtual machine prepared for each student named yourcsloginname_cs480fa22. It is configured to have 2GiB of memory , two CPU cores, 40 GiB hard disk, and it is connected to a virtual network that is shared with virtual machines of other students in the class. The virtual machine is not installed with any operating system and our task today is to install it with 64-bit OpenSUSE Leap 15.4 Linux. Installation DVD is in the DVD drive of the virtual host.
  • Create another snapshot for your machine: VM -> Snapshot -> Take Snapshot.... Name the snapshot beforeLab1.
  • Note for below:
  • Power on your virtual machine into BIOS and modify it:
    Vith a real PC you would accomplish this usually by holding [ F10 ] or [ F2 ] shortly after the machine is powered on.
    With vmware, click on VM -> Power -> Power on to Firmware
    1. Change the Supervisor Password (currently there is no BIOS pasword set) to whatever you like (MAKE SURE TO WRITE IT DOWN AND SUBMIT WITHIN YOUR ASSIGNMENT REPORT - if you lose this password you will have to go back to the beforLab1 snapshop or, if you do not have any snapshot, start from scratch with new virtual machine and new install )
    2. Change the booting sequence to boot from CD first, from HDD (virtual SCSI disk) second, and third from the network.
    3. Check that the date/time is correctly set (or fix it and set it to the current date and time )
    4. Save the changes and exit the BIOS and ...
    5. Power off the virtual machine ( VM -> Power -> Power Off), create another snapshot (name it fwModified), and power the virtual machine on into BIOS again to make sure that the above (password, boot order, ..) is set correctly.
    6. This may be a good time to try to practice how to work with snapshots. Revert to the first snapshot and observe that you can power the machine on into BIOS and it does not ask for the password. After that select the 2nd snapshot and observe that this time the machine will not allow you to enter BIOS without providing the correct password.
    7. Proceed with the linux installation as outlined below.
  • Boot the machine from the Leap 15.4 DVD, and once the first menu appears
    1. Immediately click into the window and push [F4] function key and select DVD as the installation source.
    2. Choose Installation ( 2nd line) from the menu and hit [ Enter ]
    3. Observe as the kernel gets loaded and installation starts. Once the green growing bar appears you may want to hit [ ESC ] key and observe what is happening (be patient this step takes some time).
  • Installation:
  • Post Installation Steps
  • Check the connection to lbc:
            ping lbc
    (stop by [ Ctrl ] + [ C ] )
  • Login into lbc
            ssh   your_cs_login_name@lbc
  • Login back into your virtual machine from lbc (lbc=csvm3 - these are just two hostnames for the same machine for its two different interfaces on two different networks)
            ssh   your_user@your_virtual_machine_name
  • log out from your computer as well from lbc
  • shutdown the computer : shutdown -h now
  • Boot into Firmware and change the settings to boot from internal hard disk first
  • Boot the host (from the HDD)
  • Shut the host down one more time
  • Create new snapshot and name it Original_Installation
  • Power the VM up for the final time and let it run