Sun Microsystems 10 User Manual

Page of 121
Version 3.1-en
  Solaris 10 Container Guide - 3.1   5. Cookbooks 
Effective: 30/11/2009
5. Cookbooks
The   Cookbooks   chapter   demonstrates   the   implementation   of   conceptional   Best   Practices   with 
concrete examples.
5.1. Installation and configuration
5.1.1. Configuration files
[dd] File: /etc/zones/index
Lists all configured zones of a system, incl. zone status and root directory.
# DO NOT EDIT: this file is automatically generated by zoneadm(1M)
# and zonecfg(1M).  Any manual changes will be lost.
#
global:installed:/
sparse:installed:/zones/sparse:ae343d81-3439-cd4d-ff52-f110feeff8d2
whole:configured:/zones/whole
File: /etc/zones/<zonename>.xml
Contains the configuration of a zone <zonename> and can also be used as a template (zoneadm: 
create -t <zone>
)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE   zone   PUBLIC   "-//Sun   Microsystems   Inc//DTD   Zones//EN" 
"file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
    DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
-->
<zone   name="sparse"   zonepath="/zones/sparse"   autoboot="false" 
pool="sparse">
  <inherited-pkg-dir directory="/lib"/>
  <inherited-pkg-dir directory="/platform"/>
  <inherited-pkg-dir directory="/sbin"/>
  <inherited-pkg-dir directory="/usr"/>
  <inherited-pkg-dir directory="/opt"/>
  <network address="192.168.1.20" physical="bge0"/>
</zone>
File: /etc/zones/SUNWblank.xml
Determines the standard guideline by which blank zones (command 
z o n e a d m   c r e a t e   - b
) are 
created.
<!DOCTYPE   zone   PUBLIC   "-//Sun   Microsystems   Inc//DTD   Zones//EN" 
"file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<zone name="blank" zonepath="" autoboot="false">
</zone>
File: /etc/zones/SUNWdefault.xml
Determines the standard guideline by which default zones (sparse root) are created (do not change).
<!DOCTYPE   zone   PUBLIC   "-//Sun   Microsystems   Inc//DTD   Zones//EN" 
"file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<zone name="default" zonepath="" autoboot="false">
  <inherited-pkg-dir directory="/lib"/>
  <inherited-pkg-dir directory="/platform"/>
  <inherited-pkg-dir directory="/sbin"/>
  <inherited-pkg-dir directory="/usr"/>
</zone>
File: /var/sadm/install/gz-only-packages
Lists all packages that were installed in the global zone with 
p k g a d d   - G
 and are not used for the 
creation of local zones. This file should not be modified manually.
65