JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11 Express Automated Installer Guide     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Automated Installer Overview

2.  Setting Up an AI Install Server

AI Server Setup Task Map

Install Server Requirements

AI Server Hardware Requirements

AI Server Software Requirements

Set Up the Install Image and Install Service

Identify Space for Your AI Image Files

Install the AI Installation Tools

Set Up an AI Boot Image

How to Set Up an AI Boot Image

Create an AI Install Service

Create an Install Service Without DHCP Setup

Create an Install Service Including Oracle Solaris DHCP Setup

Review the Default Installation Instructions

Manage an Install Server

Add or Delete an Install Service

Enable or Disable an Install Service

Associate Clients With Install Services

Add a Client To an Install Service

Delete a Client From an Install Service

Associate Client-Specific Installation Instructions With Install Services

Add an AI Manifest

Modify Criteria for an Installation Instructions Manifest

Delete an Installation Instructions Manifest

Show Information About Install Services

List All Install Services on the Install Server

Show Information for a Specified Install Service

List Clients Associated With Install Services

List Clients Associated With a Specific Install Service

Show Information About Customized Installations

List All Manifests

List Manifests Associated With a Specified Install Service

Administering the AI SMF Service

3.  Customizing Installations

4.  Specifying Installation Instructions

5.  Configuring the Client System

6.  Setting Up DHCP for AI

7.  Installing Client Systems

8.  Automated Installations That Boot From Media

A.  Troubleshooting Automated Installations

B.  Automated Installer Installation Administration Commands

C.  Migrating From JumpStart to Automated Installer

Set Up the Install Image and Install Service

Perform the following steps to set up an install image and install service:

Identify Space for Your AI Image Files

The AI boot image ISO files and the expanded versions of these images must be stored on your AI server. Consider storing these files on a separate ZFS file system so that you can take advantage of ZFS features such as:

See the Oracle Solaris ZFS Administration Guide for more information and best practices for creating ZFS file systems.

Install the AI Installation Tools

The AI installation tools package provides the installadm(1M) commands that enable you to create and manage AI install services.

The installadm utility enables you to accomplish the following tasks:

See Manage an Install Server and Appendix B, Automated Installer Installation Administration Commands for more information about installadm commands.

To install the tools package, your AI install server must be able to access an Oracle Solaris Image Packaging System (IPS) package repository. Make sure you are connected to the Internet or to a local IPS package server that contains the install/installadm package. The install/installadm package that you install must be the same version as the version of the Oracle Solaris OS that the AI install server is running.

Make sure your preferred publisher is set to the repository from which you want to get the AI tools package, or specify the publisher when you install the tools package.

The following example shows that two publishers are defined:

# pkg publisher
PUBLISHER                 TYPE    STATUS  URI
solaris      (preferred)  origin  online  http://pkg.oracle.com/solaris/release
example.com  (non-sticky) origin  online  http://pkg.example.com/

The following example installs the AI tools package from the preferred publisher, solaris:

# pkg install install/installadm

The following example installs the tools package from the example.com publisher, which is not the preferred publisher:

# pkg install pkg://example.com/install/installadm

See the Oracle Solaris 11 Express Image Packaging System Guide for information about how to add a publisher and set a preferred publisher.

Set Up an AI Boot Image

AI uses a minimal boot image to boot the client. After the client boots, the installation of the Oracle Solaris OS continues according to the installation instructions in the install service.

How to Set Up an AI Boot Image

  1. Assume the root role:
    $ su - root
  2. Create a ZFS file system in the root pool for the boot images.

    In this example, the new ZFS file system is named ai.

    # zfs create rpool/ai

    In many cases, setting the compression=on option is a good practice. In this case, you might gain very little from specifying compression because the AI ISO files are already compressed. Similarly, setting dedup=on can be a good practice. See Introducing ZFS Properties in Oracle Solaris ZFS Administration Guide for information on ZFS file system properties. See The dedup Property in Oracle Solaris ZFS Administration Guide for more information about deduplication.

  3. Download the boot image.

    To download the AI boot image, go to the following Internet location:http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html

    Be sure to download the Automated Install image and not the live CD image or the text install image. Download the Oracle Solaris 11 Express SPARC Automated Install image for SPARC clients or the Oracle Solaris 11 Express x86 Automated Install image for x86 clients. For x86, be sure to download the .iso file and not the .usb file. (The .usb file can be used to initiate an AI install by booting a system from a USB device. See Chapter 8, Automated Installations That Boot From Media. The .usb file is not suitable for creating an install service.)

    The AI ISO image must be the same version as the Oracle Solaris OS that you plan to install on the client.

Create an AI Install Service

Create an install service to associate an install image with a named install service. Client systems use the install service name to find the correct install image.

An install server can have more than one install service. Each install service is associated with only one boot image. To install both SPARC and x86 clients, for example, you need one install service with a SPARC boot image and a second install service with an x86 boot image.

Use the installadm create-service command to create an AI install service. Give the service a name, specify the path to the ISO image to use, and specify the path where you want the ISO image unpacked. The path where the ISO image is unpacked is also called the target or net image.

If you do not supply a name, the name assigned to the install service is _install_service_port_number.

If you do not specify the path to the ISO image to use, then the path you specify for the net image must already contain the unpacked ISO image files.

