Sun N1 Service Provisioning System User's Guide for OS Provisioning Plug-In 3.1

Preparing Your Network to Provision the RedHat Linux OS

Before you create the RedHat Linux image server, you need to perform the following tasks.

ProcedureHow to Set up NFS Access

The distribution should be accessible through NFS for each subnet served from this boot and install server.

Before You Begin

Be sure that the NFS utililties are installed on the boot and install server.

Steps
  1. Edit the /etc/exports file and add lines similar to the following example:


    /export   10.42.42.*(ro)
  2. 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
    

Setting Up TFTP Access for RedHat Linux Provisioning

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.

ProcedureHow to Set up TFTP Access for RedHat Provisioning With JET

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.

Before You Begin

Be sure that the appropriate TFTP server software is installed on the boot and install server.

Step

    Copy or create the following directories under the TFTP root directory:


    Note –

    This task uses /tftpboot as an example of the TFTP root directory.


ProcedureHow to Set up TFTP Access for Non-Jet RedHat Provisioning

The distribution should be accessible through NFS for each subnet served from this boot and install server.

Before You Begin

Be sure that the appropriate TFTP server software is installed on the boot and install server.

Steps
  1. 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.


    Note –

    This task uses /tftpboot as an example.


  2. 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
    
  3. 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.

ProcedureHow to Copy the RedHat Linux Files

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.

Follow these steps to create copies of the RedHat Linux files.

Steps
  1. Create a directory to contain the Linux files.


    Note –

    To serve multiple distributions from the same server, create a separate directory for each distribution.


  2. 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
      
    
  3. 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
       
    
  4. Repeat Steps 2 and 3 for all the CD-ROM or ISO media in the distribution.