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

Automating Solaris 9 Installations on x86 Based Systems

To fully automate Solaris 9 installations on x86 based systems, you need to create additional configuration files to supply information to the Solaris Device Configuration Assistant (DCA) and kdmconfig utility.

ProcedureHow to Automate Solaris 9 x86 Installations

Steps
  1. Create a file named dca with the following contents.

    IF 0,2="Solaris Device Configuration" THEN
    F2
    FI
    IF *,0="Enter_Continue" THEN
    ENTER
    FI
    IF *,0="Enter_Continue" THEN
    ENTER
    FI
    IF *,0="Enter_Continue" THEN
    ENTER
    FI
    F2 F2
  2. Save the dca file to the boot/solaris directory in the Solaris 9 installation image.

    For example, save this file to the /export/s9_x86/Solaris_9/Tools/Boot/boot/solaris directory.

  3. Edit the bootrc file in the Solaris_9/Tools/Boot/etc directory of the Solaris 9 installation image to read as follows.

    #       @(#)bootrc 1.10 01/04/18
    #
    # bootrc script for installations
    #
    # ER - This script has been reduced to just start up the kernel boot.
    # No user interaction.
    
    # definitions
    set DEFAULT_BOOTFILE kernel/unix
    
    # retrieve boot-path constructed by MDB
    set bootfile $DEFAULT_BOOTFILE
    getprop boot-path bp
    getprop boot-args ba
    set bootargs "${ba}"
    
    # display current defaults
    echo "                        <<< Current Boot Parameters >>>
    Boot path: ${bp}
    Boot args: ${ba}
    
    "
    
            setprop boot-args '- install nowin'
            echo '
    <<< starting automatic installation >>>
    '
    echo "Booting $DEFAULT_BOOTFILE..."
    run $DEFAULT_BOOTFILE 
  4. Create a file named /sysidcfg-addon-file that contains the following text.

    keyboard=workaround:Unknown
    display=workaround:Unknown
    pointer=workaround:Unknown
    monitor=workaround:Unknown
  5. Edit the following basic Solaris OS configuration variables in the N1 SPS browser interface.

    x86_confflags_base_config

    Set this variable to point to the dca file in the Solaris installation image directory. For example, -f -P/boot/solaris/dca.

    sysidcfg_x86_kdmfile_base_config

    Set this variable to point to the /sysidcfg-addon-file you created.

    For instructions about how to create or edit Solaris OS Provisioning profile variables, see How to Create a Non-JET Solaris Provisioning Profile (Browser Interface).