template.: solaris zone.

設定ファイルの作成
z1.cfg

create -F

set autoboot=true
set zonepath=/zones/z1

add net
set physical=nge0
set address=192.168.1.10
set defrouter=192.168.1.1
end

add inherit-pkg-dir
set dir=/share
end

info
verify
exit
設定ファイルの登録
# zonecfg -z z1 -f z1.cfg
zonename: z1
zonepath: /zones/z1
brand: native
autoboot: false
bootargs: 
pool: 
limitpriv: 
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: /share
net:
	address: 1
	physical: nge0
	defrouter: 192.168.1.1
#
インストール
# zoneadm -z z1 install
Preparing to install zone .
Creating list of files to copy from the global zone.
Copying <8067> files to the zone.
...
#

# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP    
   0 global           running    /                              native   shared
   - z1               installed  /zones/z1                      native   shared
#
ブート
# zoneadm -z z1 boot

... 現況確認
# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP   
   ... 
   1 z1               running    /zones/z1                      native   shared

   ...

# prstat -Z
...
ログイン
# zlogin z1
[ゾーン 'yvb00' pts/3 に接続されました]
Sun Microsystems Inc.	SunOS 5.10	Generic	January 2005
#
...現況確認
# ifconfig
#