Zone is a virtualized operating system environment that you can set up for systems that run the Solaris 10 Operating System (OS).
Every Solaris 10 OS contains a global zone, the default zone for the system. You can create local zones inside a global zone. You can monitor a zone by running an agent inside a local zone.
You can create a local zone either through zone commands or through the zone wizard of Solaris Container Manager.
When you create a local zone using Solaris Container Manager, ensure that you add the base directory of Sun Management Center to the inherit-pkg-dir directory. You can specify this in the “Provide Inherit Package” step of the wizard.
For more information, see “Managing Zones” in Installing and Administering Solaris Container Manager 1.1.
Create a local zone using zone commands.
Become superuser and open two terminal windows.
From the first terminal window, type the following lines to create a local zone.
zonecfg -z localzonename, where localzonename is the name of the local zone.
create
export
add inherit-pkg-dir
set dir=/opt, where /opt is the installation directory.
end
add net
set address=ipaddress
set physical=networkinterface
end
set zonepath=/export/zone/localzonename
verify
commit
exit
zoneadm -z localzonename install
From the second terminal window, type zlogin -C localzonename to log in to the local zone.
From the first terminal window, type zoneadm -z localzonename boot to boot the zone.
The boot messages are displayed in the second terminal window where you logged in to the zone.
Type the appropriate values for locale, terminal type, host name, naming service, and so on.
The zone will be rebooted.
This procedure assumes that the local zone does not inherit /opt/SUNWsymon and that the path of the local zone is /export/zone/localzonename.
Become superuser.
From the terminal window, log in to the local zone.
zlogin localzonename mkdir -p /opt/SUNWsymon
Do a loopback mounting of /opt/SUNWsymon.
mount -F lofs /opt/SUNWsymon /export/zone/localzonename/root/opt/SUNWsymon
Install and set up Sun Management Center in the global zone.
Create a local zone as described in To Create a Local Zone or use an existing local zone as described in To Use an Existing Local Zone.
From the global zone, set up an agent to run inside this local zone.
/opt/SUNWsymon/sbin/es-setup -z localzonename
From the global zone, log in to the local zone.
zlogin localzonename
From the local zone, complete the setup.
/opt/SUNWsymon/sbin/es-setup
You can start and stop the agent from within the local zone. You can use es-config to change the port number of the agent.
You can also start the Java Console inside a local zone. For more information on this, see “Starting the Console”.
The commands supported inside the local zone are es-start, es-stop, es-setup, es-config, and es-load-default.
The list of modules that will be available for the agent inside the local zone is available at /var/opt/SUNWsymon/cfg/zone-modules-d.dat. If you remove a module from this file, that module will not be available when the agent is restarted.
Advanced System Monitoring, Service Availability Manager, System Reliability Manager, and Performance Reporting Manager can be set up and run inside a local zone.