Compaq BL10e Setting up a Linux PXE server and integrating clients
Compaq BL10e - HP ProLiant - 512 MB RAM Manual
UPC - 613326445501
View all Compaq BL10e manuals
Add to My Manuals
Save this manual to your list of manuals |
Compaq BL10e manual content summary:
- Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 1
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 - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 2
for PXE functionality. For the PXE server Setting up a Linux PXE server requires an HP ProLiant server and two key software components that provide basic PXE functionality: (1) the DHCP server and (2) the TFTP server. Although the DHCP server and the TFTP server components can reside on separate - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 3
the server for a configuration file that matches the IP address of the machine. If no matches are found, it will attempt to load a file called default. • The configuration file loaded by pxelinux.0 will have instructions on be used. The examples in this paper use AC3001FD, the most specific choice. 3 - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 4
A kickstart file is a collection of instructions and keywords that the Red Hat Linux server Follow these steps to set up the PXE server: 1. Install Red Hat Linux 8.0 on a suitable HP ProLiant server. Note Refer to the ProLiant server certification matrix, http://h18000.www1.hp.com/products/servers - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 5
, HP recommends specifying which interfaces the DHCP server will use. Edit /etc/sysconfig/dhcpd by adding the appropriate interface to the DHCPDARGS= line. The entry in /etc/sysconfig/dhcpd should appear as follows: DHCPDARGS=eth0 • Run the following command to ensure that the DHCP service will - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 6
we want associated with it. 9. 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 Do not run a new DHCP server on a network with an existing one unless you have configured the network for multiple - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 7
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. 1. Populate the NFS server with Linux installation files using either of the following methods - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 8
each binary CD: (cd /mnt/cdrom && tar -cf - .)|(cd /var/ftp/pub/rhl72/i386 && tar -xvf -); eject 2. 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. mkdir /var/ftp/pub/kickstart cp ks.cfg - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 9
the default entry affects any clients that may PXE boot and do not have a specific HEX IP address entry in /tftpboot/pxelinux.cfg. In the following example, we to PXE is moved to the top of the boot order. Then the PXE server, through the use of soft links in the /tftpboot/pxelinux.cfg directory, - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 10
PXE. • If the HP Server Management Drivers and Agents (hpasm) are loaded on the server being reprovisioned, set the server to a one-time Troubleshooting" section. Troubleshooting This section contains usage information, potential issues, and additional configuration steps to aid in troubleshooting - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 11
where DNS and gateway services reside. option domain-name option domain-name-servers option routers "testnetwork. server will not try the reverse lookup. Additional configuration for ProLiant BL10e servers The following changes are recommended to optimize the serial port on ProLiant BL10e servers - Compaq BL10e | Setting up a Linux PXE server and integrating clients - 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 - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 13
service supplies the server with an address that never changes. This assignment eliminates the need to manually configure a static IP address on the server or both systems will have network problems. Automatically configuring IP addresses through a single DHCP server aids in preventing IP address - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 14
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: chkconfig the services now instead of rebooting, type the following lines at the command prompt: service nfs start service nfslock start service portmap - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 15
=nomount ramdisk_size=9216 ksdevice=eth0 ... Sample 3 This script, filename "rhl80-bootnet.img-syslinux.cfg," explains how to use a boot image to the server. # Boot to a disk image (bootnet.img) default rhl80-bootnet.img prompt 1 timeout 600 ... label rhl80-bootnet.img kernel memdisk append initrd - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 16
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 - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 17
} || { echo Unable to mount that directory, no files found } } else # SOURCE dir is not empty, try to copy those files. cd $SOURCE copyfiles fi else # This is not a directory. FILETYPE=`file $SOURCE` case "$FILETYPE" in # "x86 boot sector, system SYSLINUX, FAT (12 bit)" *boot\ sector,\ system\ - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 18
-lease-time 43200; host 00080246e75d { hardware ethernet 00:08:02:46:e7:5d; fixed-address 172.48.1.253; # PXE-specific configuration directives client specific section next-server 172.48.0.1; filename "pxelinux.0"; } host 00508bea8000 { hardware ethernet 00:50:8b:ea:80:00; fixed-address 172.48.1.254 - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 19
. This script controls how a Red Hat Linux installation is performed. # Merged from Red Hat Linux versions: 7.2, EL 2.1, 7.3, 8.0. # Change the line nfs --server 172.48.0.1 --dir /var/ftp/pub/rh73 # to reflect the correct installation directory # for the OS version being installed. # Also, you may - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 20
instead of performing an upgrade. install # Use NFS installation media. nfs --server 172.48.0.1 --dir /var/ftp/pub/rh73 # System bootloader configuration minimal install. %packages --resolvedeps wget openssh openssh-clients openssh-server nfs-utils portmap #@Everything %post Note To perform a full - Compaq BL10e | Setting up a Linux PXE server and integrating clients - Page 21
contain documents to help you install, set up, and troubleshoot your Linux system. Web address http://h18000.www1.hp.com/products/servers/linux/index.html www.redhat.com/docs/ www.redhat.com/docs/manuals/linux/ www.redhat.com/apps/support/resources/ Call to action To help us better understand and
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