C H A P T E R  2

Installing Red Hat Enterprise Linux

This chapter provides information about installing the Red Hat Enterprise Linux operating system on a Sun Blade X6440 server module.

This chapter contains the following sections:


About the Red Hat Enterprise Linux Installation

If you have installed Red Hat Enterprise Linux (RHEL) operating system (OS) on other Intel or AMD Opteron servers, you are already familiar with how to install it on a Sun Blade X6440 server module. The two most common methods of installing the RHEL OS on your server are as follows:

You can also use the Integrated Lights Out Manager (ILOM) Remote Console application to install the RHEL OS.

For more information about the installation, see the following topics:



Tip - Using the Sun Installation Assistant (SIA) to install the RHEL operating system is the recommended installation method. SIA is a convenient, front-end application designed to assist you in installing RHEL on your server module. SIA supplements the standard installation utilities and procedures that ship with RHEL; it does not replace them. For more information, refer to the Sun Installation Assistant User’s Guide (820-3357).


Red Hat Enterprise Linux Installation and Administration Documentation

Before you install the RHEL OS on a Sun Blade X6440 server module, consult the following RHEL documentation.


TABLE 2-1 Sources for RHEL Documentation

Document

Description

Where to Find

README file

Contains late-breaking information about system requirements and system configuration for your version of the RHEL OS.

On the RHEL CD #1, and online from http://www.redhat.com/docs/

Red Hat Enterprise Linux Quick Installation Guide

Brief printed guide containing useful information to assist you during the installation the of RHEL OS.

Included with the RHEL distribution media

Red Hat Enterprise Linux Installation Guide

Full version of the printed Quick Installation Guide.

Included on the Red Hat Documentation CD, and available for download from http://www.redhat.com/docs/

Red Hat Enterprise Linux Introduction to System Administration

Introductory information for RHEL OS system administrators.

Available for download from http://www.redhat.com/docs/manuals/enterprise/

Red Hat Enterprise Linux System Administration Guide

Information on customizing the RHEL OS.

Available for download from http://www.redhat.com/docs/manuals/enterprise/

System Administration for Diskless Booting

Information on configuring your server module and the RHEL OS for diskless booting.

Available for download as the Red Hat Enterprise Linux Installation Guide for the x86, Itaniumtrademark, and AMD64 Architectures at http://www.redhat.com/docs/manuals/enterprise/

Red Hat Enterprise Linux Security Guide

Guide for securing the RHEL OS.

Available for download from http://www.redhat.com/docs/manuals/enterprise/


Task Map for the RHEL Installation

Consult TABLE 2-2 to determine which topics documented in this guide are relevant to the installation tasks that you want to perform.


TABLE 2-2 Task Map for Installing RHEL

Installation Task

Relevant Topic

Collect information about your system and network.

Preparing to Install the RHEL Operating System

Install the RHEL OS using one of the following methods:

 

  • From distribution media using a local CD or DVD drive.

Installing the RHEL Operating System From Local Distribution Media

  • Using the Remote Console application.

Installing the RHEL Operating System Using the Remote Console Application

  • Using the Preboot Execution Environment (PXE).

Installing the RHEL Operating System Using PXE

Update the RHEL OS files and drivers.

Updating the RHEL Operating System



Preparing to Install the RHEL Operating System

You can install the RHEL OS from a local CD/DVD or from the network. However, you will need to collect some information about your system and your network before you proceed with any of these installation methods. Before you begin installing the RHEL OS, review the procedures provided in this chapter that apply to your installation method.

Obtaining Updated RHEL Operating System Media Kits

The Sun Blade X6440 server module supports the latest versions of the RHEL OS: RHEL 4.6 and RHEL 5.1. To install either of these versions on the server module, you have to obtain either the RHEL 4.6 or RHEL 5.1 Update Media Kit, available at http://rhn.redhat.com.

To download the updated RHEL ISO images, you need your Red Hat Enterprise account information. An Enterprise account is an account that the customer creates to access Red Hat's support network after purchasing the RHEL Update Media Kit.

Installing RHEL Operating System Updates and Patches

After installing the RHEL OS on the server module, you may also need to update the operating system with updates or patches. For more information, see Updating the RHEL Operating System.


Installing the RHEL Operating System From Local Distribution Media

The RHEL OS provides both a text mode and graphical user interface for installing and configuring the OS from local distribution media. At the boot prompt, you can select the interface that you want to use. Both options are shown later in this section.

Before You Begin

Installing the RHEL operating system from CD-ROMs consists of the following procedures:

