Skip Headers
Oracle® Enterprise Manager Administrator's Guide for Software and Server Provisioning and Patching
10g Release 5 (10.2.0.5.0)

Part Number E14500-04
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

9 Provisioning Linux Operating System

This chapter explains how you can provision Linux on bare metal servers and virtual servers using the bare metal application. In particular, this chapter covers the following. In particular, this chapter contains the following sections:

Getting Started

This section helps you get started with this chapter by providing an overview of the steps involved in provisioning Linux operating system. Consider this section to be a documentation map to understand the sequence of actions you must perform to successfully provision Linux operating system. Click the reference links provided against the steps to reach the relevant sections that provide more information.

Table 9-1 Getting Started with Provisioning Linux Operating System

Step Description Reference Links
Step 1

Knowing About The Supported Releases

Know what releases of Linux are supported by the Deployment Procedure.

To learn about the releases supported for Linux Provisioning, see Supported Releases.

Step 2

Selecting the Use Case

This chapter covers a few use cases for provisioning Linux. Select the use case that best matches your requirement.

Step 3

Meeting the Prerequisites

Before you perform Linux provisioning, you must meet the prerequisites, such as setting up of the provisioning environment, applying mandatory patches, setting up of Oracle Software Library.

  • To learn about the prerequisites to be met for provisioning bare metal boxes, see Prerequisites.

  • To learn about the prerequisites to be met for provisioning Oracle VM Servers, see Prerequisites.

  • To learn about the prerequisites to be met for provisioning Single Server Images, see Prerequisites.

Step 4

Provisioning

Provisioning Linux on bare metal boxes, Oracle VM Servers, or performing single image provisioning.


Supported Releases

Enterprise Manager Grid Control supports bare metal provisioning of 32-bit and 64-bit variants of the following operating systems:

Provisioning Bare Metal Boxes

Provisioning only Linux Operating system on target servers involves creation of a Default Image and then deploying the image. The following sections explain how to provision Linux on bare metal boxes:

Prerequisites

Creating a Default Image

A Default Image is a special type of image that installs operating system based on a reference Linux installation. It then deploys an Oracle Management Agent on the bare metal box so that it can subsequently be managed as an Enterprise Manager target. A default image can be created for a particular IP prefix or MAC address and provisioned on bare metal boxes as they are added to a given subnet.

The Default Image setup consists of following steps:

  1. Go to the Images tab and click Create Image. The following page is displayed:

    This figure displays the Create Image: Describe Page.

    In the Describe step, choose appropriate type of Default Image depending on the Operating System that needs to be provisioned on the bare metal servers. Enter a name for the image and other information that you may want to associate with it. Click Next.

  2. The Configuration step comes up as shown below.

    This figure displays the Create Image: Configure Page.

The Configure step depends on the type of the type of Image selected in the earlier step and is different for different types of Images. On this page, specify the following details:

Reference Installation is the reference host or gold host used for creating OS components for this image. For information about reference host, see Overview of the Bare Metal Provisioning Environment.

RPM repository allows you to choose an RPM repository from a list of RPM repositories configured for use with the provisioning application.

Additional RPM allows you to add RPMs for installation on the servers to be provisioned.

Exclude RPM allows you to specify the RPMs to be excluded from the image.

Time Zone and UTC Clock are used for setting the time zone of the bare-metal boxes after provisioning the operating system on them. Select the time zone corresponding to the OMS time zone.

Root Password is the root password that needs to be set for the newly provisioned Linux box.

User List is the list of operating system users you want to configure for the newly provisioned Linux box. You can create users with sudo permission.

Clicking Next brings up the Customize and Set Directives steps. For Default Image case, the out-of-the-box directives are automatically associated during creation.

Final step is the Review step where all the entries made in the earlier steps can be reviewed. Clicking Finish on the review page kicks off a job to create the necessary components and directives required for the Default Image.

Image Creation Confirmation

Clicking on the job link will show the various steps executed by the job.

Once the job is finished a new Image can be seen in the Images table on the Images tab. This Image is created with version 0.1 is in Ready state for use. Any subsequent changes to the Image will lead to an increment of 0.1 in revision.

