Before you create the RedHat Linux image server, you need to perform the following tasks.
For non-JET provisioning, set up NFS access to the RedHat Linux images on your boot and install server.
For instructions, see How to Set up NFS Access.
Set up TFTP access to the RedHat Linux images on your boot and install server.
For instructions, see Setting Up TFTP Access for RedHat Linux Provisioning.
Create the RedHat Linux OS installation image.
For instructions, see How to Copy the RedHat Linux Files.
The distribution should be accessible through NFS for each subnet served from this boot and install server.
Be sure that the NFS utililties are installed on the boot and install server.
Edit the /etc/exports file and add lines similar to the following example:
/export 10.42.42.*(ro) |
Enable NFS and start it.
Use commands similar to the following, which apply to RedHat AS 3.0:
#chkconfig --level 35 nfs on #service nfs restart |
You must configure your network to enable TFTP access to provision the RedHat Linux OS. This section provides two separate procedures that describe how to enable TFTP access.
If you use JET to create your RedHat Linux image server, the TFTP service is automatically configured to support provisioning. You need to create or copy additional directories and files to the TFTP root directory on the boot and install server. The OS distribution should be accessible through NFS for each subnet served from this boot and install server.
Be sure that the appropriate TFTP server software is installed on the boot and install server.
Copy or create the following directories under the TFTP root directory:
/tftpboot/pxelinux.0 – You can download the Linux PXE bootstrap file from http://syslinux.zytor.com/pxe.php.
/tftpboot/pxelinux.cfg/ – This directory contains the PXE configuration files. These files contain parameters specific to each hardware platform and Linux distribution.
For instructions about how to create the PXE configuration file, see How to Create a PXE Configuration File for RedHat Linux OS Provisioning.
This task uses /tftpboot as an example of the TFTP root directory.
The distribution should be accessible through NFS for each subnet served from this boot and install server.
Be sure that the appropriate TFTP server software is installed on the boot and install server.
Look for the server_args parameter in the /etc/xinet.d/tftp file.
This defines the root directory used by the TFTP server. If the directory does not exist, create it.
This task uses /tftpboot as an example.
Enable TFTP and restart the xinetd daemon.
Use commands similar to the following example, which works on RedHat AS 3.0:
#chkconfig tftp on #service xinetd restart |
Copy or create the following directories under the TFTP root directory:
/tftpboot/pxelinux.0 – You can download the Linux PXE bootstrap file from http://syslinux.zytor.com/pxe.php.
/tftpboot/pxelinux.cfg/ – This directory contains the PXE configuration files. These files contain parameters specific to each hardware platform and Linux distribution.
/tftpboot/pxelinux.cfg/v20z-config – A specific directory for the V20z platform.
/tftpboot/vmlinuz – The installation kernel found under the distribution, in /images/pxeboot.
/tftpboot/initrd.img – The installation RAM disk found under the distribution, in /images/pxeboot.
This procedure describes how to create RedHat Linux OS images by copying the files from the product media. You can locate these copies on a system that is running either the RedHat Linux OS or the Solaris OS. You can also place the physical product media in the CD-ROM drives of a system, and point to these CDs as the image source for your provisioning plans. You are not required to locate these copies on your RedHat Linux boot and install server.
If you locate these copies on a system that is not the boot and install server, the copies must meet the following criteria.
For RedHat Linux provisioning that uses JET, the boot and install server and target host must be able to access the copies through NFS.
For RedHat Linux provisioning that does not use JET, the target host must be able to access the copies through NFS.
Follow these steps to create copies of the RedHat Linux files.
Create a directory to contain the Linux files.
To serve multiple distributions from the same server, create a separate directory for each distribution.
Mount the first CD-ROM or ISO image file.
Use a command similar to one of the following examples:
#mount /dev/cdrom by default, will mount on /mnt/cdrom, check /etc/fstab #mount -o loop /path-to-first-iso /mnt/loop assumes /mnt/loop exists |
Copy the content from the CD-ROM or ISO image file to the directory that you created in Step 1.
Use a command similar to one of the following examples:
#/bin/cp -avf /mnt/cdrom/* /export/RHEL3.0 #/bin/cp -avf /mnt/loop/* /export/RHEL3.0 |
Repeat Steps 2 and 3 for all the CD-ROM or ISO media in the distribution.