1. Download the RHEL OS Update Media Kit from http://rhn.redhat.com.

See Obtaining Updated RHEL Operating System Media Kits.

2. Install the RHEL OS.

3. Update the RHEL OS with latest updates and patches.

See Updating the RHEL Operating System.

Required Items

Installation from local distribution media requires the following items:


procedure icon  To Install RHEL From Local Distribution Media

1. Connect the multi-port dongle cable to the connector on the front of the Sun Blade X6440 server module.

For more information, refer to the Sun Blade X6440 Server Module Installation Guide (820-3961).

2. Connect the USB connector of the CD/DVD drive to the USB port of the dongle cable.

3. Power on the system.

4. Insert the RHEL Distribution CD #1 into the CD/DVD drive connected to the dongle cable and reboot the server.

The server will boot from the CD and display a boot: prompt.

If the installation process does not recognize the CD-ROM, refer to the Sun Blade X6440 Server Module Product Notes (820-3965).

5. At the boot prompt, select one of the following:

boot: linux text

6. Refer to the Red Hat Enterprise Linux Installation Guide to guide you through the remainder of the installation process.

7. After completing the operating system installation, proceed to Updating the RHEL Operating System.


Installing the RHEL Operating System Using the Remote Console Application

This section explains how to install the RHEL OS on your Sun Blade X6440 server module using the Sun Integrated Lights Out Manager (ILOM) Remote Console application.

Use the following procedure to install the RHEL 4.6 (or later) OS using the ILOM Remote Console application.



Note - For more information on using the ILOM service processor web interface to redirect the console, refer to the Sun Integrated Lights Out Manager 2.0 User’s Guide (820-1188).



procedure icon  To Install RHEL Using the ILOM Remote Console Application

1. Locate your RHEL installation CD/DVD or the equivalent ISO images.

2. Connect to the ILOM service processor web interface.

3. Select the Remote Control tab, then select the Mouse Mode Settings tab.

4. If necessary, change the mouse mode to Relative Mouse Mode.

See the “Remote Console Application” chapter of the Sun Integrated Lights Out Manager 2.0 User’s Guide for further instructions.

5. Select the Redirection tab.

6. Click the Launch Redirection button to start the JavaRConsole application.

7. Log in to the JavaRConsole.

8. Select Keyboard and Mouse in the Devices menu to start keyboard and mouse redirection.

9. Start CD/DVD redirection.

From the JavaRConsole Devices menu, you can redirect the CD in one of two ways:

10. Power on the server using the ILOM web interface.

11. Configure the BIOS to have CD/DVD as the boot device.

a. Press Ctrl-E to enter the BIOS Setup utility.

b. Select the Boot menu.

c. Select CD/DVD Drives.

d. Set AMI Virtual CD as the first boot device.

e. Press F10 to save changes and exit.

f. Reboot.

g. Press Ctrl-P to select CD/DVD as the boot device.

12. When the boot: prompt appears, type linux text.

13. When prompted to test the CD media before installation, select Skip if you do not want the media test to run.

14. Refer to the Red Hat Enterprise Linux Installation Guide to guide you through the remainder of the installation process.


Installing the RHEL Operating System Using PXE

The on-board network interface card (NIC) in your Sun Blade X6440 server module supports the Preboot Execution Environment (PXE) network booting protocol. The system BIOS and network interface BIOS on the server module automatically query the network for a Dynamic Host Configuration Protocol (DHCP) server. If a DHCP server on the network has been configured to support the PXE protocol and PXE image servers on the same network, then the BIOS on the server module can be used to install a bootable RHEL image.



Tip - PXE is a powerful and convenient solution for setting up a number of Sun Blade X6440 server modules with identical configurations.


Task Map for RHEL Installation Using PXE

If you do not have PXE set up on your network and you would like to take advantage of PXE to install the RHEL OS on your network, perform the following tasks.


TABLE 2-3 Task Map for RHEL Installation Using PXE

Installation Task

Relevant Topic

Obtain the Update Media Kit at http://rhn.redhat.com.

Obtaining Updated RHEL Operating System Media Kits.

Set up your Linux network and PXE server.

Preconfiguring a Network to Support PXE Installation of RHEL.

Reboot the PXE server

Rebooting the PXE/DHCP Server

Install the RHEL operating system images on the PXE server.

Creating a PXE Install Image on the PXE Server.

Install the RHEL OS from the PXE server.

Installing the RHEL Operating System From a PXE Server.


Preconfiguring a Network to Support PXE Installation of RHEL

