Lab 2: Installation of a Red Hat Enterprize Distribution
Last modified: Sep 11, 2011
The purpose of this lab is to perform a network install of Red Hat Enterprize 4 Linux onto a virtual machine that is installed with FreeDOS.
In doing this lab, you will be demonstrating your ability to prepare a harddisk for,
and to perform an interactive network install of, a Linux Operating System that will dual boot with a DOS system.
Procedure
Your two major challenges in this lab are to:
- Use disk partitioning tools (Disk Druid, fdisk) to create the desired partition structure, and
- To control where the GRUB boot loader is installed to allow for a dual boot scenario.
Both these tasks concern the Master Boot Record as well as partition boot sectors.
Part I
Installing Red Hat Enterprise 4 Linux from a Network File Share.
- Use the virtual machine called Dual in your personal folder under CISVLAB
- You want to force your virtual machine to boot from the rhel-4.iso that is in nfsstore1 under the ISO directory on the ESXi server.
How are you going to do this? (Hint: Press the ESC key during the BIOS screen, and you will be able to choose the boot device.
Notice the small size of the rhel-4.iso when you connect it.
- Once you get your VM to boot to the Red Hat Enterprize boot screen, choose the graphic install.
- Accept the default language and keyboard type.
- For Installation Method, choose NFS image
- Choose dynamic IP configuration for Configure TCP/IP.
- For NFS Setup choose:
- 172.30.5.20 for the NFS server name
- /install/rhel for the directory name
- You will now go into graphics mode. When you get to the Disk Partitioning Setup page, choose Manually partition with Disk Druid.
- Use the Disk Druid dialog to prepare the following partitions/filesystems:
- Leave the Primary partition allocated to DOS (vfat) alone. You must preserve this partition, (sda1).
- Primary partition of 4 GB formatted with ext3 and mounted to /
- Primary partition of 1 GB formatted with ext3 and mounted to /var
- An Extended partiton covering the remainder of the disk with:
a logical partition of 512 MB for swap space
a logical partition using the rest of the disk, ext3 mounted to /home
- Once you've finished preparing the hard disk, you will specify the GRUB boot loader.
- You must install the GRUB boot loader on partition 2 (sda2) where the Linux root file system is located, so check the
"Configure advanced boot loader options" checkbox before clicking Next. You may also want to change the "Other" OS name to FreeDOS.
- You must specify the hostname to be rhel4 and the domain to be localdomain.
- On the Firewall Configuration page, allow SSH access to your system, and select Warn to enable SELinux.
- Choose Pacific Standard time for the timezone
- Choose funny Cabrillo for the root password.
- Customize the software packages to be installed by choosing only the following package groups:
- X Windows System
- Desktop Environemnt, either GNOME or KDE
- Editors
- Graphical Internet
- Development Tools
- Administration Tools
- When the installation is completed and you reboot the system, it will come up in FreeDOS.
Why? What can you do about this?
Part II
Recovery or Rescue Mode - there are many situations that call for a recovery mechanism of an installed system. In this part, you will use the installation iso to boot up in Rescue mode and run the fdisk command to change the active partition.
- Verify that the rhel.iso file is still attached to the CD-ROM device, and boot off the CD-ROM.
- At the boot prompt enter:
linux rescue
- Follow the same procedure that you used for installing the system, but keep an eye out for a dialog box titled "Rescue" that will appear right after you specify the NFS Server information.
- The Rescue dialog box will give you three choices:
Choose Skip
- At the command line, use the fdisk command to change the active partition.
fdisk /dev/sda
- Bring the system down by right-clicking your VM in the Inventory pane and clicking on Power->Reset.
Part III
Post Installation adjustments
- Once yo get your system to boot into Red Hat Linux, you will go through a one-time configuration of such items as:
- License Agreement - accept the license agreement
- Date and Time - verify that it is correct
- Display - Select the defaults
- Red Hat Login - select "Tell me why I need to register ..." Click Next, and then
select "I cannot complete registration at this time...
- System User - create a regular user account for yourself or guest.
- Complete each of the above steps, and log into your system as root on tty1.
Turn in
You will turn in the anaconda-ks.cfg file and the output of the mount and fdisk -l command as lab2.
fdisk -l >> /root/anaconda-ks.cfg
mount >> /root/anaconda-ks.cfg
Secure copy this file to your home directory on opus:
scp anaconda-ks.cfg logname@opus.cabrillo.edu:lab2
Grading Rubric
Your lab will be graded for the following components:
- 2 points -
- for each of the filesystems requested above. (10 pts. total)
- 1 point -
- for each software package requested above. (6 pts. total)
- 4 points -
- for installing GRUB in the boot sector of /dev/sda2 and not clobbering the
DOS boot loader, and for naming the computer correctly.