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

Creating and Registering the Subnet

The OS provisioning server provides DHCP service. The DHCP service has to listen on all the subnets that will be used to provision the targets. In the N1 SPS interface, you need to identify the subnets to be used for provisioning targets so that the OS provisioning server can respond to DHCP requests. The OS provisioning service will create the interfaces with the required addresses on the provisioning server (if not already created) during the provisioning operation.

ProcedureHow to Identify the Subnet for the OS Provisioning Server (Browser Interface)

To manage the subnet from the browser interface, follow these steps.

Steps
  1. In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.

  2. On the OS Provisioning Common Tasks page, click Manage in the OSP Subnets section.

  3. On the Component Details page, click the Run action in the Create row.

  4. Choose variables to use for this plan.

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

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

      1. Click Create Set.

      2. Type a name for the variables set.

      3. Change variables as needed.

        Variable 

        Description 

        Example 

        installPath

        Subnet address 

        10.42.42.0

        mask

        Subnet mask 

        255.255.255.0

        gateway

        Gateway for the subnet 

        10.42.42.1

        host_interface

        Interfaces on the OS provisioning server to be used for this subnet 

        hme0

        host_address

        Host address that is assigned to the host_interface

        10.42.42.1


        Note –

        The OS provisioning software creates the interfaces and assigns the addresses during provisioning operation, if those values are not set already.


      4. Save the variables set.

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

  5. Select the virtual host to which this subnet applies.


    Tip –

    The virtual host for the OS provisioning server ends in -osp.


  6. Click Run Plan (includes preflight).

ProcedureHow to Identify the Subnet for the OS Provisioning Server (Command-Line Interface)

To manage the subnet from the command line, follow these steps:

Steps
  1. Create the variables set.

    Type a command similar to the following example:


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/Subnet -name "subnet1" \
    -u admin -p admin -vars "installPath=10.42.42.0;mask=255.255.255.0;gateway=10.42.42.1; \
    host_interface=ce8000;host_address=10.42.42.1"
    

    For more information about the variables, see Step 4 in How to Identify the Subnet for the OS Provisioning Server (Browser Interface).

  2. Run the plan to create the subnet using the variables set created in the previous step.

    Type a command similar to the following example:


    # cr_cli -cmd pe.p.run -u admin -p admin -PID NM:/com/sun/n1osp/untyped/Subnet-create  \
    -tar H:NM:masterserver-osp -comp + -vs subnet1 -pto 30 -nto 10
    

ProcedureHow to Add a New Provisioning Subnet

You can use several subnets to provision operating systems. The following steps explain how to add a new subnet to the OS provisioning server.

Before You Begin

Verify that the OS provisioning server, the boot and install server for the applicable operating system, and the target host are in the same IP network.

Steps
  1. Create a new subnet component as described in How to Identify the Subnet for the OS Provisioning Server (Browser Interface).

    For IP connectivity, you have two options:

    • Create new IP addresses for the OS provisioning server .

    • Use existing IP addresses, but create a route for DHCP packets to reach from the target to the OS provisioning server.

  2. Create new interfaces on the boot and install servers for the new subnet or define routes so that the boot and install server can be reached by the target.

  3. Verify that the file system shares are updated to deliver the OS media in this new subnet.

  4. Verify that the targets are in this subnet.

  5. Edit the profile you want to provision for IP addresses to be in the new subnet.