Sun Management Center 3.6 Installation and Configuration Guide

ProcedureTo Create a Local Zone

You can create a local zone either through zone commands or through the zone wizard of Solaris Container Manager.

If you create a local zone using Solaris Container Manager, ensure that you add the base directory of Sun Management Center to the inherit-pkg-dir directory. You can specify this in the “Provide Inherit Package” step of the wizard.

For more information, see “Managing Zones” in Installing and Administering Solaris Container Manager 1.1.

Step

    Create a local zone using zone commands.

    1. Become superuser and open two terminal windows.

    2. From the first terminal window, type the following lines to create a local zone.

      #zonecfg -z localzonename, where localzonename is the name of the local zone.

      No such zone configured Use 'create' to begin configuring a new zone.

      zonecfg:localzonename> create

      zonecfg:localzonename> export

      zonecfg:localzonename> add inherit-pkg-dir

      zonecfg:localzonename:inherit-pkg-dir> set dir=/opt, where /opt is the installation directory.

      zonecfg:localzonename:inherit-pkg-dir> end

      zonecfg:localzonename> add net

      zonecfg:localzonename:net> set address=ipaddress

      zonecfg:localzonename:net> set physical=networkinterface

      zonecfg:localzonename:net> end

      zonecfg:localzonename> set zonepath=/export/zone/localzonename

      zonecfg:localzonename> verify

      zonecfg:localzonename> commit

      zonecfg:localzonename> exit

      #zoneadm -z localzonename install

    3. From the second terminal window, type zlogin -C localzonename to log in to the local zone

    4. From the first terminal window, type zoneadm -z localzonename boot to boot the zone.

      The boot messages are displayed in the second terminal window where you logged in to the zone.

    5. Type the appropriate values for locale, terminal type, host name, naming service etc.

      The zone will be rebooted.