C H A P T E R  3

Installing SUSE Linux Enterprise Server 10


Note - If you want to mirror your OS, the recommended procedure is to create a hardware RAID before you install the OS.


This chapter contains information about manually installing SUSE Linux Enterprise Server (SLES) 10 OS on a Sun Fire X4140, X4240, or X4440 server. It contains the following sections:



Note - If you use the Sun Installation Assistant to install SLES 11, the only sections of this chapter that you will need to reference are: Preconfiguring Your Network to Support PXE Installation of SLES 11 and Updating the SLES 11 OS.



About the SLES 11 Linux Installation

The Sun Fire X4140, X4240, and X4440 servers support SLES 11.

The most common methods for installing SLES 11 on your server are listed below:

SLES 11 Installation and Configuration Documentation

You can find help in installing SUSE Linux on your server from the following locations:

Task Map for SLES 11 Installation

Consult the following table to determine which procedures documented in this help system are relevant to the installation task(s) that you need to perform.


Installation Task

Relevant Procedure(s) or Source(s)

Install SLES 11 from local or remote CD/DVD drive.

Installing SLES 11 From Distribution Media or Installing SLES 11 Using the Remote Console Application

Install SLES 11 from local or remote CD/DVD drive or PXE server.

SUSE Linux Enterprise Server 10 Installation Manual

Preconfigure your network to install SLES 11 from a PXE server.

Preconfiguring Your Network to Support PXE Installation of SLES 11

Install SLES 11 from a PXE server.

Installing SLES 11 Using PXE

Update SLES 11 software.

Updating the SLES 11 OS


Installing SLES 11 From Distribution Media

SLES 10 provides an easy-to-use graphical interface for installing and configuring the OS. Whether you are using Distribution CDs to install SLES from a locally attached CD/DVD drive or from a remote CD/DVD drive attached via KVMS, the installation procedure is fundamentally the same.

Required Items


procedure icon  To Install SLES 11 from Distribution Media

1. Power on the system.

2. Press F8 and select CDROM when prompted.

3. Insert the SLES 11 CD 1 into your local CD/DVD drive.

4. Follow the installation instructions provided with the SLES 11 Installation and Administration Guide to complete the installation of the system software.

Installing SLES 11 Using the Remote Console Application

This topic explains how to install the SLES 11 OS on your Sun Fire X4140, X4240, or X4440 server using the ILOM Remote Console application.


procedure icon  To Install SLES 11 from the Remote Console

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

2. Connect to the ILOM service processor web interface.

3. Click the Remote Control tab, then the Mouse Mode Settings tab.

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

See the “Remote Console Application” chapter of the Integrated Lights Out Manager (ILOM) Administration Guide for more information



Note - There are multiple versions of ILOM, be sure to refer to the guide that matches your server’s installed version of ILOM.


5. Click the Redirection tab.

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

7. Log in to the JavaRConsole.

8. Start keyboard and mouse redirection.

Select Keyboard and Mouse in the Devices menu.

9. Start CD/DVD redirection.

From the JavaRConsole Devices menu, you can redirect the CD in several ways:



Note - Floppy diskette redirection is also available through the JavaRConsole. See the Integrated Lights Out Manager (ILOM) Administration Guide for more information. Note that are multiple versions of ILOM, be sure to refer to the guide that matches your server’s installed version.


10. Turn on the server using the ILOM Web Interface.

11. Set up the BIOS as follows:

a. Press Ctrl-E to enter 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 and press Ctrl-P to select CD/DVD as the boot device.

12. When the SLES 11 installation menu appears, use arrow keys to select Installation and press Enter.

13. Proceed with SLES 11 installation as usual.

 


Preconfiguring Your Network to Support PXE Installation of SLES 11

These procedures describe how to preconfigure your network running SLES 11 software to support PXE installation of SUSE Linux software on your Sun Fire X4140, X4240, or X4440 server. These procedures assume that you already have a bootable server that is running a version of the SLES 11 OS.