As a check, go to the components tab to check the components that have been created automatically created for the Default Image under the node "Oracle Components". The components created for the Default Image are non-editable as shown below:

This figure displays the Components tab.

Note:

If you want to remove an existing image from the Software Library, do the following:
  1. Make sure the Image is not set as a default image in the Deployments->Administration->Default Images section. If it is, remove the entry from the table.

  2. Remove the assignments (if any) for the image from the Deployment->Provisioning->Assignments table.

  3. Remove the image from the Software Library by removing it from Deployment->Provisioning->Images table.

  4. Remove the components associated with this image from the Software Library by removing it from the Deployments->Provisioning->Components->Oracle Components section.

Setting Up a Default Image

  1. Go to the Administration tab and click Add in the Default Images section on the Administration tab as shown below.

    Default Images Section
  2. The Add Default Image page appears.

    This figure displays Add Default Image Page.

    Enter the following values on this page:

    • IP Address Prefix or MAC Address:

      • IP Address Prefix is used to specify the IP prefix of subnet where the bare-metal machines would be added.

      • MAC Address is used to specify the MAC addresses of the bare metal machines to be added.

    • Choose a desired Boot Server and Stage Server from the list of servers configured with the provisioning application.

    • Specify the Image name to be used as the Default Image, select Use Preferred Credentials for the Stage server.

      Specify the number of network cards for the target machine in the Number of NICs field.

    • Click Edit Advanced Properties.

    Edit Advanced Properties Page

    You can provide the following properties:

    • In the Agent Settings section, specify the agent user, group, and Oracle home for the install, and the location of the agent RPM. If the agent RPM location is not specified, the RPMs will be picked up from the stage location. You can also specify the location where you want the Oracle Central Inventory to be created.

    • In the Security Settings section, you can add a script in the Security Parameters field. You can enable or disable SELinux.

    • In the Kernel Settings section, you can add a script in the Kernel Parameters field.

    • In the Disk Partition Settings section, you can specify the disk partition for new Linux machines. These entries are picked up from the reference anaconda installation file available at /root/anaconda-ks.cfg on the reference host. You can modify these entries to suit the disk partition requirements of the target machines being provisioned.

    • In the Boot Configuration Settings section, specify the name of the network interface card such as eth0 or its MAC address or options like bootif and link.

    • In the Mount Point Settings section, you can specify entries for the /etc/fstab file. You can specify mount points on the newly provisioned Linux machine. By default, mount point settings from the reference Linux machine are inherited.

    • In the NTP Settings section, you can specify entries for the /etc/ntp.conf file. You can specify NTP settings for the newly provisioned Linux machine. By default, NTP settings from the reference Linux machine are inherited.

    • In the NIS Settings section, specify entries for the /etc/yp.conf file. You can specify NIS settings for the newly provisioned Linux machine. By default, NIS settings from the reference Linux machine are inherited.

    • In the Post section, specify any set of commands that need to be executed on the newly provisioned machine. These commands will be appended to the post section of the kickstart file.

    Note:

    If setting up of the default image fails, delete the image, delete the component, and retry.

    Running this job may take a few minutes.

Staging the Default Image

Once the Image is created, click Stage in the Default Images section and select the Image created earlier.

Default image section.

This prepares the default image ready for installation on the staging server. You will be asked to enter the OMS registration password before staging starts.

An Enterprise Manager job is submitted to do the staging of default image. The on-going status can be seen using the Enterprise Manager job console.

Note:

If staging of the image fails, correct the pre-requisite failures mentioned in the failed job and retry the staging operation. Click Edit in the Default Images section and re-submit the staging job by clicking Finish.

You can also clean up the image from the Default Images table and try again.

Running this job may take a few minutes.

Ready to Go

Once the image is in the Staged status, you are ready to go. Plug in the bare metal boxes in the network and the provisioning application will automatically provision them to have the default image and management agent on it.

Note:

Once Linux is provisioned on the bare metal box, out-of-box Deployment Procedures can be used to provision Database and other Oracle products on the server.

Provisioning Oracle VM Servers