This section describes how to preconfigure a network running the RHEL OS to support PXE installation of the RHEL OS on a server module. These procedures assume that you already have a bootable server that is running a version of the RHEL OS to use as a PXE server.

Perform the following procedures to preconfigure your network for PXE installation:

See To Configure a DHCP Server.

See To Install Portmap on a DHCP Server.

See To Configure the TFTP Service on the DHCP Server.

See To Install and Configure the neopxe Boot Server Daemon.

See To Configure the NFS Service on the DHCP Server.

See To Disable the Firewall.

See Rebooting the PXE/DHCP Server.

Required Items

Preconfiguring your network for PXE installation requires the following items:


procedure icon  To Configure a DHCP Server

Complete the following steps to configure the server that will be the DHCP server.

1. Turn on the server and log in as a superuser.

2. Determine whether the DHCP server package is already installed on the server. Type the following command:

# rpm -qa | grep dhcp-

3. If the DHCP server package is not listed, insert the RHEL OS media CD #5 into the CD/DVD drive of the DHCP/PXE server.

4. Type the following commands to install the DHCP server:

# mount /dev/cdrom /mnt/cdrom

# rpm -Uvh /mnt/cdrom/RedHat/RPMS/dhcp-*.rpm

# umount /mnt/cdrom

5. Remove the CD from the CD/DVD drive.

6. Set up your DHCP configuration file (for example, /etc/dhcpd.conf) so that only PXEClient requests receive PXEClient responses.

Type the following entry to the DHCP configuration file. Refer to the dhcpd.conf man page for more information.

class "PXE" {match if substring(option vendor-class-identifier, 0, 9) ="PXEClient"; option vendor-class-identifier "PXEClient"; vendor-option-space PXE;}



Note - If the server does not already have a dhcpd.conf file in its /etc directory, you can copy the dhcpd.conf file from the sample DHCP configuration file in the /tmp/rhel4-pxefiles or the /tmp/rhel5-pxefiles directory.


7. To start the DHCP service, type:

# service dhcpd start

8. To configure the server to always start DHCP, type:

# chkconfig dhcpd on


procedure icon  To Install Portmap on a DHCP Server

1. Determine whether the portmap server package is already installed on the DHCP server. Type:

# rpm -qa | grep portmap

2. If portmap is not listed, insert RHEL CD #2 into the CD/DVD drive of the DHCP/PXE server and install the portmap service by typing the following commands:

# mount /dev/cdrom /mnt/cdrom

# rpm -Uvh /mnt/cdrom/RedHat/RPMS/portmap-*

# umount /mnt/cdrom

3. Remove the CD from the DHCP/PXE server.


procedure icon  To Configure the TFTP Service on the DHCP Server

1. Determine whether the TFTP server package is already installed on the server. Type:

# rpm -qa | grep tftp-server

2. If the TFTP server package is not listed, insert RHEL CD #4 into the CD/DVD drive of the DHCP/PXE server and install the TFTP service by typing the following commands:

# mount /dev/cdrom /mnt/cdrom

# rpm -Uvh /mnt/cdrom/RedHat/RPMS/tftp-server*

# umount /mnt/cdrom

3. Remove the CD from the server.

4. Edit and save the /etc/xinetd.d/tftp file.

Make the following changes:

5. Restart the inetd server. Type:

# service xinetd restart


procedure icon  To Install and Configure the neopxe Boot Server Daemon

Complete the following steps on the DHCP server to install and configure the neopxe boot server. The neopxe server is designed for use with a DHCP server that is running on the same system.

1. Install the neopxe boot server daemon onto the system that is the DHCP server. Type:

# cd /tmp/rhel4-pxefiles/neopxe-0.2.0

# ./configure

# make

# make install

2. Append the path /usr/local/sbin/neopxe to the rc.local file by typing the following command, making sure to use two greater-than signs:

# echo "/usr/local/sbin/neopxe" >> /etc/rc.d/rc.local

3. Copy the PXE Linux image from the /tmp/ directory. Type:

# mkdir /home/pxeboot

# cp /tmp/rhel4-pxefiles/pxelinux.0 /home/pxeboot

4. Configure the PXE Linux image. Type:

# mkdir /home/pxeboot/pxelinux.cfg/

# touch /home/pxeboot/pxelinux.cfg/default

5. Edit the /usr/local/etc/neopxe.conf configuration file, which is read by neopxe at startup.

ip_addr=n.n.n.n

prompt=boot-prompt-string

prompt_timeout=timeout

service=service-number,boot-server,boot-file,label

Where:

For example:

ip_addr=192.168.0.1

prompt=Press [F8] for menu.

prompt_timeout=10

