Document Information
Preface
Solaris Virtualization Product Overview
Part I Resource Management
1. Introduction to Solaris 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. About Packages and Patches on a Solaris System With Zones Installed (Overview)
25. Adding and Removing Packages and Patches on a Solaris System With Zones Installed (Tasks)
Adding and Removing Packages and Patches on a Solaris System With Zones Installed (Task Map)
Checking Package Information on a 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 a 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 a 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
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
26. Solaris Zones Administration (Overview)
27. Administering Solaris Zones (Tasks)
28. Troubleshooting Miscellaneous Solaris Zones Problems
Part III Branded Zones
29. About Branded Zones and the Linux Branded Zone
30. Planning the lx Branded Zone Configuration (Overview)
31. Configuring the lx Branded Zone (Tasks)
32. About Installing, Booting, Halting, Cloning, and Uninstalling lx Branded Zones (Overview)
33. Installing, Booting, Halting, Uninstalling and Cloning lx Branded Zones (Tasks)
34. Logging In to lx Branded Zones (Tasks)
35. Moving and Migrating lx Branded Zones (Tasks)
36. Administering and Running Applications in lx Branded Zones (Tasks)
Part IV Sun xVM
37. Sun xVM Hypervisor System Requirements
38. Booting and Running the Sun xVM Hypervisor
39. Xvnc
40. Using virt-install to Install a Domain
41. xVM System Administration
42. Troubleshooting Miscellaneous Sun xVM Problems
Glossary
Index
|
Adding a Package on a Solaris System With Zones Installed
You can use the pkgadd system utility described in the pkgadd(1M) man page to
perform the following tasks:
Add a package to the global zone only
Add a package to both the global zone and all non-global zones
Add a package that is already installed in the global zone to the non-global zones
Add a package to a specified non-global zone only
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 OnlyTo 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.
- 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.
- 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 ZonesDo not use pkgadd option -G in this procedure. You must be the global administrator in the global zone to perform
this procedure.
- 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.
- 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 ZonesYou must be the global administrator in the global zone to perform
this procedure.
- 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.
- In the global zone, use pkgrm to remove the package.
- Add the package without using the -G option.
How to Add a Package to a Specified Non-Global Zone OnlyTo 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.
- Log in to the non-global zone as the zone administrator.
- 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.
|