You can use an AI manifest or sysconfig profile when you need to install multiple kernel zones with specific resource and package configurations different from that of the global zone.
Use the zoneadm install command with the –m option to specify an alternate AI manifest:
# zoneadm –z zonename install –m manifest
Use the –c option to specify a sysconfig profile:
# zoneadm –z zonename install –c sysconfig-profile
For example, to use the AI manifest /data/archives/kzone-manifest.xml to install the kernel zone kzone1:
global# zoneadm -z kzone1 install -m /data/archives/kzone-manifest.xml
Note the following guidelines when installing an alternate AI manifest or sysconfig profile to a kernel zone:
For a successful installation, the AI manifest and sysconfig files must include the full path and .xml suffix.
You cannot apply custom disk references in an AI manifest to a kernel zone installation. Because a kernel zone root disk is not available to the global zone, the kernel zone installation script automatically assigns a labeled loopback file, or lofi, device during configuration to allow for root disk creation. See Removable lofi Device in Non-Global Zones in Introduction to Oracle Solaris Zones for information about how to configure lofi devices.
For additional information about developing and customizing an AI manifest, see Chapter 9, Customizing Installations, in Installing Oracle Solaris 11.2 Systems . See Zone Installation and Administration Concepts in Creating and Using Oracle Solaris Zones for further information about zone root disk creation.
This example shows an installation of the kernel zone kzone1 using the non-default Automated Install (AI) manifest /var/tmp/kz_manifest.xml.
global# zoneadm -z kzone1 install -m /var/tmp/manifest/kz_manifest.xml
Progress being logged to /var/log/zones/zoneadm.20146T195713Z.kzone1.install
pkg cache: Using /var/pkg/publisher.
Install Log: /system/volatile/install.10708/install_log
AI Manifest: /tmp/zoneadm10343.5la4Vu/devel-ai-manifest.xml
SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Installation: Starting ...
Creating IPS image
Startup: Retrieving catalog 'solaris' ... Done
Startup: Caching catalogs ... Done
Startup: Refreshing catalog 'solaris' ... Done
Installing packages from:
solaris
origin: http://pkg.oracle.com/solaris/release/
Startup: Linked image publisher check ... Startup: Refreshing catalog 'solaris' ... Done
Planning: Solver setup ... Done
Planning: Running solver ... Done
Planning: Finding local manifests ... Done
Planning: Fetching manifests: 0/501 0% complete
Planning: Fetching manifests: 501/501 100% complete
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 32.07 seconds
The following licenses have been accepted and not displayed.
Please review the licenses for the following packages post-install:
consolidation/osnet/osnet-incorporation
Package licenses may be viewed using the command:
pkg info --license <pkg_fmri>
Download: 0/64687 items 0.0/569.3MB 0% complete
Download: 931/64687 items 5.8/569.3MB 1% complete (1.2M/s)
...
Download: 64589/64687 items 569.2/569.3MB 99% complete (825k/s)
Download: Completed 569.25 MB in 358.54 seconds (1.6M/s)
Actions: 1/88614 actions (Installing new actions)
Actions: 19471/88614 actions (Installing new actions)
...
Actions: 86994/88614 actions (Installing new actions)
Actions: 87128/88614 actions (Installing new actions)
Actions: Completed 88614 actions in 73.71 seconds.
Installation: Succeeded
Done: Installation completed in 342.508 seconds.
Log saved in non-global zone as /zones/kzone1/root/var/log/zones/zoneadm.20146T195713Z.kzone1.install
global#
Example 2-3 Installing a Kernel Zone by Using an Alternate sysconfig
Profile
This example installs the kernel zone kzone1 using the sysconfig profile/var/tmp/kzone1.sysconfig.xml.
global# zoneadm -z kzone1 install -c /var/tmp/kzone1-sysconfig.xml
The following ZFS file system(s) have been created:
rpool/zones/kzone1
Progress being logged to /var/log/zones/zoneadm.20146T195713Z.kzone1.install
pkg cache: Using /var/pkg/publisher.
AI Manifest: /tmp/zoneadm124827.zQWoOh/devel-ai-manifest.xml
SC Profile: /var/tmp/kzone1-sysconfig.xml
Installation: Starting ...
Creating IPS image
Startup: Retrieving catalog 'nightly' ... Done
Startup: Caching catalogs ... Done
Startup: Refreshing catalog 'nightly' ... Done
Startup: Refreshing catalog 'solaris' ... Done
Startup: Refreshing catalog 'extra' ... Done
Startup: Caching catalogs ... Done
Installing packages from:
nightly
origin: file:///server/nightly
solaris
origin: file:///server/solaris
extra
origin: http://server/extra
Startup: Refreshing catalog 'nightly' ... Done
Startup: Refreshing catalog 'solaris' ... Done
Startup: Refreshing catalog 'extra' ... Done
Planning: Solver setup ... Done
Planning: Running solver ... Done
Planning: Finding local manifests ... Done
...
Planning: Fetching manifests: 552/552 100% complete
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 56.62 seconds
...
Download: 9746/65597 items 143.6/661.7MB 21% complete
Download: 35018/65597 items 370.8/661.7MB 56% complete
Download: 62181/65597 items 654.5/661.7MB 98% complete
Download: Completed 661.67 MB in 40.57 seconds (0B/s)
...
Actions: 87940/89672 actions (Installing new actions)
Actions: 88107/89672 actions (Installing new actions)
Actions: 88745/89672 actions (Installing new actions)
Actions: Completed 89672 actions in 108.50 seconds.
Done
Installation: Succeeded
Done: Installation completed in 342.508 seconds.
Log saved in non-global zone as /zones/kzone1/root/var/log/zones/zoneadm.20146T195713Z.kzone1.install
global#