JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Part I Oracle Solaris Resource Management

1.  Introduction to Resource Management

2.  Projects and Tasks (Overview)

3.  Administering Projects and Tasks

4.  Extended Accounting (Overview)

5.  Administering Extended Accounting (Tasks)

6.  Resource Controls (Overview)

7.  Administering Resource Controls (Tasks)

8.  Fair Share Scheduler (Overview)

9.  Administering the Fair Share Scheduler (Tasks)

10.  Physical Memory Control Using the Resource Capping Daemon (Overview)

11.  Administering the Resource Capping Daemon (Tasks)

12.  Resource Pools (Overview)

13.  Creating and Administering Resource Pools (Tasks)

14.  Resource Management Configuration Example

Part II Oracle Solaris Zones

15.  Introduction to Oracle Solaris Zones

16.  Non-Global Zone Configuration (Overview)

17.  Planning and Configuring Non-Global Zones (Tasks)

18.  About Installing, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)

19.  Installing, Booting, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)

20.  Non-Global Zone Login (Overview)

21.  Logging In to Non-Global Zones (Tasks)

22.  About Zone Migrations and the zonep2vchk Tool

23.  Migrating Oracle Solaris Systems and Migrating Non-Global Zones (Tasks)

24.  About Automatic Installation and Packages on an Oracle Solaris 11.1 System With Zones Installed

25.  Oracle Solaris Zones Administration (Overview)

26.  Administering Oracle Solaris Zones (Tasks)

27.  Configuring and Administering Immutable Zones

28.  Troubleshooting Miscellaneous Oracle Solaris Zones Problems

Part III Oracle Solaris 10 Zones

29.  Introduction to Oracle Solaris 10 Zones

30.  Assessing an Oracle Solaris 10 System and Creating an Archive

31.  (Optional) Migrating an Oracle Solaris 10 native Non-Global Zone Into an Oracle Solaris 10 Zone

32.  Configuring the solaris10 Branded Zone

33.  Installing the solaris10 Branded Zone

Zone Installation Images

Types of System Images

Image sysidcfg Status

Install the solaris10 Branded Zone

Installer Options

How to Install the solaris10 Branded Zone

34.  Booting a Zone, Logging in, and Zone Migration

Glossary

Index

Install the solaris10 Branded Zone

The zoneadm command described in Part II, Oracle Solaris Zones and in the zoneadm(1M) man page is the primary tool used to install and administer non-global zones. Operations using the zoneadm command must be run from the global zone on the target system.

In addition to unpacking files from the archive, the install process performs checks, required postprocessing, and other functions to ensure that the zone is optimized to run on the host.

If you created an Oracle Solaris system archive from an existing system and use the -p (preserve sysidcfg) option when you install the zone, then the zone will have the same identity as the system used to create the image.

If you use the -u (sys-unconfig) option when you install the target zone, the zone produced will not have a hostname or name service configured.


Caution

Caution - You must use either the -p option or the -u option. If you do not specify one of these two options, an error results.


Installer Options

Option
Description
-a
Location of archive from which to copy system image. Full flash archive and pax, cpio, gzip compressed cpio, bzip compressed cpio, and level 0 ufsdump are supported.
-c path
Pass a sysidcfg file to use in configuring the zone after the install completes.
-d path
Location of directory from which to copy system image.
-d
Use the -d option with the dash parameter to direct that the existing directory layout be used in the zonepath. Thus, if the administrator manually sets up the zonepath directory before the installation, the -d option can be used to indicate that the directory already exists.
-p
Preserve system identity.

Either the -p or the -u must be used.

-s
Install silently.
-u
sys-unconfig the zone.

Either the -p or the -u must be used.

The -c can be used in addition to the -u option, to pass in a sysidcfg file to use in configuring the zone after the installation completes.

-v
Verbose output.

The -a and -d options are mutually exclusive.

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 root or assume an equivalent role.
  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 s10-zone install -a /net/machine_name/s10-system.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 33-1 solaris10 Zone Installation

# zoneadm -z s10sepvar install -a /net/data13/tmp/s10u10_sparc_sepvar.flar -p
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.