N1 Provisioning Server 3.1, Blades Edition, System Administration Guide

ProcedureTo Create an Image

Steps
  1. Type /opt/terrasprin/sbin/imagewizard to access the image wizard's main dialog.

  2. In the image wizard's main dialog, type 1 to create an image.

    Make your selections from the following dialog depending on whether you want to create an image from one of the following:

    Image Format 

    Source 

    Architecture 

    Disk 

    Existing disk image 

    Solaris SPARC 

    Flash 

    Existing disk image 

    Solaris SPARC 

    Disk 

    Existing disk image 

    Solaris x86 

    Flash 

    Existing disk image 

    Solaris x86 

    Disk 

    Existing flash image 

    Solaris SPARC 

    Flash 

    Existing flash image 

    Solaris SPARC 

    Disk 

    Existing flash image 

    Solaris x86 

    Flash 

    Existing flash image 

    Solaris x86 

    Disk 

    JumpStart installation 

    Solaris SPARC 

    Flash 

    JumpStart installation 

    Solaris SPARC 

    Disk 

    JumpStart installation 

    Solaris x86 

    Flash 

    JumpStart installation 

    Solaris x86 

    Disk 

    Manual installation 

    Solaris SPARC 

    Flash 

    Manual installation 

    Solaris SPARC 

    Disk 

    Manual installation 

    Solaris x86 

    Flash 

    Manual installation 

    Solaris x86 

    Disk 

    Existing disk image 

    Linux x86 

    Disk 

    Manual installation 

    Linux x86 

    The following dialogs show example selections for creating images from an existing image.

  3. Select the operating environment.


    Following are the operating systems supported:
    
    1) Solaris
    2) Linux
    3) Return to previous option
    
    
    Please enter your selection [1-3] > 1
  4. Select the architecture.


    Following architectures are supported:
    
    1) sun4ublade
    2) i86pc
    3) Return to previous option
    
    Please enter your selection [1-3] > 1
  5. Indicate the source for the image.


    You can start creating a new image from:
    
    1) Existing image in the repository
    2) JumpStart installation server
    3) Manual OS installation
    4) Return to previous option
    
    Enter your selection [1-4] > 1
  6. Select the image type.


    Please select among the following images
    
    --------------------------------------------------------------------------
    Sel#    Image Name                   Image Id    Image Description
    --------------------------------------------------------------------------
    
    1) solaris9u5-sun4ublade-flash        : 7 : solaris9 update 5 flash image 
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  7. Type 1 to select the device attributes menu for the image.


    Please provide the following information for the new image
    
    1) Device Selection Attributes for the New Image
    2) Image Attributes Of the New Image
    3) Continue to create the New Image
    4) Return to previous option
    
    Enter your selection [1-4] > 1
  8. Type 1 to select the server type.


    Please enter the following device selection information
    
    1) Server Type: 
    2) Disk Type: 
    3) Disk Controller Type: 
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 1
  9. Indicate the server type.


    Please select the server type
    1) sunfireb100x-96-blade
    2) sunfireb100s-95-blade
    3) Return to previous option
    
    Please enter your selection [1-3] > 2
  10. Type 2 to select the disk type.


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: 
    3) Disk Controller Type: 
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 2
  11. Indicate the disk type.


    Please select the disk type
    1) local
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  12. Type 3 to select the disk controller.


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: local
    3) Disk Controller Type: 
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 3
  13. Indicate the disk controller.


    Please select the disk controller type
    
    1) ide
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  14. Type 4 to select the disk size.


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: local
    3) Disk Controller Type: ide
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 4
  15. Indicate the disk size.


    Please select the disk size
    
    1) 30000000000
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  16. Type 5 to return to the main image information menu shown in step 5.


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: local
    3) Disk Controller Type: ide
    4) Disk Size: 30000000000 Bytes
    5) Return to previous option
    
    Please enter your selection [1-5] > 5
  17. Type 2 to select the image attributes menu.


    Please provide the following information for the new image
    
    1) Device Selection Attributes for the New Image
    2) Image Attributes Of the New Image
    3) Continue to create the New Image
    4) Return to previous option
    
    Enter your selection [1-4] > 2
  18. Indicate the image name.


    Please enter the following image attribute information
    
    1) Image name: 
    2) Image description: 
    3) Image archive type: 
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    Please enter your selection [1-6] > 1
    
    Please enter the image name > s9u5-customized-test
  19. Type 2 to select and specify the image description.


    Please enter the following image attribute information
    
    1) Image name: s9u5-customized-test
    2) Image description: 
    3) Image archive type: 
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    
    Please enter your selection [1-6] > 2
    Please enter the image description > created from s9u5 preconfigured image with customizations
  20. Type 3 to select the archive type.


    Please enter the following image attribute information
    
    
    1) Image name: s9u5-customized-test
    2) Image description: created from s9u5 preconfigured image with customizations
    3) Image archive type: 
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    Please enter your selection [1-6] > 3
  21. Indicate the archive type.


    Following image archive types are supported:
    
    1) disk_image
    2) flash
    3) Return to previous option
    
    
    Please enter your selection [1-3] > 2
  22. Type 6 to return to the main image information menu shown in step 5.


    Note –

    Selection 4 from the following menu is not available for modification because the image wizard enables creation of global images only.



    Please enter the following image attribute information
    
    1) Image name: s9u5-customized-test
    2) Image description: created from s9u5 preconfigured image with customizations
    3) Image archive type: flash
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    Please enter your selection [1-6] > 6
  23. Type 3 to continue the image creation.


    Please provide the following information for the new image
    
    1) Device Selection Attributes for the New Image
    2) Image Attributes Of the New Image
    3) Continue to create the New Image
    4) Return to previous option
    
    Enter your selection [1-4] > 3
    Following is the information you have entered
    
    Create from existing image: solaris9u5-sun4ublade-flash
    Operating system: solaris
    Architecture: sun4ublade
    Image name: s9u5-customized-test
    Image description: created from s9u5 preconfigured image with customizations
    Image archive type: flash
    Image type: Global Image
    Image size: Not specified
    Server Type: sunfireb100s-95-blade
    Disk Type: local
    Disk Controller Type: ide
    Disk Size: 30000000000 Bytes
  24. Type y to continue with the image creation procedure.


    Enter y to continue and n to return to previous option > y
  25. Verify that you have enough space on the image server for the new image, then type y.


    Please ensure that you have enough space on the image server
    to hold the new image that will be created.
    The path on image server where the image will be created is:
            /images/master-images
    
    Enter y to continue and n to return to previous option > y
  26. If you want to use NFS shares from the N1 Provisioning Server, type y. If you do not want to use NFS shares from the N1 Provisioning Server, type n.


    Specify whether you want to use NFS
    shares from N1 Provisioning Server [default n] > n
    
    Preparing farm for image creation/validation.
    This will take some time, please wait till the operation completes.
    Do not interrupt the operation.
    Please run farm -Lt <farm id> for more information.

