Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019
 
 

Internal Zone Configuration

The system configuration data can exist as either a single profile, sc_profile.xml or as a directory, profiles, of SMF profiles. The single file or directory both describe the zones system configuration data that will be passed to the automated installer during zone installation. If no sc_profile.xml file or profiles directory is given during zone installation, the sysconfig interactive tool will query the administrator for the data the first time the console zlogin command is used.

To provide a profile or a directory of profiles to apply after installation from the repository, use –z ZBE with the zoneadm attach command. The specified existing zone boot environment is attached. If the specified zone boot environment is associated with a different global zone, the specified ZBE is cloned and a clone of the ZBE is attached. All profiles must have an .xml extension.

Oracle Solaris uses SMF to centralize the configuration information.

An Oracle Solaris instance is created and configured during installation. An Oracle Solaris instance is defined as a boot environment in either a global or a non-global zone. You can use the sysconfig utility to perform configuration tasks on an Oracle Solaris instance, or to unconfigure an Oracle Solaris instance and reconfigure the instance. The sysconfig command can be used to create an SMF profile.

After the installation or creation of an Oracle Solaris instance in a global or non-global zone, where system configuration is needed, system configuration will happen automatically. System configuration is not needed in the case of a zoneadm clone operation in which the –p option to preserve system identity is specified, or in the case of an attach operation in which the –c profile.xml sysconfig file option is not specified.

    You can do the following:

  • Use the sysconfig configure command to configure that Oracle Solaris instance and cause the SCI tool to start on the console.

    # sysconfig configure
  • Use the sysconfig configure command to configure an Oracle Solaris instance in the global or a non-global zone.

    # sysconfig configure -c sc_profile.xml

    If you specify an existing configuration profile with the command, a non-interactive configuration is performed. If you do not specify an existing configuration profile with the command, the System Configuration Interactive (SCI) Tool runs. The SCI Tool enables you to provide specific configuration information for that Oracle Solaris instance.

  • You can use the sysconfig create-profile command to create a new system configuration profile.

The sysconfig interface is described in System Configuration Interactive Tool and in the sysconfig(1M) man page.

System Configuration Interactive Tool

The System Configuration Interactive (SCI) Tool enables you to specify configuration parameters for a newly installed Oracle Solaris instance.

The sysconfig create-profile command queries the administrator and creates an SMF profile file in /system/volatile/scit_profile.xml. Parameters include system hostname, time zone, user and root accounts, name services.

To navigate in the tool:

  • Use the function keys listed at the bottom of each screen to move through the screens and to perform other operations. If your keyboard does not have function keys, or if the keys do not respond, press the Esc key. The legend at the bottom of the screen changes to show the Esc keys for navigation and other functions.

  • Use the up and down arrow keys to change the selection or to move between input fields.

For more information, see the sysconfig(1M) man page.