This section describes the following tasks:
OS profiles specify the following information:
OS distribution to install
Default language and time zone for the installed host
Flash archive file to use
Additional packages to install with the distribution
Configuration information for partitions
Custom installation scripts to run
After you have copied an OS distribution, the N1 System Manager automatically creates an OS profile of the same name on the management server. This OS profile is also called a default OS profile in documentation. See Default OS Profiles for parameter settings and best practices for customizing OS profiles.
To view details of a default OS profile, use the show command with the osprofile keyword.
To create a new OS profile, use the create command with the osprofile keyword and the os subcommand. OS profiles must specify a distribution group, partition configuration information, and a root password. To add required distribution groups to the OS profile, use the add command with the osprofile keyword and the distributiongroup subcommand. To add partitions to an OS profile, use the add command with the osprofile keyword and the partition subcommand. For example:
N1-ok> create osprofile osprofile os os |
N1-ok> add osprofile osprofile partition partition |
N1-ok> add osprofile osprofile distributiongroup distributiongroup |
To modify existing OS profile attributes, use the set command with the osprofile keyword and an appropriate subcommand.
For syntax and parameter details, type help create osprofile, help add osprofile or help set osprofile at the N1–ok command line.
See Example 3–5 and Example 3–6 for command-line examples.
When you copy an OS distribution, a default OS profile is automatically created for the OS distribution. The default profile is created for a typical Sun Fire V20z server, and it is mainly provided as an example. Settings for the default OS profiles are described in the following table.
Table 3–2 Default OS Profile Parameter Settings
If you want to use the default profile to provision servers other than V20z models, you need to modify the default profile. Instead, you could create a new OS profile or clone an existing OS profile and customize the parameter settings. Each server at your site with different hardware and provisioning requirements requires the creation of a customized OS profile.
The browser interface provides a wizard for creating new OS profiles to limit the complexity of this operation. See To Create an OS Profile for instructions.
The following is a list of best practices for modifying default OS profiles:
To increase the speed of OS configuration, modify OS profiles to use flash archives. See Example 3–8 for examples of how to modify a default profile and To Copy a Flash Archive to the Management Server for instructions.
To automatically configure the data network interface after OS profile installation, use the add osprofile command to add a script. See Step 4.
Modify the default OS profile for a server other than a V20z server, remember to remove the existing partitions and add new partition information that is appropriate for the server model. See To Modify the Default Solaris OS Profile for a Sun Fire V40z or a SPARC v440 Server for instructions.
This procedure describes how to list the available OS profiles by using the browser interface. The example that follows the procedure provides the command-line equivalent.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Click the System Dashboard tab.
The Shortcuts pane appears on the right side of the page.
Click the Edit List button beneath the OS Profiles list.
The list of available OS profiles appears.
The following example shows how to view all of the OS profiles in the system.
N1-ok> show osprofile all |
All available OS profiles appear in the output. See show osprofile in Sun N1 System Manager 1.1 Command Line Reference Manual for details.
This procedure describes how to use the browser interface's OS Profile wizard. The examples that follow the procedure provide command-line equivalents for creating and customizing OS profiles for the Solaris, Red Hat, and SUSE platforms.
You must copy an OS distribution before you can create an OS profile. See To Copy an OS Distribution From CDs or a DVD or To Copy an OS Distribution From ISO Files.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Click the System Dashboard tab.
The Shortcuts pane appears on the right side of the page.
Click the New button beneath the OS Profiles list.
The Create New Operating System Profile wizard appears.
Use the wizard steps to guide you through the screens.
Click the Help tab in the left pane of the wizard for detailed information about the entry fields.
To complete the creation of the OS profile, click the Finish button in the wizard.
The wizard window closes.
Click the Edit List button in the OS Profile Shortcuts.
A dialog box appears.
Select the check box for the OS profile and click the OK button.
The drag-and-drop icon appears in the OS profiles Shortcuts list.
The following example illustrates the commands that are used to create an OS profile for a Solaris OS distribution. The first command creates a Solaris 10 profile that is named S10profile and sets the root password to admin.
N1-ok> create osprofile S10profile rootpassword admin description "S10 for host123" os solaris10 |
The following example command shows how to configure a swap partition with a size of 2048 Mbytes:
N1-ok> add osprofile s10profile partition / size 2048 device c1t1d0s1 type swap |
The following example command shows how to configure a free ufs partition:
N1-ok> add osprofile s10profile partition / sizeoption free device c1t1ds0 type ufs |
The following example command shows how to add the default Solaris distribution group:
N1-ok> add osprofile s10profile distributiongroup "Entire Distribution plus OEM support" |
OS profiles that install only the Core System Support distribution group cannot be monitored by using the OS monitoring feature.
The following example illustrates the commands that are used to create an OS profile for a Red Hat distribution.
N1-ok> create osprofile RH30profile rootpassword admin os RedHat30 |
The following example command shows how to configure a root partition.
N1-ok> add osprofile RH30profile partition / device sda type ext3 sizeoption free |
The following example command shows how to configure a swap partition.
N1-ok> add osprofile RH30profile partition swap device sda type swap size 2048 sizeoption fixed |
The following example command shows how to specify the distribution group.
N1-ok> add osprofile RH30profile distributiongroup "Everything" |
The following example illustrates the commands that are used to create an OS profile for a SUSE distribution.
N1-ok> create osprofile default os suse rootpassword admin |
The following example command shows how to configure a root partition.
N1-ok> add osprofile default partition / device /dev/sda type reiser sizeoption free |
The following example command shows how to configure a swap partition.
N1-ok> add osprofile default partition swap device /dev/sda type swap size 2048 sizeoption fixed |
The following example command shows how to specify the distribution group.
N1-ok> add osprofile default distributiongroup "Default Installation" |
To Modify the Default Solaris OS Profile for a Sun Fire V40z or a SPARC v440 Server
To Modify a Solaris 9 OS Profile for a Sun Fire V20z Server With a K2.0 Motherboard
To find out how to load the OS profile, see To Load an OS Profile on a Server or a Server Group.
The following procedure describes how to clone or copy an existing OS profile. You might want to clone an existing OS profile if you need to modify it, but cannot do so because it is deployed. A deployed OS profile is a profile that is currently being installed on a provisionable server.
Move any file systems off the /mnt mount point.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Type the following command:
N1-ok> create osprofile osprofile clone oldprofile |
The new OS profile is created. See create osprofile in Sun N1 System Manager 1.1 Command Line Reference Manual
Type the following command:
N1-ok> show osprofile osprofile |
The new OS profile appears in the output.
To find out how to load the OS profile, see To Load an OS Profile on a Server or a Server Group.
This procedure describes how to modify the scripts, partitions, updates, and distribution groups that are configured for an OS profile.
An OS profile that is currently being deployed cannot be modified.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Modify an OS profile by performing one of the following actions:
Add new OS profile attributes.
N1-ok> add osprofile osprofile [configuration-attributes] |
See add osprofile in Sun N1 System Manager 1.1 Command Line Reference Manual for details.
Remove existing OS profile attributes.
N1-ok> remove osprofile osprofile [configuration-attributes] |
See remove osprofile in Sun N1 System Manager 1.1 Command Line Reference Manual for details.
Change existing OS profile parameters.
N1-ok> set osprofile osprofile [configuration-attributes] |
See set osprofile in Sun N1 System Manager 1.1 Command Line Reference Manual for details.
View the new OS profile details.
N1-ok> show osprofile osprofile |
The modified OS profile information appears in the output.
This example shows how to use a flash archive and a post-installation script by modifying the solaris_ver10 OS profile.
For this example, assume that you have created and made available to the management server's /etc/sysconfig/network-scripts directory, the following script to configure the provisionable server's bge1 data network interface. This sample script will configure the bge1 port at system boot time by using the data network DHCP server.
DEVICE=bge1 BOOTPROTO=dhcp ONBOOT=yes |
This example also assumes that you have created a flash archive file called archive1.flar and that you have completed the steps in To Copy a Flash Archive to the Management Server.
The following example shows how to add the script to the OS profile.
N1-ok> add osprofile solaris_ver10 script /etc/sysconfig/network-scripts/ifcfg-bge1 type post |
The following example shows how to setup the OS profile to use the flash archive.
N1-ok> set osprofile solaris_ver10 flar /jumpstart/Flash/archive1.flar |
To find out how to load the modified OS profile, see To Load an OS Profile on a Server or a Server Group.
An OS profile cannot be deleted if it is deployed. A profile is deployed if it is currently being installed on a provisionable server.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Type the following command:
N1-ok> delete osprofile osprofile |
The OS profile is deleted from the management server.
Type the following command:
N1-ok> show osprofile all |
The deleted OS profile should not appear in the output.