Enterprise Manager supports bare metal provisioning of Oracle VM servers.

Prerequisites

Provisioning Procedure

To provision a virtual server, do the following:

  1. In the Images tab, click Create Image.

  2. In the Create Image: Describe page, select Type as OVS Default Image, and specify a name and other details for the image. Click Next.

    Create Image: Describe Page
  3. In the Create Image: Configure page, select the RPM repository.

    Select the Time Zone and specify the root password for the operating system and the OVM agent password. The OVM agent password is used when registering the Virtual Server with the Server Pool.

    In the User List section, you can add users for the operating system during the provisioning process.

    Note:

    Unlike bare metal provisioning of Linux boxes, when you provision virtual servers, you do not require a reference installation.
    Create Image: Configure Page
  4. In the Create Image: Set Directives page, the directives required for OVS provisioning are selected by default. You can customize the provisioning operation by adding directives.

  5. In the Create Image: Review page, review all the information you have provided and submit the job for creating the image.

  6. After the image is created, in the Administration tab, go to the Default Images section.

  7. In the Default Images section, click Add.

  8. In the Add Default Image page, specify the target type as a MAC address or IP Address Prefix.

    Specify the Boot Server, Staging Storage, and Number of NICs.

  9. Select the OVS Image you created earlier.

  10. Click Edit Advanced Properties.

  11. In the Edit Advanced Properties page, specify advanced properties for the operating system.

    Edit Advanced Properties Page

    In the Security Settings section, specify the following values:

    • Request tty - Select this option to set the "Defaults require tty" property in the /etc/sudoers file.

    • SELinux - Choose to disable or enable SELinux.

    • Firewall Settings - Specify firewall settings for the virtual server target.

    • Dom0 Memory (MB) - Specify memory size for the virtual server.

    In the Disk Partition Settings section, specify the disk partition configuration to be applied to the target machines.

    In the Boot Configuration Settings section, specify the network device name.

    In the Package section, you can specify the packages to be installed during the provisioning operation.

    In the Xend Configuration section, you can specify entries for the /etc/xen/xend-config.sxp file.

    In the Post section, specify any set of commands that need to be executed on the newly provisioned machine. These commands will be appended to the post section of the kickstart file. You can specify Kernel, NFS, NTP, and other configurations in the Post section.

    Note:

    Unlike bare metal provisioning of Linux boxes, when you provision virtual servers, you will not configure the agent, since the virtual server will not explicitly contain an agent to monitor it.
  12. Click OK.

  13. Once the Image is created, click Stage in the Default Images section and select the Image created earlier.

  14. Plugin the baremetal box in the subnet where the OVS image has been staged.

After the virtual server is provisioned, you can register it with a server pool. See Chapter 10, "Provisioning Virtualization Systems" for more information.

Provisioning Single Server Images

A Single server image contains an operating system and other applications. During provisioning, the operating system and other applications are installed on the machines being provisioned.

For provisioning single server images, follow these steps:

Table 9-2 Getting Started with Provisioning Single Server Images

Step Description Reference Links

Step 1

Creating A Network Component

Create a network component to provide network details for the machines you are provisioning.

To learn about creating a network component, see Creating a Network Component.

Step 2

Creating A Disk Layout Component

Create a disk layout component to provide profiles for hard disk, physical disk partition, RAID configuration, logical volumes, and logical volume groups for the machines you are provisioning.

To learn about creating a disk layout component, see Creating Disk Layout Component.

Step 3

Creating An OS Component

Create an OS component to provide operating system details for the machines you are provisioning.

To learn about creating a disk layout component, see Creating OS Component.

Step 4

Creating A Single Server Image

Create a Single Server Image and add the disk layout and OS components created earlier.

To learn about creating a single server image, see Creating Single Server Image.

Step 5

Creating An Assignment

Create an Assignment by associating the single-server image with the network component and any hardware component.

To learn about creating an assignment, see Creating Assignments.

Step 6

Provisioning The Assignment

Provision the assignment containing single server images.

To learn about provisioning the assignment, see Provisioning Assignments.


Prerequisites

Creating a Network Component

