Solaris zone configuration

Configure the zone you want, this is just a basic configuration (suited to a name server - that inherits the global zones /var/named)

# zonecfg -z solzone
solzone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:solzone> create
zonecfg:solzone> set zonepath=/u01/zones/solzone
zonecfg:solzone> set autoboot=true
zonecfg:solzone> add net
zonecfg:solzone:net> set address=10.10.10.20/24
zonecfg:solzone:net> set physical=bge0
zonecfg:solzone:net> end
zonecfg:solzone> add fs
zonecfg:solzone:fs> set type=lofs
zonecfg:solzone:fs> set special=/u01/zonedata/solzone
zonecfg:solzone:fs> set dir=/u01
zonecfg:solzone:fs> end
zonecfg:solzone> add inherit-pkg-dir
zonecfg:solzone:inherit-pkg-dir> set dir=/var/named
zonecfg:solzone:inherit-pkg-dir> end
zonecfg:solzone> add attr
zonecfg:solzone:attr> set name=comment
zonecfg:solzone:attr> set type=string
zonecfg:solzone:attr> set value="test solaris zone"
zonecfg:solzone:attr> end
zonecfg:solzone> verify
zonecfg:solzone> commit
zonecfg:solzone> exit

And now install and boot the zone

# zoneadm -z solzone install
# zoneadm -z solzone boot