Preconfiguring your network for PXE installation involves the following procedures:

Required Items

Preconfiguring your network for PXE installation requires the following items:



caution icon Caution - On the chassis, Ethernet ports are labeled NICi (i = 0,1,2,3). Linux internally represents Ethernet ports as ethj (j = 0,1,2,3). Labeling implies NICi -> ethj, where i=j. This is generally true, but for the for Sun Fire X4140, X4240, or X4440 servers the mapping is as follows:


NIC0 -> eth2
NIC1 -> eth3
NIC2 -> eth0
NIC3 -> eth1

Copying Files From the Tools and Drivers CD

This section describes how to copy the required PXE configuration support files, from the Sun Fire X4140, X4240, and X4440 server Tools and Drivers CD to the DHCP/PXE server. You can also download the driver RPMs from the Sun Fire X4140, X4240, or X4440 server web site. The downloads links are at
http://www.sun.com/servers/blades/x6200/downloads.jsp.


procedure icon  To Copy Files From the Tools and Drivers CD

1. Insert the Tools and Drivers CD into the DHCP/PXE server.

2. Create a temporary directory to copy the PXE support files to. Enter the following command:

# mkdir /tmp

3. Mount the CD-ROM drive. Enter the command:

# mount /dev/cdrom /mnt/cdrom

4. Enter the following command to copy the files to the /tmp/ directory:

# cp /mnt/cdrom/support/pxeboot/tmp/

5. Uncompress and extract the contents of the tar file into the /tmp/ directory.

# tar -zxf /tmp/

When you extract the file, a directory with all required files is created at /tmp/sles10-pxefiles/.

6. Unmount the CD/DVD by entering the following command:

# umount /mnt/cdrom

7. Remove the Tools and Drivers CD from the server.

Configuring a DHCP Server

Complete the following steps on the server that will be your DHCP server.


procedure icon  To Configure a DHCP Server

1. Power on the server and log in as superuser.

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

# rpm -qa | grep dhcp-server

3. If the DHCP server package is not listed, install the package using YaST. Enter the following command:

# yast -i dhcp-server

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

Add 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; next-server n.n.n.n;}

Where n.n.n.n is the IP address of the server.



Note - You can start with a sample DHCP configuration file in the /tmp/sles10-pxefiles directory.


5. In the DHCP configuration file, edit the server-identifier entry:

server-identifier n.n.n.n

Where n.n.n.n is the PXE/dhcp server’s IP address.

6. Also in the DHCP configuration file, find the subnet entry fields:

subnet 1.2.3.0 netmask 255.255.255.0 {

range dynamic-bootp 1.2.3.100 1.2.3.200;

option routers 1.2.3.1;

option broadcast-address 1.2.3.225;

}

Edit the subnet, range, router and broadcast-address entries according to the PXE/dhcp server’s network configuration.

7. Edit the /etc/sysconfig/dhcpd file and verify that the DHCPD_INTERFACE is set to the interface that is connected to the network you are planning to run the PXE server.

For example, if you are using Ethernet interface 0, the DHCPD_INTERFACE variable would be set as follows:

DHCPD_INTERFACE="eth0"

8. Start the DHCP service. Enter the following command:

# /etc/init.d/dhcpd start

9. Configure the server to always start DHCP. Enter the following command:

# chkconfig dhcpd on

Installing Portmap

Complete the following steps on your DHCP server.


procedure icon  To Install Portmap

1. Determine whether the portmap server package is already installed on the server. Enter the following command:

# rpm -qa | grep portmap

2. If portmap is not listed, install the package using YaST. Enter the following command:

# yast -i portmap

Configuring the TFTP Service

Complete the following steps on your DHCP server.


procedure icon  To Configure the TFTP Service

1. Determine whether the TFTP server package is already installed on the server. Enter the following command:

# rpm -qa | grep tftp

2. If the TFTP server package is not listed, install the package using YaST. Enter the following command:

# yast -i tftp

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

Make the following changes:

