======================================================
Configure the Zones:
======================================================

# zonecfg -z app-zone1
app-zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:app-zone1> create
zonecfg:app-zone1> set zonepath=/export/app-zone1
zonecfg:app-zone1> set autoboot=true
zonecfg:app-zone1> set pool=pool_app_zone1
zonecfg:app-zone1> add net
zonecfg:app-zone1:net> set physical=e1000g1
zonecfg:app-zone1:net> set address=ecapps-1
zonecfg:app-zone1:net> end
zonecfg:app-zone1> add fs
zonecfg:app-zone1:fs> set dir=/export/VMs
zonecfg:app-zone1:fs> set special=/export/VMs
zonecfg:app-zone1:fs> set type=lofs
zonecfg:app-zone1:fs> end
zonecfg:app-zone1> add fs
zonecfg:app-zone1:fs> set dir=/export/appservers
zonecfg:app-zone1:fs> set special=/export/appservers
zonecfg:app-zone1:fs> set type=lofs
zonecfg:app-zone1:fs> end
zonecfg:app-zone1> add attr
zonecfg:app-zone1:attr> set name=comment
zonecfg:app-zone1:attr> set type=string
zonecfg:app-zone1:attr> set value="J2EE App Server Zone 1"
zonecfg:app-zone1:attr> end
zonecfg:app-zone1> verify
zonecfg:app-zone1> commit
zonecfg:app-zone1> exit

2. Install and boot the zone

# zoneadm -z app-zone1 install
Preparing to install zone <app-zone1>.
Creating list of files to copy from the global zone.
....

3. Log into the new zone and configure network services
# zlogin -C app-zone1

4. Configure/install/setup zones for app-zone2 through app-zone6 replacing
   references to app-zone1 with the new zone name and use network
   interface e1000g2 for app-zone2, e1000g3 for app-zone3, e1000g1 for
   app-zone4, e1000g2 for app-zone5, and e1000g3 for app-zone6. In this
   configuration, 2 zones share a single physical network interface,
   but use a unique IP addresses.

5. Configure/install/setup zone for the database.

# zonecfg -z db-zone
db-zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:db-zone> create
zonecfg:db-zone> set zonepath=/export/db-zone
zonecfg:db-zone> set autoboot=true
zonecfg:db-zone> set pool=pool_default
zonecfg:db-zone> add net
zonecfg:db-zone:net> set physical=e1000g0
zonecfg:db-zone:net> set address=db-zone
zonecfg:db-zone:net> end
zonecfg:db-zone> add net
zonecfg:db-zone:net> set physical=e1000g1
zonecfg:db-zone:net> set address=ecdata
zonecfg:db-zone:net> end
zonecfg:db-zone> add attr
zonecfg:db-zone:attr> set name=comment
zonecfg:db-zone:attr> set type=string
zonecfg:db-zone:attr> set value="Database zone"
zonecfg:db-zone:attr> end
zonecfg:db-zone> add fs
zonecfg:db-zone:fs> set dir=/specdb
zonecfg:db-zone:fs> set special=/specdb
zonecfg:db-zone:fs> set type=lofs
zonecfg:db-zone:fs> end
zonecfg:db-zone> add fs
zonecfg:db-zone:fs> set dir=/export/VMs
zonecfg:db-zone:fs> set special=/export/VMs
zonecfg:db-zone:fs> set type=lofs
zonecfg:db-zone:fs> end
zonecfg:db-zone> add fs
zonecfg:db-zone:fs> set dir=/export/appservers
zonecfg:db-zone:fs> set special=/export/appservers
zonecfg:db-zone:fs> set type=lofs
zonecfg:db-zone:fs> end
zonecfg:db-zone> add device
zonecfg:db-zone:device> set match=/dev/rdsk/c4t0d0s0
zonecfg:db-zone:device> end
zonecfg:db-zone> verify
zonecfg:db-zone> commit
zonecfg:db-zone> exit

# zoneadm -z db-zone install
Preparing to install zone <db-zone>.
Creating list of files to copy from the global zone
...

# zoneadm -z db-zone ready
# zoneadm -z db-zone boot

6. Log into the new zone and configure network services
# zlogin -C db-zone