The installadm create-service command also provides a net install image on a web server running on port 5555. For example, the web server address might be http://ai server:5555/export/aiserver/s11-ai-x86/s11-x86.

The create-service command can set up Oracle Solaris DHCP on the AI install server as shown in Create an Install Service Including Oracle Solaris DHCP Setup. See Chapter 6, Setting Up DHCP for AI if you want to do any of the following DHCP tasks:

The DHCP server must be able to provide DNS information to the install clients.

Create an Install Service Without DHCP Setup

The following example creates an AI install service for SPARC clients. (This process is the same for an x86 install service, though the output is different.) The -n option specifies the service name, and the -s option specifies the path to the AI ISO image file to be used to create this service. In this example, DHCP is already set up on a different server or will be set up later. If the create-service command does not detect DHCP on this AI install server, the output of the command displays instructions for creating a DHCP macro by using dhtadm(1M) to add the macro to the DHCP configuration table, dhcptab(4). See Chapter 6, Setting Up DHCP for AI for more information.

# installadm create-service -n s11-sparc \
-s /rpool/ai/s11_sparc/iso/s11-ai-sparc.iso \
/rpool/ai/s11_sparc/target
Setting up the target image at /rpool/ai/s11_sparc/target ...
Registering the service s11-sparc._OSInstall._tcp.local

Detected that DHCP is not set up on this server.
If not already configured, please create a DHCP macro
named dhcp_macro_s11-sparc with:
   Boot server IP (BootSrvA) : 10.6.68.29
   Boot file      (BootFile) : http://10.6.68.29:5555/cgi-bin/wanboot-cgi
If you are running the Solaris DHCP server, use the following
command to add the DHCP macro, dhcp_macro_s11-sparc:
   /usr/sbin/dhtadm -g -A -m dhcp_macro_s11-sparc \
-d :BootSrvA=10.6.68.29:BootFile=\"http://10.6.68.29:5555/cgi-bin/wanboot-cgi\":
Note: Be sure to assign client IP address(es) if needed
(e.g., if running the Solaris DHCP server, run pntadm(1M)).
Service discovery fallback mechanism set up
Creating SPARC configuration file

This command displays the name and values of a macro, dhcp_macro_s11-sparc, that you must add to the DHCP server.

If you are using the Oracle Solaris DHCP server, you can create the macro on your DHCP server by running the dhtadm commands shown in the above output on your DHCP server. On systems that support graphic interfaces, you can use the DHCP Manager, dhcpmgr(1M), instead of the dhtadm commands.

Create an Install Service Including Oracle Solaris DHCP Setup

You can use the installadm create-service command to set up an Oracle Solaris DHCP server on this AI install server. (This process is the same for both SPARC and x86 install services, though the output is different.) The following example creates an install service for x86 clients where the network consists of a single subnet and the install server also acts as the DHCP server for the network, using DNS to resolve host names. AI creates a new DHCP macro named dhcp_macro_s11-x86. This install service serves five IP addresses (-c), starting from 172.1.0.10 (-i). See Configure an Existing DHCP Server for AI for more information.

# installadm create-service -n s11-x86 -i 172.1.0.10 -c 5 \
-s /rpool/ai/s11_x86/iso/s11-ai-x86.iso \
/rpool/ai/s11_x86/target
Setting up the target image at /rpool/ai/s11_x86/target ...
Registering the service s11_x86._OSInstall._tcp.local
Creating DHCP Server
Created DHCP configuration file.
Created dhcptab.
Added "Locale" macro to dhcptab.
Added server macro to dhcptab - line1-x4100.
DHCP server started.
Added network macro to dhcptab - 10.0.0.0.
Created network table.
Copying boot file to /tftpboot/pxegrub.I86PC.Solaris-1
Service discovery fallback mechanism set up

In this example, you can review the menu.lst file in /tftpboot/menu.lst.s11_x86.

If DHCP service is already set up on this server, you can use the -i and -c options to update the DHCP server with new IP addresses for the named AI service.

You can view the DHCP configuration results in the DHCP table by using the DHCP Manager utility, dhcpmgr(1M).

Review the Default Installation Instructions

An AI manifest contains installation and configuration instructions that can be used for one or more clients. Each boot image includes a default AI manifest that can be used for clients of any install service that is created using this boot image. The manifest is unpacked along with the other files in the image. For example, if the net image path for a service is /rpool/ai/s11_sparc/target, then the default AI manifest is in /rpool/ai/s11_sparc/target/auto_install/default.xml.

This is the default AI manifest for all clients that use any install service that uses this install image.


Note - Do not delete, move, or rename this default.xml file.


Review this default manifest to determine whether it meets the needs of all the clients that will use an install service based on this image. Default AI Manifest shows a copy of the default AI manifest. The default manifest might be slightly different in different install images.

To perform different installations on different clients using the same install image, provide customized AI manifests for that install service. More than one AI manifest can be associated with each install service. Clients that do not match the criteria specified to use any custom manifest are installed using the instructions in the default AI manifest.


Note - In general, do not modify the net_install_image_path/auto_install/default.xml file. The net_install_image_path/auto_install/default.xml file will be the default AI manifest for any install service created in the future that uses this install image. The default AI manifest must work for any client that does not match a custom manifest, for any service based on this image.


Instead of modifying net_install_image_path/auto_install/default.xml, consider the following alternatives: