Red Hat Scripted OS install

book

Article ID: 180276

calendar_today

Updated On:

Products

Deployment Solution

Issue/Introduction

 

Resolution

Question
Can I get some information on using a scripted OS to installs Red Hat Linux?

Answer

Scripted OS Installs

These imported jobs allow you to run scripted, unattended installs on Linux servers. These jobs are used for both network installs and hard disk installs. To do a network scripted install of Linux, use the Scripted OS install task type in a job: Jobs are included in the DS console.

 

Create RH7 Install Disk Image (Network)

Description: Creates a disk image to be used for installing Red Hat Linux 7.1 through the network install method. The network method copies the Red Hat files from an FTP server during installation of the operating system.

Additional files required:

  • /opt/altiris/deployment/adlserver/images/dos_only.img. Image file containing simple bootable partition. Provided during the product install.
  • /opt/altiris/deployment/adlserver/samples/scriptedosinstall/redhat/rh7setup.bat. DOS batch file that the job calls to copy the basic Red Hat files needed for the Kickstart install such as LOADLIN, VMLINUZ, and so on.

What this does: This job creates a hard disk image that can later be used for installing Red Hat Linux through the network install method. It downloads the dos_only image to the selected client computer. This creates a 2 GB FAT16 DOS bootable partition. Then it reboots the client computer so that DOS will recognize the newly created DOS partition. It then calls RH7SETUP to copy the basic Red Hat files that facilitate a Red Hat Kickstart install. It then runs RapiDeploy to create a disk image of the now populated DOS partition.

Steps to use:

  1. Make a copy of the sample job.
  2. Edit the last Run Script task, Create Red Hat Install Disk Image, and change the SET ImageName=F:\IMAGES\RH71_FTP.IMG line to the name of the image you wish to create.
  3. Change the name of the job to reflect the desired purpose (optional).
  4. Assign the job to a computer or computer group.

Create RH7 Install Disk Image (Target HD)

Description: Creates a disk image to be used for installing Red Hat Linux (7.1 or later) through the hard disk install method (where files are installed from the local hard disk).

Additional files required:

  • /opt/altiris/deployment/adlserver/images/dos_only.img. Image file containing a simple bootable partition. Provided during the product install.
  • Red Hat OS files (redhat and dosutils directories from the Red Hat CD). These files need to be copied from the Red Hat CD to the install path\deploy\cds\redhat\rh71\redhat and install path\deploy\cds\redhat\rh71\dosutils directories, respectively.
  • /opt/altiris/deployment/adlserver/samples/scriptedosinstall/redhat/rh7setup.bat. DOS batch file that the job calls to copy the Red Hat OS files needed for the target hard disk install.

What this does: This job creates a hard disk image that can later be used for installing Red Hat Linux 7.1 through the hard disk install method. It downloads the dos_only image to the selected client computer. This creates a 2 GB FAT16 DOS bootable partition. It reboots the client computer so that DOS will recognize the newly created DOS partition. It calls rh7setup.bat to copy the basic Red Hat files that facilitate a Red Hat Kickstart install. It also copies the Red Hat operating system files to the target's hard disk in the C:\RedHat directory. It runs RapiDeploy to create a disk image of the now populated DOS partition.

Steps to use:

  1. Make a copy of the sample job.
  2. Edit the last Run Script task, Create Red Hat Install Disk Image, and change the SET ImageName=F:\IMAGES\RH71_HD.IMG line to the name of the image you wish to create.

    If you copied the Red Hat operating system files to a location other than /opt/altiris/deployment/adlserver/deploy/cds/redhat/rh71, edit the second Run Script task, Copy RedHat Files to Hard Drive, and specify the location on the SET OSFilesPath=line.
  3. Change the name of the job to reflect the desired purpose (optional).
  4. Assign the job to a computer or computer group.

RH7 Scripted Install (Network)

Description: This job deploys the Red Hat Linux operating system using the network scripted install model. The network method copies the Red Hat files from an FTP server during installation of the operating system.

Additional files required:

  • /opt/altiris/deployment/adlserver/images/rh71_ftp.img. This is the image file created by the Create RH7 Install Disk Image (Network) job described above. You may have changed the name. This image file contains a DOS bootable partition with the basic Red Hat files that facilitate a Red Hat Kickstart install.
  • Red Hat Kickstart answer file. A sample is located in the /samples/scriptedosinstall/redhat directory.

What this does: This job starts a Red Hat Kickstart operating system install on a client computer using the network install method. It downloads the rh71_ftp image (or whatever you have named it) to the selected client computer. This creates a 2 GB FAT16 DOS bootable partition with files to facilitate a Red Hat Kickstart install. It reboots the client computer so that DOS will recognize the newly created DOS partition. It uses a Scripted OS Install task to start the unattended install on the client computer. This job contains the location of the operating system install files located on the FTP server and the Kickstart file to be used for the operating system install.

