Compaq BL10e - HP ProLiant - 512 MB RAM Troubleshooting Manual
Compaq BL10e - HP ProLiant - 512 MB RAM Troubleshooting Manual

Compaq BL10e - HP ProLiant - 512 MB RAM Troubleshooting Manual

Setting up a linux pxe server and integrating clients
Hide thumbs Also See for BL10e - HP ProLiant - 512 MB RAM:

Advertisement

Setting up a Linux PXE server and integrating clients
HOWTO
Abstract.............................................................................................................................................. 2
Text conventions .................................................................................................................................. 2
Required hardware and software........................................................................................................... 2
For the PXE server ............................................................................................................................ 2
For the clients .................................................................................................................................. 2
Overview............................................................................................................................................ 3
pxelinux functionality ........................................................................................................................ 3
Kickstart files ................................................................................................................................... 4
Setting up the PXE server ...................................................................................................................... 4
Integrating the clients ........................................................................................................................... 7
Troubleshooting ................................................................................................................................. 10
Bootcfg usage information............................................................................................................... 10
Potential kickstart installation issues .................................................................................................. 10
Additional configuration for ProLiant BL10e servers ............................................................................ 11
Appendix a: glossary ......................................................................................................................... 13
Appendix b: sample scripts and files.................................................................................................... 14
For the PXE server .......................................................................................................................... 14
NFS configuration file ................................................................................................................. 14
syslinux.cfg files ......................................................................................................................... 14
import-to-tftpboot.sh file ............................................................................................................... 16
For the clients ................................................................................................................................ 17
dhcpd.conf script........................................................................................................................ 17
syslinux.cfg script ....................................................................................................................... 19
Kickstart file ............................................................................................................................... 19
For more information.......................................................................................................................... 21
Call to action .................................................................................................................................... 21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BL10e - HP ProLiant - 512 MB RAM and is the answer not in the manual?

Questions and answers

