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

Document Information


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 System With Zones Installed

Image Packaging System Software on Systems Running the Oracle Solaris 11 Release

Zones Packaging Overview

About Packages and Zones

Using https_proxy and http_proxy on a System That Has Installed Zones

How Zone State Affects Package Operations

About Adding Packages in Systems With Zones Installed

Using pkg in the Global Zone

Using the pkg install Command in a Non-Global Zone

Adding Additional Packages in a Zone by Using a Custom AI Manifest

About Removing Packages in Zones

Package Information Query

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

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



About Adding Packages in Systems With Zones Installed

On the Oracle Solaris 11 release, use the pkg install command.

# pkg install package_name

Using pkg in the Global Zone

The pkg install command is used in the global zone to add the package to the global zone only. The package is not propagated to any other zones.

Using the pkg install Command in a Non-Global Zone

The pkg install command is used by the zone administrator in the non-global zone to add the package to the non-global zone only. To add a package in a specified non-global zone, execute the pkg install command as the zone administrator.

Package dependencies are handled automatically in IPS.

Adding Additional Packages in a Zone by Using a Custom AI Manifest

The process of adding extra software in a zone at installation can be automated by revising the AI manifest. The specified packages and the packages on which they depend will be installed. The default list of packages is obtained from the AI manifest. The default AI manifest is /usr/share/auto_install/manifest/zone_default.xml. See Adding and Updating Oracle Solaris 11 Software Packages for information on locating and working with packages.

Example 24-1 Revising the Manifest

The following procedure adds mercurial and a full installation of the vim editor to a configured zone named my-zone. (Note that only the minimal vim-core that is part of solaris-small-server is installed by default.)

  1. Copy the default AI manifest to the location where you will edit the file, and make the file writable.

    # cp /usr/share/auto_install/manifest/zone_default.xml ~/my-zone-ai.xml
    # chmod 644 ~/my-zone-ai.xml
  2. Edit the file, adding the mercurial and vim packages to the software_data section as follows:

          <software_data action="install">
  3. Install the zone.

    # zoneadm -z my-zone install -m ~/my-zone-ai.xml

    The system displays:

    A ZFS file system has been created for this zone.
    Progress being logged to /var/log/zones/
           Image: Preparing at /zones/my-zone/root.
     Install Log: /system/volatile/install.15496/install_log
     AI Manifest: /tmp/manifest.xml.XfaWpE
      SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
        Zonename: my-zone
    Installation: Starting ...
                  Creating IPS image
                  Installing packages from:
                          origin:  http://localhost:1008/solaris/54453f3545de891d4daa841ddb3c844fe8804f55/
    DOWNLOAD                                  PKGS       FILES    XFER (MB)
    Completed                              169/169 34047/34047  185.6/185.6
    PHASE                                        ACTIONS
    Install Phase                            46498/46498 
    PHASE                                          ITEMS
    Package State Update Phase                   169/169 
    Image State Update Phase                         2/2 
    Installation: Succeeded