JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management     Oracle Solaris 11 Express 11/10
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, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)

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

20.  Non-Global Zone Login (Overview)

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

Initial Zone Boot and Zone Login Procedures (Task Map)

Performing the Initial Internal Zone Configuration

How to Log In to the Zone Console to Perform the Internal Zone Configuration

How to Use an /etc/sysidcfg File to Perform the Initial Zone Configuration

Logging In to a Zone

How to Log In to the Zone Console

How to Use Interactive Mode to Access a Zone

How to Use Non-Interactive Mode to Access a Zone

How to Exit a Non-Global Zone

How to Use Failsafe Mode to Enter a Zone

How to Use zlogin to Shut Down a Zone

Switching the Zone to a Different Networking Service Configuration or Enabling a Service

How to Switch the Zone to the Open Networking Service Configuration

How to Enable a Specific Service in a Zone

Printing the Name of the Current Zone

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

23.  About Packages on an Oracle Solaris 11 Express System With Zones Installed

24.  Oracle Solaris Zones Administration (Overview)

25.  Administering Oracle Solaris Zones (Tasks)

26.  Troubleshooting Miscellaneous Oracle Solaris Zones Problems

Part III Oracle Solaris 10 Zones

27.  Introduction to Oracle Solaris 10 Zones

28.  Assessing an Oracle Solaris 10 System and Creating an Archive

29.  (Optional) Migrating an Oracle Solaris 10 native Non-Global Zone Into an Oracle Solaris 10 Container

30.  Configuring the solaris10 Branded Zone

31.  Installing the solaris10 Branded Zone

32.  Booting a Zone and Zone Migration

33.  solaris10 Branded Zone Login and Post-Installation Configuration

Glossary

Index

Performing the Initial Internal Zone Configuration

You must configure the zone using one of the following methods:


Tip - After you have performed the internal configuration, it is a good idea to make a copy of the non-global zone's configuration. You can use this backup to restore the zone in the future. As superuser or using an equivalent role, print the configuration for the zone my-zone to a file. This example uses a file named my-zone.config.

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

See How to Restore an Individual Non-Global Zone for more information.


How to Log In to the Zone Console to Perform the Internal Zone Configuration

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

  1. Be superuser, or have equivalent authorizations.

    For more information about roles, see Configuring and Using RBAC (Task Map) in System Administration Guide: Security Services.

  2. Use the zlogin command with the -C option and the name of the zone, my-zone in this procedure.
    global# zlogin -C my-zone
  3. From another terminal window, boot the zone.
    global# zoneadm -z my-zone boot

    You will see a display similar to the following in the zlogin window:

    [NOTICE: Zone booting up]
  4. The first time you log in to the console, you are prompted to answer a series of questions. Your screen will look similar to this:
    SunOS Release 5.11 Version Generic 64-bit
    Copyright 1983-2007 Sun Microsystems, Inc.  All rights reserved.
    Use is subject to license terms.
    Hostname: my-zone
    Loading smf(5) service descriptions: 114/114
    Select a Language
    
         1. English
         2. es
         2. fr
    
    Please make a choice (1 - 3), or press h or ? for help:
    
    Select a Locale
    
          1. English (C - 7-bit ASCII)
          2. Canada (English) (UTF-8)
          4. U.S.A. (UTF-8)
          5. U.S.A. (en_US.ISO8859-1)
          6. U.S.A. (en_US.ISO8859-15)
          7. Go Back to Previous Screen
          
    Please make a choice (1 - 7), or press h or ? for help:
    
    What type of terminal are you using?
          1) ANSI Standard CRT
          2) DEC VT52
          3) DEC VT100
          4) Heathkit 19
          5) Lear Siegler ADM31
          6) PC Console
          7) Sun Command Tool
          8) Sun Workstation
          9) Televideo 910
          10) Televideo 925
          11) Wyse Model 50
          12) X Terminal Emulator (xterms)
    Type the number of your choice and press Return:
    12
    .
    .
    .

    For the complete list of questions you must answer, see Internal Zone Configuration.

  5. (Optional) If you are not using two windows as described in step 3, you might have missed the initial prompt for configuration information. If you see the following system message at zone login instead of a prompt:
    [connected to zone zonename console]

    Press Return to display the prompt again.

    If you enter an incorrect response and try to restart the configuration, you might experience difficulty when you attempt the process again. This occurs because the sysidtools can store your previous responses.

    If this happens, use the following workaround from the global zone to restart the configuration process.

    global# zlogin -S zonename /usr/sbin/sys-unconfig

    For more information on the sys-unconfig command, see the sys-unconfig(1M) man page.

How to Use an /etc/sysidcfg File to Perform the Initial Zone Configuration

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

  1. Be superuser, or have equivalent authorizations.

    For more information about roles, see Configuring and Using RBAC (Task Map) in System Administration Guide: Security Services.

  2. From the global zone, change directories to the non-global zone's /etc directory:
    global# cd /zones/my-zone/root/etc
  3. Create the sysidcfg file and place it in this directory.

    The file will look similar to the following:

    • For a shared-IP zone:
      system_locale=C
      terminal=xterms
      network_interface=primary {
                  hostname=my-zone
      }
      security_policy=NONE
      name_service=NIS {
                  domain_name=special.example.com
                  name_server=bird(192.168.112.3)
      }
      nfs4_domain=domain
      timezone=US/Central
      root_password=m4qtoWN
    • For an exclusive-IP zone with a static IP configuration:
      system_locale=C
      terminal=xterms
      network_interface=primary {
               hostname=my-zone
               default_route=10.10.10.1
               ip_address=10.10.10.13
               netmask=255.255.255.0
      }
      nfs4_domain=domain
      timezone=US/Central
      root_password=m4qtoWN
    • For an exclusive-IP zone with DHCP and IPv6 option:
      system_locale=C
      terminal=dtterm
      network_interface=primary {
                  dhcp protocol_ipv6=yes
      }
      security_policy=NONE
      name_service=DNS {
               domain_name=example.net
               name_server=192.168.224.11,192.168.224.33
      }
      nfs4_domain=domain
      timezone=US/Central
      root_password=m4qtoWN
  4. Boot the zone.
See Also

See the sysidcfg(4) man page for more information.