Use different templates to get a specific brand, to get an empty configuration, or to create a zone configuration that looks like another zone that has already been configured.
Use the zonecfg template property to define whether, and how, properties are changed in the following cases:
When new resource instances are added to a configuration.
During configuration cloning, when some properties must have unique values. Use tokens in the template property to provide these unique values.
|
|
zonecfg:nz> info zonepath zonepath.template: /system/zones/%{zonename} zonepath: /system/zones/nz zonecfg:nz> set zonename=new-zone zonecfg:new-zone> info zonepath zonepath.template: /system/zones/%{zonename} zonepath: /system/zones/new-zone zonecfg:new-zone>Example 2 Token Used for the storage Property in the solaris-kz device Resource
device 0: match not specified storage.template: dev:/dev/zvol/dsk/%{global-rootzpool}/VARSHARE/zones/%{zonename}/disk%{id} storage: dev:/dev/zvol/dsk/rpool/VARSHARE/zones/kernel-zone1/disk0 id: 0 bootpri: 0
You can configure a minimal kernel zone by using the SYSsolaris-kz-minimal template. The SYSsolaris-kz minimal template configures a zone with 1 virtual CPU and 2 GB of memory.
The zones remote administration daemon (RAD) module configuration provides a systemic way to express, enforce, or implement changes by using the property templates. See the zonemgr(3RAD) man page. If the rad-zonemgr package was not initially installed on your system and you installed it later using pkg install, you must restart rad:local. Also restart rad:remote, if that was running. To restart, use svcadm(1M). Make sure the RAD daemon loaded the module.