Managing Solaris Containers Using Sun xVM Ops Center 2.0Shanthi Srinivasan, March 2009 This article describes how to manage Solaris Containers by using Sun xVM Ops Center 2.0. Introduction to Solaris ContainersSolaris Containers are an integral part of the Solaris 10 Operating System (OS). Solaris Containers isolate software applications and services using flexible software-defined boundaries. They enable you to create many private execution environments within a single instance of the Solaris 10 OS. Each environment has its own identity that is separate from the underlying hardware. Each environment behaves independently as if running on its own system, making consolidation simple, safe, and secure. You can build Solaris Containers by using the following technologies:
This article focuses on managing Solaris Zones by using Sun xVM Ops Center. Solaris ZonesA zone is a virtualized operating system environment created within a single instance of the Solaris OS. With the zones feature, the operating system is represented to the applications as virtual operating system environments that are isolated and secure. The applications run in different zones with complete isolation while the underlying operating system resources are centrally managed and administered. The Solaris Operating System supports two types of zones:
The global zone is the default operating system and has control over all the processes. A global zone always exists even when no other zones are configured. Non-global zones are configured inside the global zone. Non-global zones are isolated from the physical hardware characteristics of the machine by the virtual platform layer. Non-global zones include the following types of zones:
Apart from this, you also have the branded zones which contain non-native operating systems. Branded zones (BrandZ) provide the framework to create non-global zones that contain non-native operating environments that are used for running applications. Sun xVM Ops CenterSun xVM Ops Center is a highly-scalable data center management tool that enables you to discover, provision, patch, and monitor the assets of your data center from a single console. Using Sun xVM Ops Center, you can perform the following tasks:
For more information about Sun xVM Ops Center 2.0, see the Sun xVM Information Exchange site. You can use Sun xVM Ops Center to discover, manage, patch, and monitor the global and non-global zones in your data center. You can also provision an OS with zones on bare-metal systems. The following sections describe how to perform these functions in Sun xVM Ops Center. Note - Manually configure and install non-global zones by using For procedures that describe configuring and installing zones, see System Administration Guide: Solaris Containers-Resource Management and Solaris Zones. Discovering ZonesYou can discover a global zone and a non-global zone in the same way that you discover other gear in Sun xVM Ops Center. In Sun xVM Ops Center 2.0, the non-global zones are displayed under the related global zone in the gear tree. This gives you a clear representation of the zones and helps you to manage the zones efficiently. Note - Solaris 8 OS does not come with SSH packages installed by default. If the branded zone has Solaris 8 OS, you must install the SSH packages to discover the zone. To manage the Solaris 8 OS through Sun xVM Ops Center, either install the SSH packages or install the agent manually on the OS. Discovering Global and Non-Global ZonesWhen discovering zones, discover the global zone first and then the non-global zone. You can discover a global zone or a non-global zone in Sun xVM Ops Center by using the following methods:
Use the appropriate discovery method as per your requirement. When you discover an OS, Sun xVM Ops Center is notified whether it is a global zone during the discovery process. Discover the non-global zones after discovering the global zone. Non-global zones are automatically grouped under the global zone after discovery. Note - If you discover a non-global zone before discovering a global zone, the non-global zone appears as any other managed system in the gear tree. The underlying hardware for the non-global zone is also discovered and managed. The non-global zones are not discovered automatically when you discover a global zone. You must discover each non-global zone to manage them through Sun xVM Ops Center, even if you create them after the discovery of the global zones. Custom DiscoveryThis article describes how to do a custom discovery of the managed systems. You can refer to the other discovery procedures here. Custom Discovery enables you to discover gear by IP address, IP range, or subnet. The discovery process either uses the provided credentials or the factory default credentials to discover the specified addresses. A service tag discovery is also performed on those addresses. To Run a Custom Discovery Job
Managing ZonesAfter you discover zones, you need to manage the zones to utilize the other functions of Sun xVM Ops Center, for example, patching. The discovered gear is listed in the Available to be Managed Gear tab of the Gear section. Select the gear from the list and click Manage Gear. A job is initiated to install and configure the agent. You must manage the global zone first and then the non-global zone. When you manage the global zone, the agent is installed on the
global zone. The agent installs packages and patches in the Though the whole root zones and branded zones do not inherit directories from the global zone, you should always manage the global zone first. Unmanaging ZonesTo unmanage or remove a global zone from Sun xVM Ops Center, ensure that you have unmanaged the non-global zones that are grouped under it. Note - When you unmanage a global zone without unmanaging the non-global zones, the job fails and the global zone is not removed from Sun xVM Ops Center. Provisioning an OS With ZonesIn Sun xVM Ops Center 2.0, you can provision an OS with non-global zones on a new system. You can perform only bare-metal provisioning in Sun xVM Ops Center 2.0. Before You BeginDiscover the system that you want to provision, create the appropriate OS profiles, and import or download the required Solaris OS image. You can refer to Preparing to Provision an OS for the set of preparatory procedures before provisioning an OS. Complete the following preparations before you provision an OS with non-global zones:
To Provision an OS on a Bare-Metal System
Patching ZonesYou can patch the global zone and non-global zones by using Sun xVM Ops Center. However, you must first understand how patches are installed in Sun xVM Ops Center. The parameters in the patches and packages decide the installation in the global and non-global zone. Packages and Patches OverviewSolaris patches are collections of files and directories that replace or update existing files and directories that prevent correct execution of the software. In Sun xVM Ops Center 2.0, you can install packages and patches on a zone. The patches are a set of packages that need to be installed on the OS. The installation of the packages on the zones depend on the package parameters. The parameter values can be true or false. The values set for the following parameters and the combination of their values determine whether a package should be installed on the global zone or the non-global zone.
Configuring
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| SUNW_PKG_ALLZONES | SUNW_PKG_THISZONE | SUNW_PKG_HOLLOW | Impact | Impact With -G Option |
|---|---|---|---|---|
| False | False | False | The package is installed on the global zone and all non-global zones. | The package is installed only in the global zone. |
| True | False | False | The package is installed on the global zone and all non-global zones. | The -G option cannot override the SUNW_PKG_ALLZONES parameter, and the package is installed in all zones. |
| True | False | True | The package is installed on the global zone and the package information is made available on all non-global zones. | The -G option cannot override the SUNW_PKG_ALLZONES parameter, and the package is installed in all zones. |
| False | True | False | The package is installed only on the global zone. | The package is installed only on the global zone. |
Note - Take care when enabling the -G option on a host with sparse root
zones. Packages that are inherited from the global zone, and have the SUNW_ALL_ZONES
parameter value set to false cannot be patched within the zone.
As a zone administrator, you can install packages and patches on non-global zones.
Use the patchadd and pkgadd commands without any options.
Table 2 shows the result of the update job on a non-global zone.
| SUNW_PKG_ALLZONES | SUNW_PKG_THISZONE | SUNW_PKG_HOLLOW | Impact |
|---|---|---|---|
| False | False | False | The package is installed on the target non-global zone. |
| True | False | False | The package installation fails. |
| True | False | True | The package installation fails. |
| False | True | False | The package is installed only on the target non-global zone. |
If the SUNW_PKG_ALLZONES parameter is set to true in any of the packages, the patch installation fails. For a successful patch installation, ensure that none of the packages have the SUNW_PKG_ALLZONES parameter set to true.
Note - Ensure that you do not configure the -G option with the patchadd and
pkgadd commands while updating non-global zones.
Updating your operating system is performed by submitting a job. The necessary parameters of a job include an OS update profile, an OS update policy, and a target system.
The Update OS wizard appears.
An update job is submitted.
The update job starts. You can view the status of the job in the Jobs section.
Zone monitoring starts after discovery. Sun xVM Ops Center displays charts for zones on CPU, network, and memory resource usage. The chart displayed for a zone on a resource reflects the usage by all the zones sharing the resource in the zone's pool. Per zone utilization data is not available in this release. See Charts for more information about how to read a chart.
Sun xVM Ops Center 2.0 has improved Solaris Zones support. You can easily discover, identify and manage zones in the user interface. Patching the zones is also simplified in this release. You can manage zones efficiently using Sun xVM Ops Center.
Here are additional resources.
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License.
| |||