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

Logging In to a Zone

Use the zlogin command to log in from the global zone to any zone that is running or in the ready state. See the zlogin(1) man page for more information.

You can log in to a zone in various ways, as described in the following procedures. You can also log in remotely, as described in Remote Login.

How to Log In to the Zone Console

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, for example, my-zone.
    global# zlogin -C my-zone

    Note - If you start the zlogin session immediately after issuing the zoneadm boot command, boot messages from the zone will display:

    [NOTICE: Zone booting up]
    SunOS Release 5.11 Version snv_145 64-bit
    Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
    Hostname: my-zone
    Reading ZFS config: done.
    Mounting ZFS filesystems: (5/5)

  3. When the zone console displays, log in as root, press Return, and type the root password when prompted.
    my-zone console login: root
    Password:

How to Use Interactive Mode to Access a Zone

In interactive mode, a new pseudo-terminal is allocated for use inside the zone.

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, log in to the zone, for example, my-zone.
    global# zlogin my-zone

    Information similar to the following will display:

    [Connected to zone 'my-zone' pts/2]
    Last login: Wed Jul  3 16:25:00 on console
  3. Type exit to close the connection.

    You will see a message similar to the following:

    [Connection to zone 'my-zone' pts/2 closed]

How to Use Non-Interactive Mode to Access a Zone

Non-interactive mode is enabled when the user supplies a command to be run inside the zone. Non-interactive mode does not allocate a new pseudo-terminal.

Note that the command or any files that the command acts upon cannot reside on NFS.

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, log in to the my-zone zone and supply a command name.

    The command zonename is used here.

    global# zlogin my-zone zonename

    You will see the following output:

    my-zone

How to Exit a Non-Global Zone

See Also

For more information about zlogin command options, see the zlogin(1) man page.

How to Use Failsafe Mode to Enter a Zone

When a connection to the zone is denied, the zlogin command can be used with the -S option to enter a minimal environment in the zone.

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, use the zlogin command with the -S option to access the zone, for example, my-zone.
    global# zlogin -S my-zone

How to Use zlogin to Shut Down a Zone


Note - Running init 0 in the global zone to cleanly shut down a Oracle Solaris system also runs init 0 in each of the non-global zones on the system. Note that init 0 does not warn local and remote users to log off before the system is taken down.


Use this procedure to cleanly shut down a zone. To halt a zone without running shutdown scripts, see How to Halt a Zone.

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. Log in to the zone to be shut down, for example, my-zone, and specify shutdown as the name of the utility and init 0 as the state.
    global# zlogin my-zone shutdown -i 0

    Your site might have its own shutdown script, tailored for your specific environment.


    Note - You cannot use the shutdown command to place the zone in single-user state at this time. See 6214427 for more information.


Using shutdown in Non-Interactive Mode

You cannot use the shutdown command in non-interactive mode to place the zone in single-user state at this time. See 6214427 for more information.

You can use an interactive login as described in How to Use Interactive Mode to Access a Zone.