ContainerType

Defines the type of container inside which an application runs. For applications running inside the zone, this attribute is to have a value of "Zone".

Default is "NULL."

ContainerName resource attribute

An associated resource attribute is ContainerName, whose value you can set as the name of the non-global zone. When this attribute is set, the agent runs the entry points for the resource.

About entry point implementation for non-global zones

To write an agent to manage resources inside a local (non-global) zone, include the ContainerType and ContainerName attributes in the type definition for that agent. The description for these attribute is given above.

When the ContainerName attribute for a resource is set to a local zone's name, the resource is brought online, taken offline, and monitored inside the local zone.

When the agent's entry points are implemented in C++, the entry points run in the global zone because the agent runs in the global zone. Hence, the entry points need to be aware that they run in the global zone even though they might need to monitor a resource in the local zone. When the agent's entry points are implemented in scripts, the scripts are forked off inside the local zone for each resource of the type configured to run inside a local zone.

About installing agents that use zones

When setting up the Solaris pkginfo file for the installation of agents that are to run in zones, set the following variable: SUNW_PKG_ALLZONES=true.