4. Restart the inetd server. Enter the following command:

# /etc/init.d/xinetd restart

Configuring Syslinux

Complete the following steps on your DHCP server.


procedure icon  To Configure Syslinux

1. Determine whether the syslinux package is already installed on the server. Enter the following command:

# rpm -qa | grep syslinux

2. If the syslinux package is not listed, insert the RHEL CD and install syslinux by entering the following commands.

# mount /dev/cdrom /mnt/cdrom

# -Uvh /mnt/cdrom/suse/x86_64/syslinux

3. Remove the CD from the server after you enter the following command:

# umount /mnt/cdrom

Make sure pxelinux.0 and pxlinux.cfg/ are in the /home/pxeboot directory. If not, copy these files to the /home/pxeboot directory.


Configuring the NFS Service

Complete the following steps on your DHCP server.


procedure icon  To Configure the NFS Service

1. Determine whether the NFS service package is already installed on the server. Enter the following command:

# rpm -qa | grep nfs-utils

2. If the NFS service package is not listed, install the package using YaST. Enter the following command:

# yast -i nfs-utils

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

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

4. Start the NFS service. Enter the following command:

# /etc/init.d/nfsserver start

5. Configure the server to always start the NFS service. Enter the following commands:

# chkconfig nfslock on

# chkconfig nfsserver 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.


Disabling the Firewall

If a firewall is enabled on your PXE/DHCP server, you must disable it before attempting to install a PXE image onto the client system.



caution icon Caution - Network 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.



procedure icon  To Disable the Firewall

1. Execute the YaST command. Enter the following command:

# yast

2. Select Security & Users.

3. Select Firewall.


Installing SLES 11 Using PXE

PXE is a powerful and convenient solution for setting up a number of Sun Fire X4140, X4240, or X4440 servers so that their configuration is identical.

Required Items

The PXE installation procedure requires the following items:

Before You Begin

The network interface card (NIC) in your Sun Fire X4140, X4240, or X4440 server supports the Preboot Execution Environment (PXE) network booting protocol. The system BIOS and network interface BIOS on your server automatically query the network for a DHCP server.

Before you perform the procedures in this section, you must have configured your Linux network to support a PXE server (see Preconfiguring Your Network to Support PXE Installation of SLES 11).

The two procedures in this section are:


Creating a SLES 11 PXE Install Image on the PXE Server

To transfer the SLES 11 PXE files for installation you must:

1. Create a SLES 11 image on your PXE server.

2. Set up and copy SLES 11 software to a directory.

3. Set up the PXE files.


procedure icon  To Create a SLES 11 Image on Your PXE Server

1. Insert the Tools and Drivers CD into the DVD-ROM drive.

2. Copy the PXE support files from the Tools and Drivers CD into the /tmp directory by typing the following commands:

# mount /dev/cdrom /mnt/cdrom

# cp -a /mnt/cdrom/support/pxeboot/tmp

# cd /tmp

# tar xfz

# umount /mnt/cdrom


procedure icon  Set Up and Copy SLES 11 Software to a Directory

The following steps explain how to create the directory setup containing SLES 11 files for PXE installation.



Note - You can use a different target directory than the /home/pxeboot/sles10/ directory shown. The examples in this procedure use this directory.


1. Set up the directory structure that will hold the SLES 11 files. Enter the following commands:

# mkdir -p /home/pxeboot/sles10/CD1

# mkdir -p /home/pxeboot/sles10/CD2

# mkdir -p /home/pxeboot/sles10/CD3

# mkdir -p /home/pxeboot/sles10/CD4

2. Insert SLES 10 CD 1 into your server and copy its content to your PXE server. Enter the following command:

# mount /dev/cdrom /mnt/cdrom

# cp -r /mnt/cdrom/* /home/pxeboot/sles10/CD1/

# umount /mnt/cdrom

3. Remove SLES 11 CD 1 from the server.

