Version 3.1-enSolaris 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 zoneadm create -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 pkgadd -Gand are not used for the creation of local zones. This file should not be modified manually.

65

Page 72
Image 72
Sun Microsystems 10 manual Installation and configuration, Configuration files, Dd File /etc/zones/index