service=1,192.168.0.1,pxelinux.0,Linux

service=2,192.169.0.1,nbp.unknown,Solaris



Note - Refer to the neopxe.conf man page for more information.


6. Start the neopxe daemon. Type:

# /usr/local/sbin/neopxe


procedure icon  To Configure the NFS Service on the DHCP Server

1. Determine whether the NFS service package is already installed on the server. Type:

# rpm -qa | grep nfs-utils

2. If the NFS service package is not listed, insert RHEL CD #2 in to the CD/DVD drive of the DHCP server and install the NFS service by typing the following commands:

# mount /dev/cdrom /mnt/cdrom

# rpm -Uvh /mnt/cdrom/RedHat/RPMS/nfs-utils-*

# umount /mnt/cdrom

3. Remove the CD from the DHCP server.

4. Edit and save the /etc/exports file to add the following line:

/home/pxeboot *(no_root_squash,no_subtree_check,insecure)

5. Start the NFS service. Type:

# service nfs start

6. Configure the server to always start the NFS service. Type:

# chkconfig nfs on

# chkconfig nfslock on



Note - If you are using a DNS server, verify that DNS entries exist for the range of addresses defined in the PXE subnet dynamic-bootp entry in the dhcpd.conf file. If you are not using a DNS server, edit the /etc/hosts file to add the range of host addresses found in the PXE subnet dynamic-bootp entry in the dhcpd.conf file.



procedure icon To Disable the Firewall



caution icon Caution - Security vulnerability. When you disable the firewall protection on the system that is your PXE server, the security of the data on that server cannot be ensured. If this server is networked outside of your local intranet, be sure to re-enable the firewall after downloading software to PXE clients.


If you enabled firewall security when you installed the RHEL OS on the system that will be your PXE server, complete the following steps to disable the firewall so that PXE clients can download from the server.

1. Stop the ipchains service. Type:

# service ipchains stop

2. Stop the iptables service. Type:

# service iptables stop

3. Stop the ipchains service from starting when you restart the server. Type:

# chkconfig ipchains off

4. Stop the iptables service from starting when you restart the server. Type:

# chkconfig iptables off



Note - You might encounter error messages if the ipchains service is not installed on the server. You can safely ignore these messages.


Rebooting the PXE/DHCP Server

When you have completed all the previous configuration steps, reboot the PXE/DHCP server and proceed to the next section, Creating a PXE Install Image on the PXE Server.

Creating a PXE Install Image on the PXE Server

This procedure describes how to create a Preboot Execution Environment (PXE) install image on the DHCP server so that it can also act as your PXE server. The PXE server provides the operating system files to your PXE client.

Before You Begin

Before you install a RHEL image on the PXE server, you must configure your Linux network to support PXE images. If you have not done so, see Preconfiguring a Network to Support PXE Installation of RHEL.

Required Items

The PXE installation procedure requires the following items:

Installing the RHEL Operating System From a PXE Server

This procedure describes how to configure your Sun Blade X6440 server module to initiate the request to download RHEL the OS boot image file from the PXE/DHCP server and how to install the boot image onto your Sun Blade X6440 server module.

Before You Begin

Before you install the RHEL OS from a PXE server, you need to complete the following tasks:


procedure icon  To Install a RHEL Operating System From a PXE Server

1. Connect the PXE client to the same network as the PXE server, and power on the PXE client.

The PXE client is the target Sun Blade X6440 server module on which you are installing RHEL OS.

2. When the PXE client prompts you for a network boot, press the F12 key.

The PXE client connects to the PXE server and attempts to obtain an IP address from the DHCP server.

3. When prompted, press the F8 key to begin downloading the PXE boot image.

4. At the boot: prompt, enter in the label you gave the RHEL image when you installed it on the PXE server (rhel4 in the example above).

The RHEL install image downloads onto the target Sun Blade X6440 server module.

5. To configure the RHEL operating system for your server, refer to the manual that is shipped with your RHEL Update Media Kit.

6. Update the RHEL OS files.

See Updating the RHEL Operating System


Updating the RHEL Operating System

Because software is constantly being updated, your distribution media might not contain the most up-to-date versions of the operating system. This procedure describes how to update the RHEL OS.



Note - The following procedure assumes that you have already installed the RHEL OS on the Sun Blade X6440 server module.



procedure icon  To Update the RHEL Operating System

This procedure assumes that your server module has access to the internet.

1. Set up the up2date program on the server module.

Refer to the documentation included with your RHEL Update Media Kit for details.

2. Run the up2date program.

Select the kernel packages in the available package updates section.