Quickstart: Installing and Setting Up Sun Management Center 3.6

ProcedureTo Create a Local Zone

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

When 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.

      create

      export

      add inherit-pkg-dir

      set dir=/opt, where /opt is the installation directory.

      end

      add net

      set address=ipaddress

      set physical=networkinterface

      end

      set zonepath=/export/zone/localzonename

      verify

      commit

      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, and so on.

      The zone will be rebooted.