Previous Topic: LINUX OSIM OS ImagesNext Topic: Update OS Images using DSM Explorer


How to Create and Deploy OS Images using a Linux-Based Boot Image

As a system administrator, you can use a Linux-based boot image to deploy Linux operating systems and Hypervisors like VMware ESXi and Citrix Xen Server in an unattended mode.

The following diagram describes the steps for creating and deploying the OS images using Linux-based boot image:

How to Create and Deploy OS Images using a Linux-Based Boot Image

Using the new Linux-based boot image, you create and deploy OS images. See Supported Operating Systems for the list of Operating Systems supported.

Perform the following steps:

  1. Verify the Prerequisites
  2. Create and Register a Boot Image
  3. (Optional) Add Additional Drivers to the Boot Image
  4. (Optional) Update an Existing OS Image
  5. Create and Register an OS Image
  6. Deploy an OS Using the Linux-Based Boot Image
  7. Verify the OS Deployment

Verify the Prerequisites

CA ITCM provides a new Linux-based boot image that is based on CentOS 6.3 64-bit OS. Verify you have access to the media with a customized version of this Linux-based boot image.

Note: You can create, update, and register the boot and OS images using the corresponding Image Prepare System wizards in DSM Explorer or the CLI. You need administrator privileges on the IPS installed computers.

On the computers with pre-Windows Vista, such as Windows XP, Windows Server 2003, or lesser versions, the user must be a part of the Local Administrators Group.

On Windows Vista and above such as Windows 7, Windows Server 2008, and higher, where the user is not the built-in administrator, the user must be part of the local administrators group, and run the tools using Run as administrator in an elevated mode.

Create and Register a Boot Image

You can create a Boot image by using the corresponding wizards in DSM Explorer or the corresponding commands from the Command Line Interface (CLI).

For more information, see Create and Register a Boot Image using DSM Explorer and Create and Register a Boot Image using CLI

Create and Register a Boot Image using DSM Explorer

Follow these steps:

  1. Navigate to Software, Boot and OS Image Library, Image Prepare System, Wizards, New Boot Image.

    The wizard displays the introduction content. Click Next.

  2. Select the LINUXPEx64 option from the list of Image types. Click Next.
  3. Enter a name for the boot image in the Image Name field. Click Next.
  4. Browse and select the folder that contains the customized Centos 6.3 x64 boot files, which are provided on a DVD separate from the product DVD. Click Next.
  5. Review the summary of the details you have specified. Click Finish.

    The New Boot Image: The Command Execution page shows that the boot image is successfully created.

You can now register the boot image.

Follow these steps:

  1. Verify that the new boot image is available under Software, Boot and OS Image Library, Image Prepare System, Local Boot Images.
  2. Right click the boot image and click Register Boot Image in Connected Domain, Data and Software Package.

    Register Boot Image: The Command Execution page shows that the boot image is successfully registered.

  3. Verify that the boot image is available in the Boot Images folder of the Boot and OS Image Library.

You can proceed to create and register the OS image.

Create and Register a Boot Image using CLI

You can create and register a boot image using CLI.

Follow these steps:

Execute one of the following commands to create a boot image:

Follow these steps:

Use the following command to register the boot image:

RegisterBTImages {-s <manager>} [-i <imagenames>[-u <user> -p <password> -d <domain>]

(Optional) Add Additional Drivers to the Boot Image

Add drivers to the boot image when the Linux boot image does not contain the drivers that are required for the target hardware. A Linux-based machine is required for the same. CentOS 6.3x64 is the preferred OS.

Follow these steps:

  1. Navigate to the customized Linux boot image files available on a boot image DVD. Copy the initrd.img (RAMDISK image) and unpack it by using the following commands:
    # mkdir initrd
    
    # cd initrd
    
    # gzip -dc ../initrd.img | cpio -idv
    
  2. Copy .ko files to the appropriate directory under /lib/modules/2.6.../kernel/drivers/

    When additional drivers (for example: myscsidriver.ko) are added for SCSI disk, copy the myscsidriver.ko files to the appropriate /lib/modules/ 2.6.32-279.el6.x86_64/kernel/drivers/scsi directory of the initrd image.

    # cp myscsidriver.ko  /lib/modules/2.6.../kernel/drivers/scsi/
    
  3. Create a backup of the existing initrd.img.
    #mv  ../initrd.img  ../initrd.bak
    
  4. Create new initrd.img by repacking files and directories into the initrd.img it by using the following commands:
    # find.| cpio -H newc -o > ../initrd.cpio
    
    #gzip ../initrd.cpio
    
    #mv../initrd.cpio.gz ../initrd.img
    

Note: When you create initrd.img, use a separate directory to create initrd.cpio and initrd.img. If you use the same directory that contains all the unpacked files, cpio attempts to create initrd.cpio recursively (packing again and again), and may fail due to lack of sufficient space on the hard disk.

(Optional) Update Existing WinPE-based Linux OS Images

You can update the existing Linux OS images that use WinPE as the boot image to use the new Linux-based boot image for deployment. See the Compatibility Matrix available on support.ca.com for the list of Operating Systems supported.

Use the following methods for updating the OS images.

This updates the existing OS images with new scripts and utilities needed to work with the new Linux-based boot image and sets up the OS image to use this new boot image.

With the new boot image support, administrators do not have to copy syslinux manually in the OS Image.