If you prefer to manually create the SuSe Linux images and profiles, you can create the SuSe Linux image and profile without using JET modules. This section describes how to create non-JET SuSe Linux images and profiles.
If you prefer to use JET to generate your images and profiles, see Creating SuSe Linux Images and Profiles With JET.
To deploy non-JET SuSe Linux images to your target hosts, you need to manually create a PXE configuration file. This file contains parameters specific to each hardware platform and SuSe Linux distribution.
In a text editor, create a file with the following text.
default sles serial 0 9600 label sles kernel linux append console=ttyS0,9600 load_ramdisk=1 initrd=initrd textmode=1
Where:
The first line (default) indicates to use label sles and do a AutoYaST installation
The third line (label) defines a label sles.
The fourth line (kernel) identifies the kernel to load. The path is relative to pxelinux.0.
The fifth line (append) contains a series of network configuration parameters. The append parameters must be all on one line. The specific parameters shown here are as follows:
console=ttyS0,9600 specify console parameters to show the installation output on the console. The parameters vary depending on the target hardware platform.
load_ramdisk indicates to use initrd for the RAM disk. The path for the RAM disk is relative to pxelinux.0
Save this file to the pxelinux.cfg subdirectory of the TFTP root directory on the boot and install server.
If you want to support provisioning of multiple releases of the SuSe Linux OS, assign a unique name to this file, such as sles9.cfg
Make sure the Linux image server exists and that the SuSe Linux operating system software is available to that server. For more information about creating the SuSe Linux image server, see Setting up the RedHat Linux Server.
Create a PXE Linux configuration file, and locate this file in the pxelinux.cfg directory on the boot and install server. For an example of the PXE Linux configuration file, see How to Create a PXE Configuration File for SuSe Linux OS Provisioning.
In the Common Tasks section of the provisioning software page, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create Profile in the SuSe Linux Images section.
On the Plans Details page, click Run.
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.
Click Create Set.
Type a name for the variables set.
Verify variables and change them, if needed.
The following table describes the additional variables and their default values.
Variable Name |
Description |
Default Value/Example |
---|---|---|
osp_server |
Virtual server representing the OS provisioning service |
masterserver-osp (Default) |
version |
Version of Linux to be deployed by this component |
SLES9 (Example) |
architecture |
Architecture of the physical system, for example, x86 Note – This value is used to name the profile component and OS image. The value of this variable is not validated or enforced by the provisioning software. |
x86 (Default) |
installPath |
SuSe Linux image name to attach |
SuSeLinux:[version]_:[architecture] For example: SuSeLinux_SLES9_x86 |
description |
Optional description for this profile |
test linux (Example) |
min_disk_size |
Minimum disk space required to provision the SuSe Linux OS |
10GB (Default) |
boot_server_name |
Name of SuSe Linux boot and install server |
masterserver (Example) |
boot_server_subnet_address |
Subnet served by the boot and install server |
10.10.31.0 (Example) |
boot_server_subnet_ip_address |
IP address of the boot and install server on the subnet |
10.10.31.1 (Example) |
image_subnet_mask |
Netmask of the provisioning subnet |
255.255.255.0 (Default) |
distro_root_directory |
Absolute path of the base directory of the SuSe Linux distribution on the boot server |
nfs://10.10.31.4/Suse/SLES-9-x86-64/installroot (Example) |
kernel (JET profiles only) |
Relative path to the kernel in the OS image Do not specify a value for this variable for non-JET profiles. |
N/A |
initrd (JET profiles only) |
Relative path to initrd in the OS image Do not specify a value for this variable for non-JET profiles. |
N/A |
autoyast_file (Non-JET profiles only) |
Absolute path of the AutoYaST file on the boot server Do not specify a value for this variable for JET-generated profiles. |
nfs://10.10.31.4/export/v20z/sles9.xml (Example) |
pxe_boot_file (Non-JET profiles only) |
Relative path from the /tftpboot directory of the pxelinux.0 boot file on the boot server Do not specify a value for this variable for JET-generated profiles. |
v20z/suse/pxelinux.0 (Example) |
pxe_configuration_file (Non-JET profiles only) |
Relative path from the pxelinux.cfg directory of the PXE Linux configuration file on boot server Do not specify a value for this variable for JET-generated profiles. |
as21-console (Example) |
SuSelinux_component_folder |
Location of autogenerated SuSe Linux Provision component folder |
/com/sun/n1osp/autogen-:[target(..):sys.hostName]-linux (Default) |
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the LinuxImage component row of the Plan Parameters table.
On the Plan Details Run page, select the Linux image server on which to create the profile.
The host name of the Linux image server ends in -linux.
If needed, change the Profile Name.
If needed, change the Profile Description.
Deselect the checkbox for Use the Jet Modules Specified Above.
Click Run Plan (includes preflight).
To verify that the Linux profile is created to the Linux image server, click Components in the left pane of the N1 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-SuSeLinuxSLES9_x86-linux/provision/.
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/SuSeLinuxImage \ -name "SLES9x86" -u admin -p admin -vars "osp_server=masterserver-osp;version=SLES9; \ architecture=x86;installPath=SuSeLinux:[version]_:[architecture]; \ description=SUSE SLES9;min_disk_size=10GB; \ boot_server_name=bilinux;boot_server_subnet_address=10.42.42.0; \ boot_server_subnet_ip_address=10.42.42.3; \ autoyast_file=nfs://10.10.31.4/export/v20z/sles9.xml;\ pxe_boot_file=pxelinux.0;pxe_configuration_file=pxesles9" |
To provide JET module information, create a file /tmp/suse-profile that contains the following entries:
standard-nojet Standard Linux base_config false
Where:
The first line in the file corresponds to the Profile Name field in the plan variables section of the browser interface.
The second line in the file corresponds to the Profile Description field in the plan variables section of the browser interface.
The third line in the file corresponds to the JET Module Name field in the plan variables section of the browser interface.
The fourth line in the file corresponds to the Use the Jet Modules Specified Above checkbox in the plan variables section of the browser interface.
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/SuseLinuxImage-create-profile \ -tar H:NM:bilinux-linux -comp - -vs SLES9x86 -pto 30 -nto 10 -f /tmp/suse-profile |
Note the default N1 SPS user value you specified with the -u option. This user must exist after the OS installation for the N1 SPS Remote Agent software to start on the target host.