Sun Microsystems 10 Computer Hardware User Manual


 
Version 3.1-en Solaris 10 Container Guide - 3.1 5. Cookbooks Effective: 30/11/2009
5.1.4. Configuring a sparse root zone: required Actions
[dd] To change a sparse root zone into a whole root zone it is necessary to re-install the zone after
change of the configuration. Therefore, before starting the configuration, the type of zone to be
created must be selected wisely. Decision support aids have already been discussed in this
document. The following information is required for the configuration:
Determination of zone name
Determination of the root directory of the zone
Assignment of an interface
Assignment of an IP address
In this example, /opt/sfw is specified as inherit-pkg-dir since software from the
companion DVD is installed here and can thus be used by all local zones once it is installed in
the global zone. This decision must be made before the zone is created and can subsequently
only be changed by reinstalling the zone.
The directory /opt is copied and remains writable for the local zone.
Following configuration, the zone must be installed and initialized prior to first use (see 5.1.6 Zone
installation).
global# zonecfg -z zone1
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/zones/zone1
zonecfg:zone1> add inherit-pkg-dir
zonecfg:zone1:inherit-pkg-dir> set dir=/opt/sfw
zonecfg:zone1:inherit-pkg-dir> end
zonecfg:zone1> add net
zonecfg:zone1:net> set physical=bge0
zonecfg:zone1:net> set address=192.168.1.1/24
zonecfg:zone1:net> end
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> info
zonename: zone1
zonepath: /zones/zone1
brand: native
autoboot: false
bootargs:
pool:
limitprivs:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
inherit-pkg-dir:
dir: /opt/sfw
net:
address: 192.168.1.1/24
physical: bge0
zonecfg:zone1> exit
global#
69