Computer Hardware User Manual

Version 3.1-en Solaris 10 Container Guide - 3.1 5. Cookbooks Effective: 30/11/2009
5.1.5. Configuring a whole root zone: required Actions
[dd] Whole root zones do not contain i nheri t-pkg -dir and are generated with
zone c fg creat e from the default file /e t c/zon e/SUN Wdefa u lt.x m l. Subsequently, all
inhe r it-pk g-dir are removed with r emove in herit -pkg- d ir. We advise against
using zone cfg cre ate - b because such a zone is created with the default from
/etc / zones /SUNW b lank . xml which does not necessarily need to correspond to a whole root
zone. The following information is required to configure a whole root zone:
Determination of zone name
Determination of the root directory of the zone
Assignment of an interface
Assignment of an IP address
Following configuration, the zone must be installed and initialized prior to first use (see 5.1.6 Zone
installation).
global# zonecfg -z whole
whole: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:whole> create
zonecfg:whole> set zonepath=/zones/whole
zonecfg:whole> remove inherit-pkg-dir dir=/sbin
zonecfg:whole> remove inherit-pkg-dir dir=/usr
zonecfg:whole> remove inherit-pkg-dir dir=/platform
zonecfg:whole> remove inherit-pkg-dir dir=/lib
zonecfg:whole> add net
zonecfg:whole:net> set physical=bge0
zonecfg:whole:net> set address=192.168.1.1/24
zonecfg:whole:net> end
zonecfg:whole> verify
zonecfg:whole> commit
zonecfg:whole> info
zonename: whole
zonepath: /zones/whole
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
net:
address: 192.168.1.1/24
physical: bge0
zonecfg:whole> exit
global#
70