HP BL10e Setting up a Linux PXE server and integrating clients - Page 8

Ensure that the permissions on /tftpboot allow anonymous access by using this command

Page 8 highlights

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 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 /var/ftp/pub/kickstart/rhl80-ks.cfg Note A kickstart file is generated after installation or the redhat-configkickstart program may be run. Older versions of Red Hat Linux use ksconfig. The kickstart file provided in Appendix b has been tested and works with Red Hat Linux 7.2, Red Hat Linux 7.3, Red Hat Linux 8.0, and Red Hat Enterprise Linux 2.1. If a required keyword for the specified Linux distribution is missing, the installation will stop and wait for user input at the console. 3. Populate the PXE server with items to boot from. In this client example, we will perform a Red Hat Linux 8.0 installation. Most files will be placed into the /tftpboot directory and syslinux.cfg will be placed in /tftpboot/pxelinux.cfg. With the Red Hat 8.0 Linux CD-ROM and bootnet.img floppy inserted, perform the following commands: cp -a /mnt/cdrom/images/bootnet.img /tftpboot/rhl80-bootnet.img cd /mnt/floppy cp -a syslinux.cfg /tftpboot/pxelinux.cfg/rhl80-syslinux.cfg All other files are stored in the /tftpboot directory: cp -a initrd.img /tftpboot/rhl80-initrd.img cp -a vmlinuz /tftpboot/rhl80-vmlinuz for X in *.msg; do cp -a $X /tftpboot/rhl80-$X; done The initrd.img and vmlinuz can also be copied from the /images/pxeboot directory of Red Hat Linux 8.0 CD #1 rather than from the bootnet floppy. The vmlinuz from /images/pxeboot is an exact copy of the one on the bootnet floppy. The initrd.img file contains more drivers than the bootnet.img file. Ensure that the permissions on /tftpboot allow anonymous access by using this command: chmod -R o=rx /tftpboot 4. Edit the /tftpboot/pxelinux.cfg/rhl80-syslinux.cfg configuration file so that the filenames match those in the /tftpboot directory. The following commands used in vi are helpful to make these global changes in the rhl80-syslinux.cfg file: :%s/ \(.*msg\)/ rhl80-\1/g :%s/kernel \(.*vmlinuz\)/kernel rhl80-\1/ :%s/\(initrd=\)\(.*initrd.img\)/\1rhl80-\2/ 8

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

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
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 /var/ftp/pub/kickstart/rhl80-ks.cfg
Note
A kickstart file is generated after installation or the redhat-config-
kickstart program may be run. Older versions of Red Hat Linux use
ksconfig.
The kickstart file provided in Appendix b has been tested and works
with Red Hat Linux 7.2, Red Hat Linux 7.3, Red Hat Linux 8.0, and Red
Hat Enterprise Linux 2.1.
If a required keyword for the specified Linux distribution is missing, the
installation will stop and wait for user input at the console.
3.
Populate the PXE server with items to boot from.
In this client example, we will perform a Red Hat Linux 8.0 installation. Most files will be placed
into the /tftpboot directory and syslinux.cfg will be placed in /tftpboot/pxelinux.cfg. With the Red
Hat 8.0 Linux CD-ROM and bootnet.img floppy inserted, perform the following commands:
cp -a /mnt/cdrom/images/bootnet.img /tftpboot/rhl80-bootnet.img
cd /mnt/floppy
cp -a syslinux.cfg /tftpboot/pxelinux.cfg/rhl80-syslinux.cfg
All other files are stored in the /tftpboot directory:
cp -a initrd.img /tftpboot/rhl80-initrd.img
cp -a vmlinuz /tftpboot/rhl80-vmlinuz
for X in *.msg; do cp -a $X /tftpboot/rhl80-$X; done
The initrd.img and vmlinuz can also be copied from the /images/pxeboot directory of Red Hat
Linux 8.0 CD #1 rather than from the bootnet floppy. The vmlinuz from /images/pxeboot is an
exact copy of the one on the bootnet floppy. The initrd.img file contains more drivers than the
bootnet.img file.
Ensure that the permissions on /tftpboot allow anonymous access by using this command:
chmod -R o=rx /tftpboot
4.
Edit the /tftpboot/pxelinux.cfg/rhl80-syslinux.cfg configuration file so that the filenames match
those in the /tftpboot directory. The following commands used in vi are helpful to make these
global changes in the rhl80-syslinux.cfg file:
:%s/ \(.*msg\)/ rhl80-\1/g
:%s/kernel \(.*vmlinuz\)/kernel rhl80-\1/
:%s/\(initrd=\)\(.*initrd.img\)/\1rhl80-\2/
8