Académique Documents
Professionnel Documents
Culture Documents
AI (Automated Installer) acts a network install server for Oracle Solaris 11. The following examines
the configuration of the AI server and the configuration files to install a server and a server install with
a zone.
-----------------------------NOTE -----------------------------
Note:
-------------------------------------------------------------------
The next command will install the AI server content and configure a DHCP server to be used by the AI
installation service. If a DHCP service exists remove the -i 192.168.0.205 -c 5 options and entries
to be added to the existing DHCP service will be displayed as part of the commands output. This
commands use the IPS repository to install the pkg:/install-image/solaris-auto-install as
opposed to the AI iso image.
root@sol11-11-server:/# installadm create-service -n primary_ai -i 192.168.0.205 -c
5 -d /export/ai/primary_ai
After the AI server is installed you can install client system by simply using PXE boot. The client
install will use default configuration parameters supplied by the install server. A pkg repository is not
used, the installation data is copied from the booted install image.
Except the default by pressing return or wait until the option is selected automatically.
To install the client hands free three configuration file need to be created.
A manifest file that contains client configuration information similar to the information
provided by the profile file of a jumpstart service.
A client criteria file that uniquely identifies the client system to the AI server, this file is similar
to the jumpstart servers rules file.
Finally, a system configuration file or profile that describe configuration information similar to
the jumpstart servers sysidcfg file.
Add the information for the client to be installed, this will associate the client with this instance of the
AI service and update the DHCP service, this client has a mac address of 08:00:27:18:98:DF.
First create a manifest for the client, a default manifest is located in the AI directory and can be used as
a template for the client AI manifest to be created. Copy the manifest to a new name and modify it:
root@sol11-11-server:/# cp /export/ai/primary_ai/auto_install/default.xml
/var/tmp/manifests/client_ai.xml
root@sol11-11-server:/# cd /var/tmp/manifests
The following is a listing of the modified client_ai.xml file with changes in bold:
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
-->
<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
<ai_instance name="client_ai" auto_reboot="true" >
<target>
<logical>
<zpool name="rpool" is_root="true">
<filesystem name="export" mountpoint="/export"/>
<filesystem name="export/home"/>
<be name="solaris"/>
</zpool>
</logical>
</target>
<software type="IPS">
<source>
<publisher name="solaris">
<origin name="http://sol11-11-server.timwort.org"/>
</publisher>
</source>
<!--
By default the latest build available, in the specified IPS
repository, is installed. If another build is required, the
build number has to be appended to the 'entire' package in the
following form:
<name>pkg:/entire</name>
-->
<software_data action="install">
<name>pkg://solaris/entire</name>
<name>pkg://solaris/group/system/solaris-large-server</name>
</software_data>
</software>
</ai_instance>
</auto_install>
root@sol11-11-server:/var/tmp/manifests# vi client_criteria.xml
<ai_criteria_manifest>
<ai_criteria name="mac">
<value>
08:00:27:18:98:df
</value>
</ai_criteria>
</ai_criteria_manifest>
Create a system configuration profile for the install client using the sysconfig(1M) command:
Note: If the IPS repository name is a uri (http://sol11-11-server.timwort.org) rather than a IP address
(http://192.168.0.200) then DNS must be configured on the install client in order to install the zone.
PXE boot the client and select Automated Install from the GRUB menu:
Part 2c: Installing a client and a zone.
Now the client has been configured for a hands free install using AI. The next step it to configure the
zone installation files and the server to store the zonecfg(1M) command file.
First create a zonecfg(1M) command file, this can be done with the export subcommand from a
existing zone or it can be created by hand:
The configuration file can be made available to install client in one of two ways, as a file accessible via
a NFS server or as a file accessible via a web server.
root@sol-11-11-desktop:/# cd /etc/apache2/2.2/
Modify the httpd.conf file and set the ServerName property to the IP address or resolvable host name
of the system.
root@sol-11-11-desktop:/var/apache2/2.2/htdocs# ls
favicon.gif favicon.ico index.html oaone.cfg
The alternate method is to share a file system via NFS and add the file to that file system:
The zone command file is referenced by the configuration tag in the client_ai.xml file:
...
</software>
<configuration type="zone" name="ozone" source="http://192.168.0.250/ozone.cfg" />
</ai_instance>
</auto_install>
Note: The client can be installed at this point and the zone will also be installed at the clients first boot,
however, the zone will have to be configured after it boots by using zlogin -C ozone and filling out
the sysconfig screens. Also, the client must be configured as a DNS client via the profile so that
during the zone install the repository server name can be resolved.
To have a hands free zone installation a zone manifest and zone profile are used. A example zone
manifest can be fount in the /export/ai/primary_ai/auto_install/manifest directory called
zone_default.xml.
The following manifest has been modified for the install of the zone named ozone.
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
-->
<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
<ai_instance name="zone_ozone">
<target>
<logical>
<zpool name="rpool">
<filesystem name="export" mountpoint="/export"/>
<filesystem name="export/home"/>
<be name="ozone">
<options>
<option name="compression" value="on"/>
</options>
</be>
</zpool>
</logical>
</target>
<software type="IPS">
<destination>
<image>
<property val="true">flush-content-cache-on-success</property>
</image>
</destination>
<software_data action="install">
<name>pkg:/group/system/solaris-small-server</name>
</software_data>
</software>
</ai_instance>
</auto_install>
The system configuration profile can be create by using the sysconfig command in a existing zone or
can be created by modifying the sample profile found on the AI server.
Add the zone manifest and zone profile to the primary_ai instance.
PXE boot the client system, after a few seconds you should see a boot screen, arrow down and select
the Oracle Solaris 11 11/11 Automated Install menu selection, press enter:
When the install completes and the client reboots you can verify the zone is being installed.
The zone will be in the incomplete state until the install completes:
The svc:/system/zones-install:default service will remain in offline* state until the install
completes.
You can verify the install is in progress by examining the zoneadm install process:
The log file for the svc:/system/zones-install:default service will show the install progress: