beautypg.com

Configuring a whole root zone: required actions – Sun Microsystems SOLARIS 10 User Manual

Page 77

background image

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 inherit-pkg-dir and are generated with
zonecfg create from the default file /etc/zone/SUNWdefault.xml. Subsequently, all
inherit-pkg-dir are removed with remove inherit-pkg-dir. We advise against
using zonecfg create -b because such a zone is created with the default from
/etc/zones/SUNWblank.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