Example 3–1 Image Creation Output

The following output example also contains instructions on how to prepare the image for release to the resource pool server. See Creating A Solaris Image from a Preconfigured Image, Creating a Solaris Image Manually from JumpStart, Creating the JumpStart Setup, and Customizing the JumpStart Boot and Configuration Server.

If, after starting the image -r command, a replaceFailedDevice request is queued. You must delete this request for the image creation process to complete successfully. Run the request -l command to get the request ID, then use the request -d request_ID command to do delete the request.


Creating farm 'ImageTool1076361866520-751' ...
Request (id: 335) submitted.
Waiting for request 335 to complete...
.
Farm ImageTool1076361866520-751 is created. Farm id = 108
Activating farm 108 ...
Request (id: 336) submitted.
Waiting for farm request 336 to complete or
farm to reach state 50 ...
...........................................................
Farm 108 is ready for image creation/update.
Please proceed to PES 50101, disk 2 and install/update the software.

After you are finished with the image, please execute the following to release the image:
    image -r [-S image_size] [-T image_archive_type] -f 108 -i <new-image-name>


Completed preparing farm for image creation/validation
Farm ID is: 108

The following resource pool server has been
selected for creating an image.
Resource Pool Server Device ID: 50101

Following is the information on how you can gain console
access to this machine.

In an another window, telnet to the specified system controller (SC)
based on the IP address provided below.

Login into the SC using the username and password of the SC and type

console <id>

The <id> is the id printed below,
(for e.g., sc> console s5)
 
 Console Information
 ====================
 IP address of Terminal-Server(Service Controller): 10.5.136.20
 Port(Blade) ID: s1



Issue the following commands on the sytem controller to boot the
resource pool server from the disk

sc> bootmode bootscript="boot disk" s<x>.
(where "s<x>" is provided in resource pool server information)

then you can issue the following command to reset

sc> reset -y s<x> 

Please enter y when the resource pool server has booted from disk > y


You can customize your installation at this point in time.

Please logon to the resource pool server and customize.

Please enter y when your customization is completed > y


Please shutdown the resource pool server by issuing the command

For Solaris:
# /usr/sbin/shutdown -y -g0 -i0
For Linux:
# /sbin/shutdown -h now

Once the resource pool server shuts down, for sparc blades set the
OBP of resource pool server to boot using dhcp by issuing the following
command in the OBP prompt (no changes are required for i86pc blades) 

ok> setenv boot-device net:dhcp

Please enter y when the resource pool server has completed the shutdown
and when you have configured the resource pool server to boot using dhcp > y

Creating image.

This will take some time, please wait till the operation completes.
Do not interrupt the operation.
Please run farm -Lt <farm-id> for more information.

Disabling monitoring on PES 50101
Powering off PES 50101 for a move to it's original VLAN
Setting PES State to OFF
Moving PES 50101 to its original VLAN
Powering on PES 50101 in it's original VLAN
Setting PES State to ON
Activating farm 108 ...
Request (id: 397) submitted.
Waiting for request 397 to complete...
..
Taking snapshot of target 0 for host server for farm 108 to create final image ...
Request (id: 400) submitted.
Waiting for request 400 to complete...
.....................................................................................
Snapshot was successful.
Deactivating the farm 108
Request (id: 456) submitted.
Waiting for request 456 to complete...
.............................................................................
Farm 108 is deactivated.
Image s9u5-customized-test is ready for use.

Image creation completed.


Updating image attributes.


Updated image: 14


Image update completed.

WARNING: The farm created for image creation has to be deleted manually. 
        Use the farm -D <farm-id> command to delete the farm.
        Please wait for the farm to be deactivated before you issue
        this command.