Installing Sun xVM Ops Center Agents by Using OS Provisioning

To Automatically Install a Sun xVM Ops Center Agent Through OS Provisioning

The Provisioning module in Sun xVM Ops Center allows you to install Sun xVM Ops Center agents when you provision OS instances on systems. The Provisioning module enables you to manage OS Images and OS Profiles, to initiate OS provisioning jobs, and to view OS provisioning jobs. You can request Sun xVM Ops Center agent installation as part of the OS provisioning tasks that you define in an OS Profile.

These procedures describe two methods to establish an OS Profile that includes a request to install a Sun xVM Ops Center agent. These procedures assume that an OS image has been loaded onto the Sun xVM Ops Center server, and is listed in the OS Images list.

The Provision OS wizard that you use to initiate OS provisioning provides a check box that causes newly provisioned operating systems to be registered with Sun xVM Ops Center. Selecting this check box when you initiate OS provisioning jobs causes a Sun xVM Ops Center agent to be installed.

Creating a New OS Profile

To create a new OS profile that includes automated Sun xVM Ops Center agent installation, perform the following steps:

  1. Launch a web browser.
  2. Connect to the following URL, and replace server with the IP address or host name of the Sun xVM Ops Center server:
    https://server:9443/scportal
    
  3. Accept any certificates presented. The Sun xVM Ops Center login page displays.
  4. In the appropriate fields, enter the name and password of the root user, or equivalent role, on the Sun xVM Ops Center server. The Dashboard page displays.
  5. From the Provisioning pull-down menu, select Operating System. In the Provisioning page, either the View OS Images or View OS Profiles list displays.
  6. From the OS Profiles pull-down menu, select Create OS Profile. The Introduction panel of the Create OS Profile wizard displays.
  7. Click Next to display the Define Profile panel. In this panel, enter the following information:

    Profile Name
    Enter the name that you want to assign to this OS profile.
    Description
    Enter a brief description of the OS profile.
    OS Image
    Select an OS image from the pull-down list provided.

  8. Click Next to display the Specify Distribution panel.
  9. Select the distribution type that you want to install using this OS profile, and click Add to place it in the Selected column.
  10. Click Next to display the Specify Parameters panel. In this panel, enter the following information:

    Language
    Select the language that you want this OS Profile to install.
    Time Zone
    Select the time zone that you want this OS Profile to establish on systems that it provisions.
    Root Password
    Enter the root password that this OS profile will establish on systems it provisions.
    Options
    Options check boxes allow you to indicate if you want to specify NIS settings, LDAP settings, or add scripts. Select the Add Scripts check box. The Add Scripts check box enables the Add Scripts panel. The Add Scripts panel allows you to add the scripts that install Sun xVM Ops Center agents.

  11. Click Next to display the Add Scripts panel.
  12. Use the Add Scripts panel to add the following three scripts to the OS Profile:

    /opt/SUNWscnosp/data/allstart/scripts/init_agent_firstboot.sh
    /opt/SUNWscnosp/data/allstart/scripts/osp_status_firstboot.sh
    /opt/sun/n1gc/bin/jsPostinstall.sh

    The Add Scripts panel provides the following tools to add scripts to the OS Profile:

    Script File
    Use the Browse button to navigate to the directory where a script resides, and select the script. Click the Select File button to select the script.
    Type
    For these scripts, select Post from the pull-down list.

    Click Add to add the selected script to the list of scripts that the OS Profile will install.

  13. Click Next to display the Define Partitions panel. Use this panel to define the partitions that you want to establish on systems that are provisioned using this OS Profile.
  14. Click Next to display the Summary panel, and click Save OS Profile to complete the Create OS Profile Wizard.

Modifying an Existing OS Profile

To modify an existing OS profile so that it includes automated Sun xVM Ops Center agent installation, perform the following steps:

  1. From the OS Profiles pull-down menu, select View OS Profiles. The View OS Profiles list displays.
  2. In the list of OS Profiles, double-click on the name of the OS Profile that you want to modify.
  3. Click Edit to launch the Edit OS Profile Wizard. The Introduction panel displays.
  4. Click Next in the Introduction, Define Profile, and Specify Distribution panels, to display the Specify Parameters panel.
  5. In the Specify Parameters panel, select the Add Scripts check box, and click Next. The Add Scripts panel displays.
  6. Use the Add Scripts panel to add the following three scripts to the OS Profile:

    /opt/SUNWscnosp/data/allstart/scripts/init_agent_firstboot.sh
    /opt/SUNWscnosp/data/allstart/scripts/osp_status_firstboot.sh
    /opt/sun/n1gc/bin/jsPostinstall.sh

    The Add Scripts panel provides the following tools to add scripts to the OS Profile:

    Script File
    Use the Browse button to navigate to the directory where a script resides, and select the script. Click the Select File button to select the script.
    Type
    For these scripts, select Post from the pull-down list.

    Click Add to add the selected script to the list of scripts that the OS Profile will install.

  7. Click Next in the Add Scripts and Define Partitions panels to display the Summary panel. Click Save OS Profile to complete the Create OS Profile Wizard.

Initiating OS Provisioning

In the Provisioning Module, the Provision OS item from the Provision pull-down menu launches the Provision OS wizard. This wizard guides you through the steps required to initiate OS provisioning.

The Advanced Options panel in the Provision OS wizard presents a check box labeled Register with OpsCenter. Select this check box to register the OS instances provisioned by the jobs that this wizard creates.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact