This chapter contains the following information:
Acquiring the Solaris containers plug-in is a two-step process. First, you must add the package file that contains the Solaris containers plug-in JAR file to your system. Then you must import the Solaris containers plug-in JAR file.
The Solaris Plug-In is packaged as a plug-in to the Sun N1 Service Provisioning System software. Plug-ins are packaged in JavaTM Archive (JAR) files. The plug-in files for the Solaris Plug-In are available from the Sun N1 Service Provisioning System 5.2 Supplement CD or from the Sun Download Center.
Once the package file is added to your system, the Solaris Plug-In is available for import from two different JAR files. Choose the correct file depending on your situation.
If you are importing the Solaris Plug-In for the first time, acquire the com.sun.solaris_4.0.jar file.
If you have already imported the previous version of the Solaris Plug-In, acquire the com.sun.solaris_3.0_4.0.jar file.
Add the file containing the JAR file.
Import the JAR file –Importing the Solaris Plug-In to the Sun N1 Service Provisioning System
The Solaris plug-in is contained in the SUNWspssol package.
In a terminal window, become superuser.
Move to the directory containing the plug–in package.
Type the following command and press Return.
# pkgadd -d . SUNWspssol
The standalone JAR file is in the /opt/SUNWn1sps/plugins/com.sun.solaris/ directory. The upgrade JAR file is in the /opt/SUNWn1sps/plugins/com.sun.solaris/Upgrade directory.
The Solaris plug-in is contained in the SUNWspssol.rpm file.
In a terminal window, become superuser.
Move to the directory containing the SUNWspssol.rpm file.
Type the following command and press Return.
# rpm –i package_directory/SUNWspssol
The standalone JAR file is in the /opt/sun/N1_Service_Provisioning_System/plugins/com.sun.solaris/ directory. The upgrade JAR file is in the /opt/sun/N1_Service_Provisioning_System/plugins/com.sun.solaris/Upgrade directory.
The Solaris plug-in is contained in the SUNWspssol.msi file.
Move to the directory containing the SUNWspssol.msi file.
Double-click the SUNWspssol.msi file.
The Installer GUI starts. The JAR file is copied to the C:\Program Files\N1 Service Provisioning System\plugins\com.sun.solaris directory.
To make a given plug-in known to the Sun N1 Service Provisioning System, you need to import the plug-in to the Master Server. If you have already imported a previous version of the Solaris Plug-In, you will need to upgrade to the new plug-in.
To import or upgrade a plug-in, follow these steps as explained in detail in Chapter 5, Plug-In Administration, in Sun N1 Service Provisioning System 5.2 System Administration Guide.
The Solaris Plug-In 4.0 runs in the Sun N1 Service Provisioning System 5.2 environment. Do not install the Solaris Plug-In 4.0 on any other version of the Sun N1 Service Provisioning System.
In the Administrative section of the browser interface main window, click Plug-ins.
In the Action column of the Plug-ins page, click Import.
Navigate to the location of the JAR file.
If you are importing the Solaris Plug-In for the first time, select the com.sun.solaris_4.0.jar file.
If you have already imported a previous version of the Solaris Plug-In, select the com.sun.solaris_3.0_4.0.jar file.
Click the Continue to Import button.
When the import completes successfully, a plug-in details page appears and shows you the objects that the plug-in provides.
You can also import a plug-in archive file by using the command line.
To import a plug-in file from the CLI, type:
% cr_cli -cmd plg.p.add -path plugin-filename -u username -p password |
If you are importing the Solaris Plug-In for the first time, plugin-filename is com.sun.solaris_4.0.jar.
If you have already imported the previous version of the Solaris Plug-In, plugin-filename is com.sun.solaris_3.0_4.0.jar.
If you have created global and local zones by using the Solaris Plug-In in the Sun Sun N1 Service Provisioning System 5.0, after you migrate the Master Server to the Sun N1 Service Provisioning System 5.2 and you import the Solaris Plug-In 4.0, you must upgrade the zones. You can then control the upgraded zones with the Solaris Plug-In 4.0.
In the Common Tasks section of the browser interface main window, click the Solaris icon.
Click the Solaris Container: Create and Manage link.
In the Referenced Components list, click /com/sun/solaris/container_util.
In the Component Procedures list, click the Run action next to install:default.
On the Run Details page select the global zone target hosts to upgrade.
Click the Run Plan (includes preflight) button.
Use the following steps to upgrade a local zone that is running.
After migrating to the Sun N1 Service Provisioning System 5.2, upgrade the Remote Agents. For instructions see Upgrading Remote Agents and Local Distributors in Sun N1 Service Provisioning System 5.2 Installation Guide.
In the Common Tasks section of the browser interface main window, click the Solaris icon.
Click the Solaris Containers: Create and Manage link.
In the Component Procedures list, click the Run action next to markOnly: install.
Select the target global zone host in which the local zone that you want to upgrade is installed.
Select the local zone host name from the Plan Variables settings.
If desired local zone names are not present, you can add the zone names. To add the zone names, follow these steps:
Click Select From List in the plan variable settings table.
In the Variable Setting window, click Create Set.
Type the zone set name in the New Set Name field.
Click the box next to Zone Name prompt and type the zone name.
Zone names become network Zone Host Names during local zone creation. Zone Host Names should resolve to matching available local network IP addresses.
Click the Run Plan (includes preflight) button.
In the Common Tasks section of the browser interface main window, click the Solaris icon.
Click the Solaris Containers: Create and Manage link.
In the Component Procedures list, click the Run action next to activate.
On the Plan Details page, in the Current Installations list, select the local zones to activate.
Click the Run Selected Installations button.
Use the following steps to upgrade a local zone that has been deactivated.
In the Common Tasks section of the browser interface main window, click the Solaris icon.
Click the Solaris Containers: Create and Manage link.
In the Component Procedures list, click the Run action next to attach: install.
Select the target global zone host in which the local zone that you want to upgrade is installed.
Select the local zone host name from the Plan Variables settings.
If desired local zone names are not present, you can add the zone names. To add the zone names, follow these steps:
Click Select From List in the plan variable settings table.
In the Variable Setting window, click Create Set.
Type the zone set name in the New Set Name field.
Click the box next to Zone Name prompt and type the zone name.
Zone names become network Zone Host Names during local zone creation. Zone Host Names should resolve to matching available local network IP addresses.
Click the Run Plan (includes preflight) button.
The provisioning system upgrades the local zone from the 3.0 version to the 4.0 version.
If you want to activate the local zone, run the activate Component Procedure.
When you upgrade to a new version of a plug-in, the Common Tasks page for the plug-in is updated to provide links to components that are installed with the new plug-in version. This feature enables you to easily view components that contain the most current features and improvements. Components that rely on old functionality are not linked to from the Common Tasks page.
If you have trouble finding a component that you previously installed, the component was likely created from the previous version of the plug-in. Follow these steps to view or work with a previous version of the component:
Click the appropriate component procedure on the Common Steps Tasks page.
The Component Detail page appears.
On the Component Details page, click Version History.
A list of components and versions appears.
Click the appropriate link.
To perform a task with a component, click the version number or the details link that applies to the component that you want to use.
To view where a component is installed, click Where Installed.
Before you deploy Solaris zones from the Master Server, you must modify the Master Server config.properties file.
On the Master Server, using a text editor, access the config.properties file.
By default, the configuration file for the Master Server resides in the following directory: /opt/SUNWn1sps/N1_Service_Provisioning_System_5.2/server/config
Add the following lines to the config.properties file:
config.allowSessionIDOnHosts=masterserver pe.defaultPlanTimeout=6000
The config.allowSessionIDOnHosts variable enables the plug-in to communicate with the Master Server through the Sun N1 Service Provisioning System Remote Agent and Command Line Interface (CLI).
By default, the timeout value for plans is set to 1800 seconds or 30 minutes. In some instances, such as when executing a plan on older hardware, the amount of time that is needed for a plan to complete exceeds 30 minutes. To increase the plan timeout value, add the pe.defaultPlanTimeout line to the config.properties file. In the example that is shown, the value is set to 100 minutes.
After you modify the config.properties file, you must restart the Master Server.
Check the SunSolve site for available patches for the Solaris plug-in. To apply the patch, follow the instructions in the patch README file.