JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

Part I Resource Management

1.  Introduction to Solaris 10 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

15.  Resource Control Functionality in the Solaris Management Console

Part II Zones

16.  Introduction to Solaris Zones

17.  Non-Global Zone Configuration (Overview)

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

19.  About Installing, Halting, Cloning, and Uninstalling Non-Global Zones (Overview)

20.  Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)

21.  Non-Global Zone Login (Overview)

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

23.  Moving and Migrating Non-Global Zones (Tasks)

24.  Oracle Solaris 10 9/10: Migrating a Physical Oracle Solaris System Into a Zone (Tasks)

25.  About Packages and Patches on an Oracle Solaris System With Zones Installed (Overview)

26.  Adding and Removing Packages and Patches on an Oracle Solaris System With Zones Installed (Tasks)

Adding and Removing Packages and Patches on an Oracle Solaris System With Zones Installed (Task Map)

Adding a Package on an Oracle Solaris System With Zones Installed

How to Add a Package to the Global Zone Only

How to Add a Package to the Global Zone and All Non-Global Zones

How to Add a Package That Is Installed in the Global Zone to All Non-Global Zones

How to Add a Package to a Specified Non-Global Zone Only

Checking Package Information on an Oracle Solaris System With Zones Installed

How to Check Package Information in the Global Zone Only

How to Check Package Information in a Specified Non-Global Zone Only

Removing a Package From an Oracle Solaris System With Zones Installed

How to Remove a Package From the Global Zone and All Non-Global Zones

How to Remove a Package From a Specified Non-Global Zone Only

Applying a Patch to an Oracle Solaris System With Zones Installed

How to Apply a Patch to the Global Zone Only

How to Apply a Patch to the Global Zone and All Non-Global Zones

How to Apply a Patch to a Specified Non-Global Zone Only

Oracle Solaris 10 10/09: How to Patch Non-Global Zones in Parallel

Removing a Patch on a System with Zones Installed

How to Remove a Patch From the Global Zone and All Non-Global Zones

How to Remove a Patch From a Specified Non-Global Zone Only

Checking Package Parameter Settings on a System with Zones Installed

(Optional) How to Check the Setting of a Package Already Installed on the System

(Optional) How to Check the Setting of a Package in Software on a CD-ROM

27.  Oracle Solaris Zones Administration (Overview)

28.  Oracle Solaris Zones Administration (Tasks)

29.  Upgrading an Oracle Solaris 10 System That Has Installed Non-Global Zones

30.  Troubleshooting Miscellaneous Oracle Solaris Zones Problems

Part III lx Branded Zones

31.  About Branded Zones and the Linux Branded Zone

32.  Planning the lx Branded Zone Configuration (Overview)

33.  Configuring the lx Branded Zone (Tasks)

34.  About Installing, Booting, Halting, Cloning, and Uninstalling lx Branded Zones (Overview)

35.  Installing, Booting, Halting, Uninstalling and Cloning lx Branded Zones (Tasks)

36.  Logging In to lx Branded Zones (Tasks)

37.  Moving and Migrating lx Branded Zones (Tasks)

38.  Administering and Running Applications in lx Branded Zones (Tasks)

Glossary

Index

Adding a Package on an Oracle Solaris System With Zones Installed

You can use the pkgadd system utility described in the pkgadd(1M) man page to perform the following tasks:

The SUNW_PKG_ALLZONES and SUNW_PKG_HOLLOW package parameter settings must match the correct value, either true or false, to add packages. Otherwise, the desired result will not be achieved. For more information about the effect of these package parameter settings, see About Packages and Zones. For more information about how to check these package parameter settings, see Checking Package Parameter Settings on a System with Zones Installed.

How to Add a Package to the Global Zone Only

To add a package to the global zone only, the SUNW_PKG_ALLZONES package parameter must be set to false.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. While in the global zone, run the pkgadd -d command followed by the location of the package, the -G option, and then the package name.
    • If installing the package from a CD-ROM, type:

      global# pkgadd -d /cdrom/cdrom0/directory -G package_name
    • If installing the package from a directory to which it has been copied, type:

      global# pkgadd -d disk1/image -G package_name

      where disk1 is the location where the package was copied.


    Note - If the pkgadd utility is run without the -G option and SUNW_PKG_THISZONE=true, then the specified package is added to the current (global) zone by default.


How to Add a Package to the Global Zone and All Non-Global Zones

Do not use pkgadd option -G in this procedure.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. While in the global zone, run the pkgadd -d command followed by the location of the package and then the package name.
    • If installing the package from a CD-ROM, type:

      global# pkgadd -d /cdrom/cdrom0/directory package_name
    • If installing the package from a directory to which it has been copied, type:

      global# pkgadd -d disk1/image package_name

      where disk1 is the location where the package was copied.

How to Add a Package That Is Installed in the Global Zone to All Non-Global Zones

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. In the global zone, use pkgrm to remove the package.
  3. Add the package without using the -G option.

How to Add a Package to a Specified Non-Global Zone Only

To add a package to a specified non-global zone only, the SUNW_PKG_ALLZONES package parameter must be set to false. Do not use the pkgadd option -G in this procedure or the operation fails.

You must be the zone administrator in the non-global zone to perform this procedure.

  1. Log in to the non-global zone as the zone administrator.
  2. While in the non-global zone, my-zone in this procedure, run the pkgadd -d command followed by the location of the package and then the package name.
    • If installing the package from a CD-ROM, type:

      my-zone# pkgadd -d /cdrom/cdrom0/directory package_name
    • If installing the package from a directory to which it has been copied, type:

      my-zone# pkgadd -d disk1/image package_name

      where disk1 is the location where the package was copied.