N1 Grid Service Provisioning System User's Guide and Release Notes for the OS Provisioning Plug-In 1.0

Creating Linux Images and Profiles

ProcedureHow to Create a Linux Provisioning Profile (Browser Interface)

Before You Begin

Make sure the Linux image server exists and that the Linux operating system software is available to that server. For more information about creating the Linux image server, see Setting up the Linux Server.

Steps
  1. In the Common Tasks section of the provisioning software page, select OS Provisioning.

  2. On the OS Provisioning Common Tasks page, click Create Profile in the Linux Images section.

  3. On the Plans Details page, click Run.

  4. Choose variables to use for this plan.

    • To use an existing variables set, select a name from the drop-down menu in the LinuxImage component row of the Plan Parameters table.

    • To create a new variables set, click Select from List in the LinuxImage component row of the Plan Parameters table.

      1. Click Create Set.

      2. Type a name for the variables set.

      3. Verify variables and change them, if needed.

      4. Save the variables set.

      5. Select the variables set that you just saved from the drop-down menu in the LinuxImage component row of the Plan Parameters table.

  5. On the Plan Details Run page, select the Linux image server on which to create the profile.


    Tip –

    The host name of the Linux image server ends in -linux.


  6. Click Run Plan (includes preflight).

  7. To verify that the Linux profile is created to the Linux image server, click Components in the left pane of the N1 Grid SPS browser interface.

    You should find a provision component in the folder /com/sun/n1osp/autogen-server-name-linux/provision/, where server-name is the Linux server name that you provided in the variable set. For example: /com/sun/n1osp/autogen-LinuxRedHat3.0_x86-linux/provision/.

ProcedureHow to Create a Linux Provisioning Profile (Command-Line Interface)

Steps
  1. To create a variable set for the LinuxImage component, type a command similar to the following example:


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/LinuxImage \
    -name "redhat3" -u admin -p admin -vars "osp_server=masterserver-osp;version=RedHat3.0; \
    architecture=x86;installPath=Linux:[version]_:[architecture]; \
    description=testlinux;min_disk_size=10GB;monitor_install=FALSE; \
    boot_server_name=bikickstart;boot_server_subnet_address=10.42.42.0; \
    boot_server_subnet_ip_address=10.42.42.3;kickstart_file=/export/el30.cfg;\
    pxe_boot_file=linux-install/pxelinux.0;pxe_configuration_file=el30-console"
    
  2. To run the plan, type a command similar to the following example:


    # cr_cli -cmd pe.p.run -u admin -p admin \
    -PID NM:/com/sun/n1osp/untyped/LinuxImage-create-profile \
    -tar H:NM:bikickstart-linux -comp + -vs redhat3 -pto 30 -nto 10