The network component created in this section will provide the network details for the machines you provision using this component.

To create a network profile, do the following:

  1. In the Networks tab, click Create Network.

    Networks tab
  2. In the Create Network: Describe page, specify the name, description, and product details for the network component. Click Next.

    Create Network: Describe Page.
  3. In the Create Network: Configure page, add the network configuration. Select:

    • Static if you want to specify the IP addresses

    • Dynamic if you want the DHCP server to assign a network address

    • Network Configuration if you want to assign network addresses from a network pool. Ensure that the network pool is configured.

    Create Network: Configure Page
  4. Specify network information for bonding or non bonding interface. Click Next.

  5. In the Create Network: Set Directives page, choose the out-of-box network directives for the network component for single server component creation. The directive will be available at Oracle Directives/Baremetal Provisioning/Single Server/Linux/Network Layout. Click Next.

  6. Review the information you have provided and click Finish.

The network component is created.

Creating Disk Layout Component

Follow these steps to create a disk layout component:

  1. In the Components tab, click Create Component.

  2. In the Create Component: Describe page, select Type as Linux Disk Layout, and specify the name and other product details. Click Next.

    Create Component: Describe Page
  3. In the Create Component: Configure page, add the profiles for hard disk, physical disk partition, RAID configuration, logical volumes, and logical volume groups. Click Next.

  4. In the Create Component: Set Directives page, choose the out-of-box disk layout directives for the disk layout component for single server component creation. The directive will be available at Oracle Directives/Baremetal Provisioning/Single Server/Linux/Disk Layout. Click Next.

  5. Review the information you have provided and clickFinish.

The disk layout component is created.

Creating OS Component

Follow these steps to create an OS component:

  1. In the Components tab, click Create Component.

  2. In the Create Component: Describe page, select Type as Linux Operating System, (RedHat Linux, Oracle Enterprise Linux, or SuSE Linux), and specify the name and other product details. Click Next.

  3. In the Create Component: Configure page, select the target host for the reference installation for the operating system, select the RPM repository, add or delete RPMs, specify the root password for the operating system and the list of operating system users you want to configure when the machine is provisioned. Click Next.

  4. In the Create Component: Set Directives page, choose the out-of-box operating system directives for the operating system component for single server component creation. The directive will be available at Oracle Directives/Baremetal Provisioning/Single Server/Linux/OS Staging. Click Next.

  5. Review the information you have provided and clickFinish.

The operating system component is created.

Creating Single Server Image

Follow these steps to create a single server image:

  1. In the Images tab, click Create Images.

    This figure shows the Images tab.
  2. In the Create Image: Describe page, select Type as Single-Server and specify the name and other product details. Click Next.

    This figure displays the Create Image: Describe page.
  3. In the Create Image: Customize page, add properties if you want to customize the image. Click Next.

  4. In the Create Image: Set Directives page, choose the out-of-box single server directives. The directives are available at Oracle Directives/Baremetal Provisioning/Single Server/Linux/Image Staging. Click Next.

  5. In the Create Image: Add Components page, add the disk layout component and OS component created earlier. Click Next.

  6. Review the information you have provided and click Finish.

The single server image is created.

Creating Assignments

Follow these steps to create an assignment:

  1. In the Assignments tab, click Create New Assignment.

    This figure displays the Assignments tab.
  2. In the Create New Assignment: Select Type page, select Create Image Assignment. Click Next.

  3. In the Create New Assignment: Select Image/Suite page, select the single server image you created earlier. Click Next.

  4. In the Create New Assignment: Configure page, specify the name, boot server, staging storage, and staging server credentials. Select the network profile created earlier to assign network properties during provisioning.

    Specify Advanced Properties for the assignment. Select the hardware servers (Enterprise Manager host targets) you want to provision. Click Next.

  5. Review the information you have provided and click Finish.

Provisioning Assignments

After creating the assignment, follow these steps to provision assignments:

  1. In the Assignments tab, select the assignment and click Provision.

  2. In the Provision Assignments page, specify a schedule, provide the agent password, and select the assignment. Click Provision.

The hardware specified will be provisioned after the reboot with the specified image assignment.