Tuesday, July 17, 2012

Associating a profile to an AI service

Beyond the default AI setup are custom AI installations. 
The next-to-first task may be to assign profiles to an installation service.
Profiles (system configuration profiles) avoids any interaction during the installation.
Profiles perform the same function as the sysidcfg files in Solaris 10.

So far, a 1:1 relationship between clients and profiles is what makes sense to me.

The following command will create a system configuration profile (XML file) at the indicated location, containing all the responses to the common installation prompts:

# sysconfig create-profile 
  -o /export/auto_install/files/ai_client-1.xml

Note that due to a bug on Solaris 11 GA (general availability) / FCS (first customer shipment), upon profile creation it's not possible to specify a user account already present on the system from which the command is run. To circumvent this bug, simply specify another user account and if desired manually adjust the XML file. Other manual adjustments may be possible, although error prone.

Connect the ai_client-1.xml profile to the solaris11-i386 installation service.
At the same time, select the (unique) intended client (client-1) by it's MAC address.

# installadm create-profile 
  -n solaris11-i386 
  -p ai_client-1 
  -f /export/auto_install/files/ai_client-1.xml
  -c mac=68:b5:99:c1:e6:58