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)

Planning and Configuring a Non-Global Zone (Task Map)

Evaluating the Current System Setup

Disk Space Requirements

Restricting Zone Size

Determine the Zone Host Name and the Network Requirements

Zone Host Name

Shared-IP Zone Network Address

IPv4 Zone Network Address

IPv6 Zone Network Address

Exclusive-IP Zone Network Address

File System Configuration

Creating, Revising, and Deleting Non-Global Zone Configurations (Task Map)

Configuring, Verifying, and Committing a Zone

How to Configure the Zone

Where to Go From Here

Script to Configure Multiple Zones

How to Display the Configuration of a Non-Global Zone

Using the zonecfg Command to Modify a Zone Configuration

How to Modify a Resource Type in a Zone Configuration

How to Clear a Property in a Zone Configuration

How to Rename a Zone

How to Add a Dedicated Device to a Zone

How to Set zone.cpu-shares in the Global Zone

Using the zonecfg Command to Revert or Remove a Zone Configuration

How to Revert a Zone Configuration

How to Delete a Zone Configuration

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

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

Glossary

Index

Using the zonecfg Command to Modify a Zone Configuration

You can also use the zonecfg command to do the following:

How to Modify a Resource Type in a Zone Configuration

You can select a resource type and modify the specification for that resource.

You must be the global administrator in the global zone or a user with the correct rights profile to perform this procedure.

  1. Become root or assume an equivalent role.
  2. Select the zone to be modified, my-zone in this procedure.
    global# zonecfg -z my-zone
  3. Select the resource type to be changed, for example, a resource control.
    zonecfg:my-zone> select rctl name=zone.cpu-shares
  4. Remove the current value.
    zonecfg:my-zone:rctl> remove value (priv=privileged,limit=20,action=none)
  5. Add the new value.
    zonecfg:my-zone:rctl> add value (priv=privileged,limit=10,action=none)
  6. End the revised rctl specification.
    zonecfg:my-zone:rctl> end
  7. Commit the zone configuration for the zone.
    zonecfg:my-zone> commit
  8. Exit the zonecfg command.
    zonecfg:my-zone> exit

    Note that even if you did not explicitly type commit at the prompt, a commit is automatically attempted when you type exit or an EOF occurs.

    Committed changes made through zonecfg take effect the next time the zone is booted.

How to Clear a Property in a Zone Configuration

Use this procedure to reset a standalone property.

  1. Become root or assume an equivalent role.
  2. Select the zone to be modified, my-zone in this procedure.
    global# zonecfg -z my-zone
  3. Clear the property to be changed, the existing pool association in this procedure.
    zonecfg:my-zone> clear pool
  4. Commit the zone configuration for the zone.
    zonecfg:my-zone> commit
  5. Exit the zonecfg command.
    zonecfg:my-zone> exit

    Note that even if you did not explicitly type commit at the prompt, a commit is automatically attempted when you type exit or an EOF occurs.

    Committed changes made through zonecfg take effect the next time the zone is booted.

How to Rename a Zone

This procedure can be used to rename zones that are in either the configured state or the installed state.

Note that zones with either rootzpool or zpool resources cannot be renamed in the installed state because the zonename is part of the existing zpool name. To rename these zones, see “Renaming Zones on Shared Storage” at the end of this procedure.

You must be the global administrator in the global zone or a user with the correct rights profile to perform this procedure.

  1. Become root or assume an equivalent role.
  2. Select the zone to be renamed, my-zone in this procedure.
    global# zonecfg -z my-zone
  3. Change the name of the zone, for example, to newzone.
    zonecfg:my-zone> set zonename=newzone
  4. Commit the change.
    zonecfg:newzone> commit
  5. Exit the zonecfg command.
    zonecfg:newzone> exit

    Committed changes made through zonecfg take effect the next time the zone is booted.

Renaming Zones on Shared Storage

A zone in the installed state that has either rootzpool or zpool resources cannot be renamed because the zonename is part of the existing zpool name. To rename a zone on shared storage that has been installed and has online zpools, perform the following steps. The zone my-zone is renamed in this procedure.

How to Add a Dedicated Device to a Zone

The following specification places a scanning device in a non-global zone configuration.

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

  1. Become root or assume an equivalent role.
  2. Add a device.
    zonecfg:my-zone> add device
  3. Set the device match, /dev/scsi/scanner/c3t4* in this procedure.
    zonecfg:my-zone:device> set match=/dev/scsi/scanner/c3t4*
  4. End the device specification.
    zonecfg:my-zone:device> end
  5. Exit the zonecfg command.
    zonecfg:my-zone> exit

How to Set zone.cpu-shares in the Global Zone

This procedure is used to persistently set shares in the global zone.

You must be the global administrator in the global zone or a user in the global zone with the correct rights profile to perform this procedure.

  1. Become root or assume an equivalent role.
  2. Use the zonecfg command .
    # zonecfg -z global
  3. Set five shares for the global zone.
    zonecfg:global> set cpu-shares=5
  4. Exit zonecfg.
    zonecfg:global> exit