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

Preconfiguration Tasks

Resources Included in the Configuration by Default

Configured Devices in solaris10 Branded Zones

Privileges Defined in solaris10 Branded Zones

solaris10 Branded Zone Configuration Process

Configuring the Target Zone

How to Configure an Exclusive-IP solaris10 Branded Zone

How to Configure a Shared-IP solaris10 Branded Zone

33.  Installing the solaris10 Branded Zone

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

Glossary

Index

Configuring the Target Zone

The following must be installed on your Oracle Solaris 11 system: pkg:/system/zones/brand/brand-solaris10.

Create the new zone configuration on the target system by using the zonecfg command.

The zonecfg prompt is of the following form:

zonecfg:zonename>

When you are configuring a specific resource type, such as a file system, that resource type is also included in the prompt:

zonecfg:zonename:fs>

Tip - If you know you will be using CDs or DVDs to install applications in a solaris10 branded zone, use add fs to add read-only access to CD or DVD media in the global zone when you initially configure the branded zone. A CD or DVD can then be used to install a product in the branded zone. See How to Add Access to CD or DVD Media in a Non-Global Zone for more information.


How to Configure an Exclusive-IP solaris10 Branded Zone

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. Create an exclusive-IP solaris10 zone with the zone name s10-zone.
    global# zonecfg -z s10-zone

    If this is the first time you have configured this zone, you will see the following system message:

    s10-zone: No such zone configured
    Use 'create' to begin configuring a new zone.
  3. Create the new solaris10 zone configuration by using the SYSsolaris10 template.
    zonecfg:s10-zone> create -t SYSsolaris10

    The SYSsolaris10 profile creates an exclusive-IP zone that includes an automatic anet resource by default.

  4. Set the zone path, /zones/s10-zone in this procedure.
    zonecfg:s10-zone> set zonepath=/zones/s10-zone
  5. Set the autoboot value.
    zonecfg:s10-zone> set autoboot=true

    If set to true, the zone is automatically booted when the global zone is booted. The default value is false. Note that for the zones to autoboot, the zones service svc:/system/zones:default must also be enabled. You can enable the zones service with the svcadm command.

  6. Add a ZFS file system shared with the global zone.
    zonecfg:s10-zone> add fs
    1. Set the type to zfs.
      zonecfg:s10-zone:fs> set type=zfs
    2. Set the directory to mount from the global zone.
      zonecfg:s10-zone:fs> set special=share/zone/s10-zone
    3. Specify the mount point.
      zonecfg:s10-zone:fs> set dir=/opt/shared
    4. End the specification.
      zonecfg:s10-zone:fs> end

    This step can be performed more than once to add more than one file system.

  7. Delegate a ZFS dataset named sales in the storage pool tank
    zonecfg:my-zone> add dataset
    1. Specify the path to the ZFS dataset sales.
      zonecfg:my-zone> set name=tank/sales
    2. End the dataset specification.
      zonecfg:my-zone> end
  8. Set the hostid to be the hostid of the source system.
    zonecfg:my-zone> set hostid=80f0c086
  9. Verify the zone configuration for the zone.
    zonecfg:s10-zone> verify
  10. Commit the zone configuration for the zone.
    zonecfg:s10-zone> commit
  11. Exit the zonecfg command.
    zonecfg:s10-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.

  12. Use the info subcommand to verify that the brand is set to solaris10.
    global# zonecfg -z s10-zone info
  13. (Optional) Use the info subcommand to check the hostid:
    global# zonecfg -z s10-zone info hostid

Next Steps


Tip - After you have configured the zone, it is a good idea to make a copy of the zone's configuration. You can use this backup to recreate the zone in the future. As root or an administrator with the correct profile, print the configuration for the zone s10-zone to a file. This example uses a file named s10-zone.config.

global# zonecfg -z s10-zone export > s10-zone.config

See Also

