You can use the provisioning software to generate a custom Windows provisioning profile for your deployments. The OS Provisioning Plug-In can generate all the necessary variables and plans to provision the Windows OS to your target hosts.
If you want to manually create a Windows provisioning profile, see How to Configure the Setup Information for the Windows Image.
This procedure describes how to use the OS Provisioning browser interface to generate a custom Windows provisioning profile.
Make sure the Windows image server exists and that the Windows OS software is available to that server. For more information about creating the Windows image server, see Setting Up the Windows Server.
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 Windows 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 WindowsImage component row of the Plan Parameters table.
To create a new variables set, click Select from List in the WindowsImage component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Verify variables and change them, if needed.
If you need more information than is provided in the prompts in the component variables table, see the detailed list of components, along with default values and examples, in Windows Provisioning Profile Variables.
For custom-based profiles, you must not specify a value for the sif_file variable.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the WindowsImage component row of the Plan Parameters table.
On the Plan Details Run page, select the Windows image server on which to attach the image.
The host name of the Windows image server ends in -windows.
If needed, change the Profile Name.
If needed, change the Profile Description.
Verify that the checkbox for the Create the Custom Profile option is selected.
Click Run Plan (includes preflight).
To verify that the Windows image is attached to the Windows image server, click Components in the left pane of the N1 SPS browser interface.
You should see a component of type com.sun.n1osp#Provision that has a description similar to Windows provisioning profile.
Edit the variables for the custom-based Windows provisioning profile.
You need to edit the component variables for the custom Windows profile to enter values for the following items.
OS Provisioning control service
Product key
User name
Organization name
Time zone
Terminal server properties
Language and locale for the target host
In the Common Tasks section of the provisioning software page, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Provision OS in the Windows Images section.
On the Components page, click the profile you previously created in the Components column.
On the Components Details page, click Edit.
On the Component Details Edit page, click the check box next to the variable that you want to edit, then type the value for the variable in the Value for This Component column.
Edit the values for the following variables.
Specifies whether to call the OSP Control Service, which automates power off, reboot, and power on functions. For Windows provisioning, set the value of this variable to true.
Specifies the full name of the user for the target host.
Specifies the name of the organization of which the target host is a member.
Specifies the product key for the OS distribution.
Specifies the time zone for the target host.
Specifies the language or locale to install on the target host.
Specifies the language group to install on the target host.
Specifies that the profile should install a terminal server on the target host.
Specifies whether the target host should allow remote connections.
Specifies how the terminal services manages Client Access Licenses.
Enables administrators to choose the security mode for terminal server users.
Click Check In.
To install the Windows OS on your target host, you must modify the BIOS boot settings, then run the provisioning plan. For more information, see Installing the Windows OS on the Target Host.
To create a variable set for the WindowsImage component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/WindowsImage \ -name "windows2003custom" -u admin -p admin -vars \ "osp_server=masterserver-osp;os_name="WIN2003_trial"version=2003; \ installPath="2003customprofile"; \ description=test windows image 2003;min_disk_size=10GB; \ boot_server_name=biwl;boot_server_subnet_address=10.42.42.0; \ boot_server_subnet_ip_address=10.42.42.4;\ boot_srv_active_directory_domain=n1.west.example.com;\ windows_product_directory=D:\\\\RemoteInstall\\\\Setup\\\\English \\\\Images\\\\Win2003_trial" |
The windows_product_directory should be included all on one line. For display purposes, this entry appears on two separate lines.
For more information about the variables, see Windows Provisioning Profile Variables.
Create a file named /tmp/windows-profile with the following entries.
custom Windows 2003 EE x86 Profile true |
The entries in this file correspond to the following plan variables.
custom specifies the Profile Name.
Windows 2003 EE x86 Profile specifies the Profile Description.
true specifies that this plan will generate a custom profile.
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/WindowsImage-create-profile \ -tar H:NM:risserver-windows -comp - -vs windows2003custom -pto 30 -nto 10 \ -f /tmp/windows-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.