Summary of Contents for Compaq BL10e - HP ProLiant - 512 MB RAM

  • Page 1: Table Of Contents

    Setting up a Linux PXE server and integrating clients HOWTO Abstract.............................. 2 Text conventions ..........................2 Required hardware and software......................2 For the PXE server ..........................2 For the clients ..........................2 Overview............................3 pxelinux functionality ........................3 Kickstart files ........................... 4 Setting up the PXE server ........................
  • Page 2: Abstract

    Abstract This HOWTO describes how to set up a Red Hat Linux 8.0 Pre-boot eXecution Environment (PXE) server and how to integrate a Red Hat Linux 8.0 client with the PXE server. Additionally, this HOWTO explains how to use Linux images on a PXE server and how to configure a client for PXE. Text conventions This HOWTO uses the following conventions to distinguish elements of text: Menu options, Command names, Dialog box...
  • Page 3: Overview

    Overview This section presents an overview for using the pxelinux process and kickstart files. pxelinux functionality The pxelinux functionality occurs in this order: • The client machine boots to PXE which requests a DHCP address. • The DHCP server responds with an IP address for the client machine along with the address of a TFTP server and a filename to load (pxelinux.0) from that server.
  • Page 4: Kickstart Files

    Kickstart files An automated installation of Red Hat Linux is performed through a process called kickstart. A kickstart file is a collection of instructions and keywords that the Red Hat Linux installer, called anaconda, uses to perform an unattended install. Often a kickstart file is created by using the program called redhat-config-kickstart or ksconfig which is used by older versions of Red Hat Linux.
  • Page 5 Edit the /etc/sysconfig/network as follows: • Static: NETWORKING=yes HOSTNAME="pxe1.pxe.net" Dynamic: NETWORKING=yes HOSTNAME="pxe1.pxe.net" DHCP_HOSTNAME="pxe1.pxe.net" Set up the DHCP service. A sample /etc/dhcpd.conf configuration file is located at /usr/share/doc/dhcp- • 3.0pl1/dhcpd.conf.sample. Copy this sample to /etc/dhcpd.conf. If more than one network card resides in the DHCP server, HP recommends specifying which •...
  • Page 6 In this example, the server was named according to its MAC address. Its MAC address is listed along with the fixed IP address we want associated with it. After modifying /etc/dhcpd.conf, notify the dhcpd server of the changes by using the following method or a similar one: service dhcpd restart Warning...
  • Page 7: Integrating The Clients

    Integrating the clients The following examples explain how to get a Red Hat Linux 8.0 client setup and integrated into the PXE server. When using other Linux distributions, slight changes to the commands and scripts are required. Populate the NFS server with Linux installation files using either of the following methods: Method 1: storing the Linux installation media as ISO images To use RHupdate with this method, place the updates.img file next to the ISO images.
  • Page 8 Option 2: dumping directly from CD-ROM mkdir -p /var/ftp/pub/rhl72/i386 Use the following command for each binary CD: (cd /mnt/cdrom && tar -cf - .)|(cd /var/ftp/pub/rhl72/i386 && tar -xvf -); eject Place the kickstart file on the NFS server along with Red Hat Linux 8.0 ISO images 1, 2, and 3 to ensure that the kickstart installation can operate correctly.
  • Page 9 Once the previous steps are complete, the following directory structure will exist: /tftpboot/ • /tftpboot/pxelinux.0 • /tftpboot/rhl80-vmlinuz • /tftpboot/rhl80-initrd.img • /tftpboot/pxelinux.cfg/ • /tftpboot/pxelinux.cfg/rhl80-syslinux.cfg • Note Run the "import-to-tftpboot.sh" script located in Appendix b to automatically accomplish the tasks described this step. A configuration file must be created to control what happens when the PXE client boots to PXE.
  • Page 10: Troubleshooting

    Alternative methods include: • Press F12 during POST to boot to PXE. If the HP Server Management Drivers and Agents (hpasm) are loaded on the server being • reprovisioned, set the server to a one-time PXE boot by typing: /sbin/bootcfg -P This setting allows for changes in the boot process without updating the BIOS or the need to press F12.
  • Page 11: Additional Configuration For Proliant Bl10E Servers

    Receiving an unauthenticated mount in which the server cannot do a reverse lookup on client IP to compare it to the "permissions" string in /etc/exports is also possible. To correct this issue, either add the client IPs to the /etc/hosts of the NFS server or define them in DNS for proper reverse lookups. Add appropriate lines to the dhcpd.conf file to notify the client about the location where DNS and gateway services reside.
  • Page 12 ## Show login prompt on serial port mv /etc/inittab /etc/inittab.sav cat /etc/inittab.sav | awk '{gsub("6:2345:respawn:/sbin/mingetty tty6","6:2345:respawn:/sbin/mingetty tty6\ns0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100"); print}' >> /etc/inittab ## Allow root to login on the serial port cat /etc/securetty | grep "^ttyS0" >/dev/null || echo ttyS0 >> /etc/securetty...
  • Page 13: Appendix A: Glossary

    Appendix a: glossary In this glossary, terms are listed alphabetically with detailed descriptions for each entry. Table 3. Glossary terms Term Definition Dynamic Host Configuration Protocol (DHCP) DHCP is a protocol used for assigning dynamic IP addresses to a device on a network.
  • Page 14: Appendix B: Sample Scripts And Files

    Appendix b: sample scripts and files For the PXE server This section includes sample configuration files as a reference for the PXE server examples provided throughout the HOWTO. NFS configuration file A typical NFS configuration file, /etc/exports, is similar to the following. /var/ftp/pub *(ro,insecure,sync,all_squash) To start the NFS server at the next boot, type the following lines at the command prompt:...
  • Page 15 Sample 2 This script, filename "rhl80-kickstart-install-syslinux.cfg," performs an automated installation using a kickstart file. # Install Red Hat 8.0 via kickstart file default ks prompt 1 timeout 20 display rhl80-boot.msg label ks kernel rhl80-vmlinuz append ks=nfs:172.48.0.1:/var/ftp/pub/kickstart/rhl80-ks.cfg initrd=rhl80- initrd.img lang= devfs=nomount ramdisk_size=9216 ksdevice=eth0 Sample 3 This script, filename "rhl80-bootnet.img-syslinux.cfg,"...
  • Page 16: Import-To-Tftpboot.sh File

    import-to-tftpboot.sh file The "import-to-tftpboot.sh" script imports a bootnet.img floppy into the /tftpboot directory and automatically renames the files based on the given name. #!/bin/sh TFTPBOOTDIR=/tftpboot PXELINUXDIR=$TFTPBOOTDIR/pxelinux.cfg TMPDIR=/tmp if [ -z "$2" ]; then echo This code will unpack a floppy image from location SOURCE into /tftpboot and will rename using the specified name;...
  • Page 17: For The Clients

    } || { echo Unable to mount that directory, no files found else # SOURCE dir is not empty, try to copy those files. cd $SOURCE copyfiles else # This is not a directory. FILETYPE=`file $SOURCE` case "$FILETYPE" in # "x86 boot sector, system SYSLINUX, FAT (12 bit)" *boot\ sector,\ system\ SYSLINUX,\ FAT\ *) mkdir $TMPDIR/tmp.dir.$$;...
  • Page 18 option subnet-mask 255.255.0.0; option nis-domain "domain.org"; option domain-name "domain.org"; option domain-name-servers 172.48.0.1,10.10.20.242; # PXE-specific configuration directives global section if substring (option vendor-class-identifier, 0, 9) = "PXEClient" filename "pxelinux.0"; next-server 172.48.0.1; option time-offset -21600; # Central Standard Time option ntp-servers 172.48.0.1; # option netbios-name-servers 172.48.1.1;...
  • Page 19: Syslinux.cfg Script

    syslinux.cfg script A typical "syslinux.cfg" file for Red Hat Linux 8.0 is similar to the following. This script controls which kernel, initrd, and kickstart files are used to boot the PXE clients. default ks prompt 1 timeout 20 display rhl80-bootnet.img-boot.msg F1 rhl80-bootnet.img-boot.msg F2 rhl80-bootnet.img-options.msg F3 rhl80-bootnet.img-general.msg...
  • Page 20 timezone --utc America/Chicago # Root password rootpw password # Reboot after installation. reboot # Use text mode install. text # Install Red Hat Linux instead of performing an upgrade. install # Use NFS installation media. nfs --server 172.48.0.1 --dir /var/ftp/pub/rh73 # System bootloader configuration bootloader --location=mbr # Clear the Master Boot Record.
  • Page 21: For More Information

    For more information For additional information, refer to the resources detailed below. Table 4. Web resources Resource description Web address Linux for ProLiant website contains software, http://h18000.www1.hp.com/products/servers/linux/index.html hardware certification matrices, and documentation for ProLiant servers running Linux. Red Hat Documentation & Online Resources the same www.redhat.com/docs/ guides that come with Red Hat's boxed products.

This manual is also suitable for:

Bl10e - proliant - g2Bl10e 512

Table of Contents