For additional components that can be configured using zonecfg, see Chapter 16, Non-Global Zone Configuration (Overview). This guide also provides information on using the zonecfg command in either command-line or command-file mode. Note that for shared-IP zones, a static address must be assigned in a zonecfg net resource. For more information about adding ZFS file systems, see Adding ZFS File Systems to a Non-Global Zone in Oracle Solaris 11.1 Administration: ZFS File Systems.

How to Configure a Shared-IP solaris10 Branded Zone

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. Create a shared-IP solaris10 zone with the zone name s10-zone.
    global# zonecfg -z s10-zone

    If this is the first time you have configured this zone, you will see the following system message:

    s10-zone: No such zone configured
    Use 'create' to begin configuring a new zone.
  3. Create the new solaris10 zone configuration.
    zonecfg:s10-zone> create -b
    set brand=solaris10

    Note - Do not use create -t SYSsolaris10-shared-ip to set the IP type.


  4. Set the zone path, /zones/s10-zone in this procedure.
    zonecfg:s10-zone> set zonepath=/zones/s10-zone
  5. Set the autoboot value.

    If set to true, the zone is automatically booted when the global zone is booted. Note that for the zones to autoboot, the zones service svc:/system/zones:default must also be enabled. The default value is false.

    zonecfg:s10-zone> set autoboot=true
  6. Create a shared-IP zone with a network virtual interface.
    zonecfg:my-zone> set ip-type=shared
    zonecfg:my-zone> add net
    1. Set the physical device type for the network interface, the bge device in this procedure.
      zonecfg:my-zone:net> Set physical=bge0
    2. Set the IP address, 10.6.10.233/24 in this procedure.
      zonecfg:my-zone:net> Set address=10.6.10.233/24
    3. End the specification.
      zonecfg:my-zone:net> end

    This step can be performed more than once to add more than one network interface.

  7. Add a ZFS file system shared with the global zone.
    zonecfg:s10-zone> add fs
    1. Set the type to zfs.
      zonecfg:s10-zone:fs> set type=zfs
    2. Set the directory to be mounted from the global zone.
      zonecfg:s10-zone:fs> set special=share/zone/s10-zone
    3. Specify the mount point.
      zonecfg:s10-zone:fs> set dir=/opt/shared
    4. End the specification.
      zonecfg:s10-zone:fs> end

    This step can be performed more than once to add more than one file system.

  8. Delegate a ZFS dataset named sales in the storage pool tank
    zonecfg:my-zone> add dataset
    1. Specify the path to the ZFS dataset sales.
      zonecfg:my-zone> set name=tank/sales
    2. End the dataset specification.
      zonecfg:my-zone> end
  9. Set the hostid to be the hostid of the source system.
    zonecfg:my-zone> set hostid=80f0c086
  10. Verify the zone configuration for the zone.
    zonecfg:s10-zone> verify
  11. Commit the zone configuration for the zone.
    zonecfg:s10-zone> commit
  12. Exit the zonecfg command.
    zonecfg:s10-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.

  13. Use the info subcommand to verify that the brand is set to solaris10.
    global# zonecfg -z s10-zone info
  14. (Optional) Use the info subcommand to check the hostid:
    global# zonecfg -z s10-zone info hostid

Next Steps


Tip - After you have configured the zone, it is a good idea to make a copy of the zone's configuration. You can use this backup to recreate the zone in the future. As root or an administrator with the correct profile, print the configuration for the zone s10-zone to a file. This example uses a file named s10-zone.config.

global# zonecfg -z s10-zone export > s10-zone.config

See Also

For additional components that can be configured using zonecfg, see Chapter 16, Non-Global Zone Configuration (Overview). This guide also provides information on using the zonecfg command in either command-line or command-file mode. Note that for shared-IP zones, a static address must be assigned in a zonecfg net resource. For more information about adding ZFS file systems, see Adding ZFS File Systems to a Non-Global Zone in Oracle Solaris 11.1 Administration: ZFS File Systems.