Steps to use:

  1. Make a copy of the sample job.
  2. Edit the Deploy Image task and change the name of the image file to the name you created with the Create RH7 Install Disk Image (Network) job described above.
  3. Edit the Scripted OS Install task and change the location of the Kickstart answer file.
  4. Change the hard disk ID in the command-line edit box to the proper ID for the target system. The default is ks=hd:hda1/ks.cfg where hda1 is the default hard disk ID.
  5. Change the name of the job to reflect the desired purpose (optional).
  6. Assign the job to a computer or computer group.

RH7 Scripted Install (Target HD)

Description: This job deploys the Red Hat Linux operating system using the hard disk scripted install model.

Additional files required:

  • /opt/altiris/deployment/adlserver/images/rh71_hd.img. This is the image file created by the Create RH7 Install Disk Image (Target HD) job described above. You may have changed the name. This image file contains a DOS bootable partition with the Red Hat OS files that are required for a Red Hat Kickstart install.
  • Red Hat Kickstart answer file. A sample is located in the /samples/scriptedosinstall/redhat directory.

What this does: This job starts a Red Hat Kickstart OS install on a client computer using the Target HD install method. It downloads the rh71_hd image (or whatever you have named it) to the selected client computer. This creates a 2 GB FAT16 DOS bootable partition with the operating system files to do a Kickstart unattended install. It uses a Scripted OS Install task to get the Kickstart answer file copied to the client computer. This task contains the location of the answer file to be used for the OS install. It reboots the client computer. Upon reboot, the DOS partition is booted and the OS install is automatically started.

Steps to use:

  1. Make a copy of the sample job.
  2. Edit the Deploy Image task and change the name of the image file to the name you created with the Create RH7 Install Disk Image (Target HD) job described above.
  3. Edit the Scripted OS Install task and point it to the desired Kickstart answer file.
  4. Change the hard disk ID in the command-line edit box to the proper ID for the target system. The default is ks=hd:hda1/ks.cfg where hda1 is the default hard disk ID.
  5. Change the name of the job to reflect the desired purpose (optional).
  6. Assign the job to a computer or computer group.

Create RH8 Install Disk Image (Network)

Description: Creates a disk image to be used for installing Red Hat Linux 8.0 through the network install method. The network method copies the Red Hat files from an FTP, NFS, or HTTP server during the installation of the operating system.

Additional files required

  • /opt/altiris/deployment/adlserver/images/dos_only.img. Image file containing simple bootable partition. Provided during the product install.
  • /opt/altiris/deployment/adlserver/samples/scriptedosinstall/redhat/rh8setup.bat. DOS batch file that the job calls to copy the basic Red Hat files needed for the Kickstart install such as LOADLIN, VMLINUZ, and so on.

What this does This job creates a hard disk image that can later be used for installing Red Hat Linux through the network install method. It downloads the dos_only image to the selected client computer. This creates a 2 GB FAT16 DOS bootable partition. It reboots the client computer so that DOS will recognize the newly created DOS partition. It calls RH8SETUP to copy the basic Red Hat files that facilitate a Red Hat Kickstart install. It runs RapiDeploy to create a disk image of the now populated DOS partition.

Steps to use

  1. Make a copy of the sample job.
  2. Edit the last Run Script task, Create Red Hat Install Disk Image, and change the SET ImageName=F:\IMAGES\RH80_FTP.IMG line to the name of the image you wish to create.
  3. Change the name of the job to reflect the desired purpose (optional).
  4. Assign the job to a computer or computer group.

RH8 Scripted Install (Network)

Description This job deploys the Red Hat Linux operating system using the network scripted install model. The network method copies the Red Hat files from an FTP, NFS, or HTTP server during OS installation.

Additional files required

  • /opt/altiris/deployment/adlserver/images/rh80_ftp.img. This is the image file created by the Create RH8 Install Disk Image (Network) job described above. You may have changed the name. This image file contains a DOS bootable partition with the basic Red Hat files that facilitate a Red Hat Kickstart install.
  • Red Hat Kickstart answer file, located in the /samples/scriptedosinstall/redhat directory.

What this does This job starts a Red Hat Kickstart OS install on a client computer using the network install method. It downloads the rh80_ftp image (or whatever you have named it) to the selected client computer. This creates a 2 GB FAT16 DOS bootable partition with files to facilitate a Red Hat Kickstart install. It reboots the client computer so that DOS will recognize the newly created DOS partition. It uses a Scripted OS Install task to start the unattended install on the client computer. This task contains the location of the OS install files located on the FTP server and the Kickstart file to be used for the OS install.

Steps to use:

  1. Make a copy of the sample job.
  2. Edit the Deploy Image task and change the name of the image file to the name you created with the Create RH8 Install Disk Image (Network) job described above.
  3. Edit the Scripted OS Install task and change the location of the Kickstart answer file.
  4. Change the hard disk ID in the command-line edit box to the proper ID for the target system. The default is ks=hd:hda1/ks.cfg where hda1 is the default hard disk ID.
  5. Change the name of the job to reflect the desired purpose (optional).
  6. Assign the job to a computer or computer group.