4. Repeat the above procedure for copying CD 2, 3 and 4 to their corresponding directories in /home/pxeboot/sles10/ as given below:

# cp -r /mnt/cdrom/* /home/pxeboot/sles10/CD2/

# cp -r /mnt/cdrom/* /home/pxeboot/sles10/CD3/

# cp -r /mnt/cdrom/* /home/pxeboot/sles10/CD4/


procedure icon  Set Up PXE Files

1. Copy the autoinst.xml file from the /tmp/sles10/ directory to the root of the PXE image. Enter the following command:

# cp /tmp/sles10/autoinst.xml /home/pxeboot/sles10/

2. On your PXE server, modify the file home/pxeboot/pxelinux.cfg/default adding the following entry to it:



Note - In the text block below, copy from “append” through “autoinst.xml” as one continuous line with no returns.


default sles10
label sles10
kernel sles10/CD1/boot/x86_64/loader/linux
append textmode=1 initrd=sles10/CD1/boot/x86_64/loader/initrd
install=nfs://n.n.n.n/home/pxeboot/sles10/CD1
autoyast=nfs://n.n.n.n/home/pxeboot/sles10/autoinst.xml

Where n.n.n.n is the IP address of your PXE server.

3. Save and exit the file.


Installing SLES 11 From a PXE Server

This procedure describes the final step of installing the SLES 11 boot image onto your Sun Fire X4140, X4240, or X4440 server. Before proceeding with this procedure you must have done the following:


procedure icon  To Install SLES 11 From a PXE Server

1. Connect the PXE client to the same network as the PXE server.

2. Power on the PXE client and press F12 to select network boot.

3. When you are prompted at the boot: prompt, enter in the label you gave the image when you installed the SLES 11 image on the PXE server (sles10 in the example above).

4. To configure your SLES 11 Linux server, refer to the Installation and Administration guide on SLES 11 CD 1.

5. Perform an Online Software Update to update the OS files (see Updating the SLES 11 OS).


Updating the SLES 11 OS

The SLES OS installation media might not contain the most up-to-date versions of the SUSE software. This procedure describes how to update the SLES OS on your server after you have installed it from a PXE server or distribution CDs.


procedure icon  To Update Your SLES OS

1. Log in as the superuser.

2. Enter the following command to run the YaST Online Update:

# you

Note that YaST can operate in both text and graphical modes. These directions apply to both.

3. If you are behind a network firewall and need to use a proxy server in order to access the internet, you must first configure YaST with the correct proxy information.

a. Select the ‘Network Services’ tab on the left, then the ‘Proxy’ screen on the right. Enter the correct proxy URLs in both the HTTP and HTTPS fields.



Note - In order for the on-line update service to function correctly through a network HTTP proxy, the following additional configuration step must be performed.


b. Exit the YaST utility and run the following command:

rug set-prefs proxy-url proxy URL

where proxy URL is the fully qualified URL of your proxy server (for example: http://proxy.yourdomain:3128/).

c. After successfully running the command, launch YaST again.

4. Register with the Novell Customer Center. Select the ‘Software’ tab on the left, then select ‘Novell Customer Center Configuration’ and follow the directions.

You will need your Novell Customer Center username and password, as well as a SLES product activation code.

5. Once registered, select the ‘Online Update’ tab to perform the software update.

Updating the SLES SCSI Drivers

To Update the SLES SCSI Drivers:

1. Insert the Tools and Drivers CD for your server.

2. Mount it onto the directory /mnt

# mount /dev/cdrom /mnt

3. Enter the following commands:

# cd /mnt/Linux/drivers

# rpm -ivh driver-filename

For example for SLES 11 SP1 and SP2, 64-bit:

# cd /mnt/Linux/drivers

# rpm -ivh mptlinux-4.00.43.00-1-sles10.x86_64.rpm



Note - Check the /linux/drivers directory on your Tools and Drivers CD for the specific driver file name for your operating system.


4. Installation of the new drivers is now complete. Reboot the server for the changes to take effect. Enter:

# reboot