Creating and Using Oracle Solaris 10 Zones

Exit Print View

Updated: September 2014
 
 

How to Install the solaris10 Branded Zone

A configured solaris10 branded zone is installed by using the zoneadm command with the install subcommand.

For information about creating images of Oracle Solaris 10 systems, see Creating the Image for Directly Migrating Oracle Solaris 10 Systems Into Zones. To retain the sysidcfg identity from a system image that you created, without altering the image, use the –p option after the install subcommand. To remove the system identity from a system image that you created, without altering the image, use the –u option. The sys-unconfig occurs to the target zone. The –c option can be used to include a sysidcfg file that contains the information used to configure the zone after the install completes.

The example procedure shows how to use the –a option with the created archive image of a physical installed Oracle Solaris 10 system.

You must be the global administrator or a user with the appropriate authorizations in the global zone to perform this procedure.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Install the configured zone s10-zone by using the zoneadm install command with the –p and –a options and the path to the archive:
    global# zoneadm -z s10sepvar install -a /net/data13/tmp/s10u10_sparc_sepvar.flar -p

    You will see various messages as the installation completes. This can take some time.

  3. (Optional) If an error message is displayed and the zone fails to install, use the zoneadm list command and the –c and –v options to get the zone state:
    global# zoneadm list -civ
    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              solaris    shared
     -  s10-zone configured   /zones/s10-zone                solaris10  shared
    • If the state is listed as configured, make the corrections specified in the message and try the zoneadm install command again.

    • If the state is listed as incomplete, first execute this command:

      global# zoneadm -z my-zone uninstall

      Then, make the corrections specified in the message and try the zoneadm install command again.

  4. When the installation completes, use the list subcommand with the –i and –v options to list the installed zones and verify the status.
    global# zoneadm list -iv

    You will see a display that is similar to the following:

    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              solaris     shared
     -  s10-zone  installed    /zones/s10-zone               solaris10   shared
Example 5-1  solaris10 Zone Installation
# zoneadm -z s10sepvar install -p -a /net/data13/tmp/s10u10_sparc_sepvar.flar -u
The following ZFS file system(s) have been created:
    rpool/zones/s10sepvar
Progress being logged to /var/log/zones/zoneadm.20120519T151123Z.s10sepvar.install
    Installing: This may take several minutes...

Troubleshooting

If an installation fails, review the log file. On success, the log file is in /var/log inside the zone. On failure, the log file is in /var/log/zones in the global zone.

If a zone installation is interrupted or fails, the zone is left in the incomplete state. Use the uninstall command with the –F option to reset the zone to the configured state.