<appendix id="aptxconf-1"><title>Using CDE Actions
to Install Zones in Trusted Extensions</title><highlights><para>This appendix covers how to configure labeled zones in Solaris Trusted Extensions by
using Trusted CDE actions. If you are running the Solaris&nbsp;10&nbsp;11/06 release without patches,
or if you are familiar with these actions, use the Trusted CDE actions. To use
the <command>txzonemgr</command> script, see <olink targetptr="txconf-20" remap="internal">Creating
Labeled Zones</olink>.</para><itemizedlist remap="jumplist"><listitem><para><olink targetptr="aptxconf-62" remap="internal">Associating Network Interfaces
With Zones by Using CDE Actions (Task Map)</olink></para>
</listitem><listitem><para><olink targetptr="aptxconf-40" remap="internal">Preparing to Create Zones by
Using CDE Actions (Task Map)</olink></para>
</listitem><listitem><para><olink targetptr="aptxconf-20" remap="internal">Creating Labeled Zones by Using
CDE Actions (Task Map)</olink></para>
</listitem>
</itemizedlist>
</highlights><sect1 id="aptxconf-62"><title>Associating Network Interfaces With Zones by
Using CDE Actions (Task Map)</title><para>Do only one of the following tasks. For the trade-offs, see <olink targetptr="ovw-12" remap="internal">Planning for Multilevel Access</olink>.</para><informaltable frame="topbot" pgwide="1"><tgroup cols="3" colsep="1" rowsep="1"><colspec colname="colspec2" colwidth="24.74*"/><colspec colname="colspec1" colwidth="36.93*"/><colspec colname="colspec0" colwidth="37.32*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Description</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry><para>Share a logical interface.</para>
</entry><entry><para>Map the global zone to one IP address, and map the labeled zones to
a different IP address.</para>
</entry><entry><para><olink targetptr="aptxconf-57" remap="internal">Specify Two IP Addresses for the System
by Using a CDE Action</olink></para>
</entry>
</row><row><entry><para>Share a physical interface.</para>
</entry><entry><para>Map all zones to one IP address.</para>
</entry><entry><para><olink targetptr="aptxconf-32" remap="internal">Specify One IP Address for the System
by Using a CDE Action</olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable><task id="aptxconf-57"><title>Specify Two IP Addresses for the System by Using
a CDE Action</title><tasksummary><para>In this configuration, the host's address applies only to the global
zone. Labeled zones share a second IP address with the global zone.</para>
</tasksummary><taskprerequisites><para>You are superuser in the global zone. The system has already been assigned
two IP addresses. You are in a Trusted CDE workspace.</para>
</taskprerequisites><procedure><step><para>Navigate to the Trusted_Extensions folder.</para><substeps><step><para>Click mouse button 3 on the background.</para>
</step><step><para>From the Workspace menu, choose Applications &rarr; Application
Manager.</para>
</step><step><para>Double-click the Trusted_Extensions folder icon.</para><para>This
folder contains actions that set up interfaces, LDAP clients, and labeled
zones.</para>
</step>
</substeps>
</step><step><para>Double-click the Share Logical Interface
action and answer the prompts.</para><note><para>The system must already have been assigned two IP addresses. For
this action, provide the second address and a host name for that address.
The second address is the shared address.</para>
</note><screen>Hostname:   <lineannotation>Type the name for your labeled zones interface</lineannotation>
IP Address: <lineannotation>Type the IP address for the interface</lineannotation></screen><para>This action configures a host with more than one IP address. The IP
address for the global zone is the name of the host. The IP address for a
labeled zone has a different host name. In addition, the IP address for the
labeled zones is shared with the global zone. When this configuration is used,
labeled zones are able to reach a network printer.</para><tip><para>Use a standard naming convention for labeled zones. For example,
add <literal>-zones</literal> to the host name.</para>
</tip>
</step><step performance="optional"><para>In a terminal window, verify the results
of the action.</para><screen># <userinput>ifconfig -a</userinput></screen><para>For example, the following output shows a shared logical interface, <literal>hme0:3</literal> on network interface <literal>192.168.0.12</literal> for
the labeled zones. The <literal>hme0</literal> interface is the unique IP
address of the global zone.</para><screen> lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
         inet 127.0.0.1 netmask ff000000 
         ether 0:0:00:00:00:0
 hme0: flags=1000843&lt;BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         inet 192.168.0.11 netmask fffffe00 broadcast 192.168.0.255
 hme0:3 flags=1000843&lt;BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
         all-zones
         inet 192.168.0.12 netmask fffffe00 broadcast 192.168.0.255</screen>
</step>
</procedure>
</task><task id="aptxconf-32"><title>Specify One IP Address for the System by Using
a CDE Action</title><tasksummary><para>In this configuration, the host's address applies to all the zones,
including the labeled zones.</para>
</tasksummary><taskprerequisites><para>You are superuser in the global zone. You are in a Trusted CDE workspace.</para>
</taskprerequisites><procedure><step><para>Navigate to the Trusted_Extensions folder.</para><substeps><step><para>Click mouse button 3 on the background.</para>
</step><step><para>From the Workspace menu, choose Applications &rarr; Application
Manager.</para>
</step><step><para>Double-click the Trusted_Extensions folder icon.</para><para>This
folder contains actions that set up interfaces, LDAP clients, and labeled
zones.</para>
</step>
</substeps>
</step><step><para>Double-click the Share Physical
Interface action.</para><para>This action configures a host with one IP address.
The global zone does not have a unique address. This system cannot be used
as a multilevel print server or NFS server.</para>
</step><step performance="optional"><para>In a terminal window, verify the results
of the action.</para><screen># <userinput>ifconfig -a</userinput></screen><para>The Share Physical Interface action configures all zones to have logical
NICs. These logical NICs share a single physical NIC in the global zone.</para><para>For example, the following output shows the shared physical interface, <literal>hme0</literal> on network interface <literal>192.168.0.11</literal> for all
the zones.</para><screen>lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
       inet 127.0.0.1 netmask ff000000
       ether 0:0:00:00:00:0
hme0: flags=1000843&lt;BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
       all-zones
       inet 192.168.0.11 netmask fffffe00 broadcast 192.168.0.255</screen>
</step>
</procedure>
</task>
</sect1><sect1 id="aptxconf-40"><title>Preparing to Create Zones by Using CDE Actions
(Task Map)</title><para>The following task map describes the tasks for preparing the system
for zone creation. For a discussion of zone creation methods, see <olink targetptr="ovw-11" remap="internal">Planning for Zones in Trusted Extensions</olink>.</para><informaltable frame="topbot" pgwide="1"><tgroup cols="3" colsep="1" rowsep="1"><colspec colname="colspec2" colwidth="25.99*"/><colspec colname="colspec1" colwidth="40.25*"/><colspec colname="colspec0" colwidth="32.76*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Description</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry><para>1. Name each zone, and link the zone name to the zone label.</para>
</entry><entry><para>Name each labeled zone with a version of its label, then associate the
name with the label in the Solaris Management Console.</para>
</entry><entry><para><olink targetptr="aptxconf-11" remap="internal">Specify Zone Names and Zone Labels by
Using a CDE Action</olink></para>
</entry>
</row><row><entry><para>2. Configure the network before creating the zones.</para>
</entry><entry><para>Assign a label to the network interface on every host, and do further
configuration.</para>
</entry><entry><para><olink targetdoc="trsoladmproc" targetptr="managetnet-3" remap="external"><citetitle remap="section">Configuring Trusted Network Databases (Task Map)</citetitle> in <citetitle remap="book">Solaris Trusted Extensions Administrator&rsquo;s Procedures</citetitle></olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable><task id="aptxconf-11"><title>Specify Zone Names and Zone Labels by Using
a CDE Action</title><tasksummary><para>You do not have to create a zone for every label in your <filename>label_encodings</filename> file, but you can. The <filename>tnzonecfg</filename> database
enumerates the labels that can have zones created for them on this system.</para>
</tasksummary><procedure><step><para>Navigate to the Trusted_Extensions folder.</para><substeps><step><para>Click mouse button 3 on the background.</para>
</step><step><para>From the Workspace menu, choose Applications &rarr; Application
Manager.</para>
</step><step><para>Double-click the Trusted_Extensions folder icon.</para>
</step>
</substeps>
</step><step><para>For every zone, name the zone. </para><substeps><step><para>Double-click the Configure Zone action.</para>
</step><step><para>At the prompt, provide a name.</para><tip><para>Give the zone a similar name to the zone's label. For example,
the name of a zone whose label is <filename>CONFIDENTIAL : INTERNAL USE ONLY</filename> would
be <filename>internal</filename>.</para>
</tip>
</step>
</substeps>
</step><step><para>Repeat the Configure Zone action for every zone.</para><para>For
example, the default <filename>label_encodings</filename> file contains the
following labels:</para><screen>PUBLIC
CONFIDENTIAL: INTERNAL USE ONLY
CONFIDENTIAL: NEED TO KNOW
CONFIDENTIAL: RESTRICTED
SANDBOX: PLAYGROUND
MAX LABEL</screen><itemizedlist><para>Although you could run the Configure Zone action six times to create
one zone per label, consider creating the following zones:</para><listitem><para>On a system for all users, create one zone for the <constant>PUBLIC</constant> label and three zones for the <constant>CONFIDENTIAL</constant> labels.</para>
</listitem><listitem><para>On a system for developers, create a zone for the <constant>SANDBOX:
PLAYGROUND</constant> label. Because <constant>SANDBOX: PLAYGROUND</constant> is
defined as a disjoint label for developers, only systems that developers use
need a zone for this label.</para>
</listitem><listitem><para>Do not create a zone for the <constant>MAX LABEL</constant> label,
which is defined to be a clearance.</para>
</listitem>
</itemizedlist>
</step><step id="aptxconf-smc-1"><para>Open the Trusted Network Zones tool.</para><para>The tools in the Solaris Management Console  are designed to prevent user error. These tools
check for syntax errors and automatically run commands in the correct order
to update databases.</para><substeps><step><para>Start the Solaris Management Console.</para><screen># <userinput>/usr/sbin/smc &amp;</userinput></screen>
</step><step><para>Open the Trusted Extensions toolbox for the local system.</para><substeps><step><para>Choose Console &rarr; Open Toolbox.</para>
</step><step><para>Select the toolbox that is named This Computer (<replaceable>this-host</replaceable>: <literal>Scope=Files, Policy=TSOL</literal>).</para>
</step><step><para>Click Open.</para>
</step>
</substeps>
</step><step><para>Under System Configuration, navigate to Computers and Networks.</para><para>Provide a password when prompted.</para>
</step><step><para>Double-click the Trusted Network Zones tool.</para>
</step>
</substeps>
</step><step id="aptxconf-zone-label-1"><para>For each zone, associate
the appropriate label with a zone name.</para><substeps><step><para>Choose Action  &rarr; Add Zone Configuration.</para><para>The
dialog box displays the name of a zone that does not have an assigned label.</para>
</step><step><para>Look at the zone name, then click Edit.</para>
</step><step><para>In the Label Builder, click the appropriate label for the zone
name.</para><para>If you click the wrong label, click the label again to deselect
it, then click the correct label.</para>
</step><step><para>Save the assignment.</para><para>Click OK in the Label Builder,
then click OK in the Trusted Network Zones Properties dialog box.</para>
</step>
</substeps><para>You are finished when every zone that you want is listed in the panel,
or the Add Zone Configuration menu item opens a dialog box that does not have
a value for Zone Name.</para>
</step>
</procedure><taskrelated role="troubleshooting"><itemizedlist><para>If the
Trusted Network Zones Properties dialog box does not prompt for a zone that
you want to create, either the zone network configuration file does not exist,
or you have already created the file.</para><listitem><para>Check that the zone network configuration file does not already
exist. Look in the panel for the name.</para>
</listitem><listitem><para>If the file does not exist, run the Configure Zone action
to supply the zone name. Then, repeat <olink targetptr="aptxconf-zone-label-1" remap="internal">Step&nbsp;5</olink> to create the file.</para>
</listitem>
</itemizedlist>
</taskrelated>
</task>
</sect1><sect1 id="aptxconf-20"><title>Creating Labeled Zones by Using CDE Actions
(Task Map)</title><para>One zone can be created for every
entry in the Trusted Network Zone Configuration database. You made the entries
in <olink targetptr="aptxconf-11" remap="internal">Specify Zone Names and Zone Labels by Using
a CDE Action</olink>, by running the Configure Zone action.</para><itemizedlist><para>The Trusted_Extensions folder in the Application Manager contains the
following actions that create labeled zones:</para><listitem><para>Configure Zone &ndash; Creates a zone configuration file for
every zone name</para>
</listitem><listitem><para>Install Zone &ndash; Adds the correct packages and file systems
to the zone</para>
</listitem><listitem><para>Zone Terminal Console &ndash; Provides a window for viewing
events in a zone</para>
</listitem><listitem><para>Initialize Zone for LDAP &ndash; Makes the zone an LDAP client
and prepares the zone for booting</para>
</listitem><listitem><para>Start Zone &ndash; Boots the zone, then starts all the service
management framework (SMF) services</para>
</listitem><listitem><para>Shut Down Zone &ndash; Changes the state of the zone from
Started to Halted</para>
</listitem>
</itemizedlist><para>The tasks are completed in the following order.</para><informaltable frame="topbot" pgwide="1"><tgroup cols="3" colsep="1" rowsep="1"><colspec colname="colspec2" colwidth="21.52*"/><colspec colname="colspec1" colwidth="38.69*"/><colspec colname="colspec0" colwidth="38.78*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Description</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry><para>1. Install and boot one zone.</para>
</entry><entry><para>Create the first labeled zone. Install the packages, make the zone an
LDAP client, and start all services in the zone.</para>
</entry><entry><para><olink targetptr="aptxconf-24" remap="internal">Install, Initialize, and Boot a Labeled
Zone by Using CDE Actions</olink></para>
</entry>
</row><row><entry><para>2. Customize the zone.</para>
</entry><entry><para>Remove unwanted services. If you plan to copy or clone the zone, remove
zone-specific information.</para>
</entry><entry><para><olink targetptr="aptxconf-48" remap="internal">Customize a Booted Zone in Trusted Extensions</olink></para>
</entry>
</row><row><entry morerows="3" rowsep="1"><para>3. Create the other zones.</para>
</entry><entry namest="colspec1" nameend="colspec0" colsep="1"><para>Use one of the following methods to create the other zones. You chose
the method in <olink targetptr="startinst-13" remap="internal">Make System and Security Decisions
Before Installing Trusted Extensions</olink>.</para>
</entry>
</row><row><entry><para>Create each zone from scratch.</para>
</entry><entry><para><olink targetptr="aptxconf-24" remap="internal">Install, Initialize, and Boot a Labeled
Zone by Using CDE Actions</olink></para><para><olink targetptr="aptxconf-48" remap="internal">Customize a Booted Zone in Trusted Extensions</olink></para>
</entry>
</row><row><entry><para>Copy the first labeled zone to another label. Repeat for all zones.</para>
</entry><entry><para><olink targetptr="aptxconf-54" remap="internal">Use the Copy Zone Method in Trusted Extensions</olink></para>
</entry>
</row><row><entry><para>Use a ZFS snapshot to clone the other zones from the first labeled zone.</para>
</entry><entry><para><olink targetptr="aptxconf-53" remap="internal">Use the Clone Zone Method in Trusted
Extensions</olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable><task id="aptxconf-24"><title>Install, Initialize, and Boot a Labeled Zone
by Using CDE Actions</title><tasksummary><para>Because zone creation involves copying an entire operating system, the
process is time-consuming. A faster process is to create one zone, make the
zone a template for other zones, and then copy or clone that zone template.</para>
</tasksummary><taskprerequisites><para>You have completed <olink targetptr="aptxconf-11" remap="internal">Specify Zone Names
and Zone Labels by Using a CDE Action</olink>.</para><para>If you are using LDAP as your naming service, you have completed <olink targetptr="txldap-8" remap="internal">Make the Global Zone an LDAP Client in Trusted Extensions</olink>.</para><para>If you are going to clone zones, you have completed <olink targetptr="txconf-42" remap="internal">Create ZFS Pool for Cloning Zones</olink>. In the following
procedure, you install the zone that you prepared.</para>
</taskprerequisites><procedure><step id="aptxconf-step-install1"><para>In the Trusted_Extensions folder, double-click
the Install Zone action.</para><substeps><step><para>Type the name of the zone that you are installing.</para><para>This
action creates a labeled virtual operating system. This step takes some time
to finish. Do not do other tasks on the system while Install Zone is running.</para><screen># <replaceable>zone-name</replaceable>: Install Zone
Preparing to install zone &lt;<replaceable>zone-name</replaceable>>
Creating list of files to copy from the global zone
Copying &lt;<replaceable>total</replaceable>> files to the zone
Initializing zone product registry
Determining zone package initialization order.
Preparing to initialize &lt;<replaceable>subtotal</replaceable>> packages on the zone.
Initializing package &lt;<replaceable>number</replaceable>> of &lt;<replaceable>subtotal</replaceable>>: percent complete: <replaceable>percent</replaceable>

Initialized &lt;<replaceable>subtotal</replaceable>> packages on zone.
Zone &lt;<replaceable>zone-name</replaceable>> is initialized.
The file /zone/internal/root/var/sadm/system/logs/install_log 
contains a log of the zone installation.

*** Select Close or Exit from the window menu to close this window ***</screen>
</step><step><para>Open a console to monitor events in the installed zone.</para><substeps><step><para>Double-click
the Zone Terminal Console action.</para>
</step><step><para>Type the name of the zone that was just installed.</para>
</step>
</substeps>
</step>
</substeps>
</step><step><para>Initialize the zone.</para><stepalternatives><step><para>If you are using LDAP, double-click the Initialize Zone for LDAP
action.</para><screen>Zone name:              <lineannotation>Type the name of the installed zone</lineannotation>
Host name for the zone: <lineannotation>Type the host name for this zone</lineannotation></screen><para>For example, on a system with a shared logical interface, the values
would be similar to the following:</para><screen>Zone name:              <userinput>public</userinput>
Host name for the zone: <userinput>machine1-zones</userinput></screen><para>This action makes the labeled zone an LDAP client of the same LDAP server
that serves the global zone. The action is complete when the following information
appears:</para><screen><replaceable>zone-name</replaceable> zone will be  LDAP client of <replaceable>IP-address</replaceable>
<replaceable>zone-name</replaceable> is ready for booting
Zone label is <replaceable>LABEL</replaceable>

*** Select Close or Exit from the window menu to close this window ***</screen>
</step><step><para>If you are not using LDAP, initialize the zone manually by doing
one of the following steps.</para><para>The manual procedure in Trusted Extensions is
identical to the procedure for the Solaris OS. If the system has at least one <literal>all-zones</literal> interface, then the hostname for all the zones must match
the global zone's hostname. In general, the answers to the questions during
zone initialization are the same as the answers for the global zone.</para><para>Supply the host information by doing one of the following:</para><stepalternatives><step><para>After you start the zone in <olink targetptr="aptxconf-step-start1" remap="internal">Step&nbsp;3</olink>, answer the questions in the Zone Terminal Console about system characteristics.</para><para>Your answers are used to populate the <filename>sysidcfg</filename> file
in the zone.</para>
</step><step><para>Place a custom <filename>sysidcfg</filename> file in the zone's <filename class="directory">/etc</filename> directory before booting the zone in <olink targetptr="aptxconf-step-start1" remap="internal">Step&nbsp;3</olink>.</para>
</step>
</stepalternatives>
</step>
</stepalternatives>
</step><step id="aptxconf-step-start1"><para>Double-click the Start Zone
action.</para><para>Answer the prompt.</para><screen>Zone name: <lineannotation>Type the name of the zone that you are configuring</lineannotation></screen><para>This action boots the zone, then starts all the services that run in
the zone. For details about the services, see the <olink targetdoc="refman5" targetptr="smf-5" remap="external"><citerefentry><refentrytitle>smf</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink> man page.</para><para>The Zone Terminal Console tracks the progress of booting the zone.
Messages that are similar to the following appear in the console:</para><screen>[Connected to zone 'public' console]

[NOTICE: Zone booting up]
...
Hostname: <replaceable>zonename</replaceable>
Loading smf(5) service descriptions: <replaceable>number</replaceable>/<replaceable>total</replaceable>
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair

rebooting system due to change(s) in /etc/default/init

[NOTICE: Zone rebooting]</screen>
</step><step><para>Monitor the console output.</para><para>Before continuing with <olink targetptr="aptxconf-48" remap="internal">Customize a Booted Zone in Trusted Extensions</olink>,
make sure that the zone has rebooted. The following console login prompt indicates
that the zone has rebooted.</para><screen><replaceable>hostname</replaceable> console login:</screen>
</step>
</procedure><taskrelated role="troubleshooting"><para>For Install Zone: If warnings that are similar to
the following are displayed: <literal>Installation of these packages generated
errors: SUNW</literal><replaceable>pkgname</replaceable>, read the install
log and finish installing the packages.</para>
</taskrelated>
</task><task id="aptxconf-48"><title>Customize a Booted Zone in Trusted Extensions</title><tasksummary><para>If you are going to clone zones, this procedure configures a zone to
be a template for other zones. In addition, this procedure configures the
zone for use.</para>
</tasksummary><procedure><step><para>Ensure that the zone has been completely started.</para><substeps><step><para>In the <replaceable>zone-name</replaceable>: Zone Terminal Console,
log in as root.</para><screen><replaceable>hostname</replaceable> console login: <userinput>root</userinput>
Password: <lineannotation>Type root password</lineannotation></screen>
</step><step><para>Check that the zone is running.</para><para>The status <literal>running</literal> indicates that at least one process is running in the zone.</para><screen># <userinput>zoneadm list -v</userinput>
ID NAME        STATUS         PATH
 2 public      running        /</screen>
</step><step><para>Check that the zone can communicate with the global zone.</para><para>The X server runs in the global zone. Each labeled zone must be able
to connect with the global zone to use this service. Therefore, zone networking
must work before the zone can be used. For assistance, see <olink targetptr="labeledzonecannotaccessxserver" remap="internal">Labeled Zone Is Unable to Access
the X Server</olink>.</para>
</step>
</substeps>
</step><step><para>In the Zone Terminal Console, disable services that are unnecessary
in a labeled zone.</para><para>If you are copying or cloning this zone, the
services that you disable are disabled in the new zones. The services that
are online on your system depend on the service manifest for the zone. Use
the <literal>netservices limited</literal> command to turn off services that
labeled zones do not need.</para><substeps><step><para>Remove many unnecessary services.</para><screen># <userinput>netservices limited</userinput></screen>
</step><step><para>List the remaining services.</para><screen># <userinput>svcs</userinput>
...
STATE        STIME      FMRI
online       13:05:00   svc:/application/graphical-login/cde-login:default
...</screen>
</step><step><para>Disable graphical login.</para><screen># <userinput>svcadm disable svc:/application/graphical-login/cde-login</userinput>
# <userinput>svcs cde-login</userinput>
STATE        STIME      FMRI
disabled     13:06:22   svc:/application/graphical-login/cde-login:default</screen>
</step>
</substeps><para>For information about the service management framework, see the <olink targetdoc="refman5" targetptr="smf-5" remap="external"><citerefentry><refentrytitle>smf</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink> man page.</para>
</step><step><para>Shut down the zone.</para><para>Choose one of the following ways:</para><stepalternatives><step><para>Run the Shut Down Zone action.</para><para>Provide the name of
the zone.</para>
</step><step><para>In a terminal window in the global zone, use the <command>zlogin</command> command.</para><screen># zlogin <replaceable>zone-name</replaceable> init 0</screen><para>For more information, see the <olink targetdoc="refman1" targetptr="zlogin-1" remap="external"><citerefentry><refentrytitle>zlogin</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink> man page.</para>
</step>
</stepalternatives>
</step><step><para>Verify that the zone is shut down.</para><para>In the <replaceable>zone-name</replaceable>: Zone Terminal Console, the following message indicates that
the zone is shut down:</para><screen>[ NOTICE: Zone halted]</screen><para>If you are not copying or cloning this zone, create the remaining zones
in the way that you created this first zone.</para>
</step><step><para>If you are using this zone as a template for other zones, do the
following:</para><substeps><step><para>Remove the <filename>auto_home_</filename><replaceable>zone-name</replaceable> file.</para><para>In a terminal window in the global zone, remove this file from
the <replaceable>zone-name</replaceable> zone.</para><screen>cd /zone/<replaceable>zone-name</replaceable>/root/etc
# ls auto_home*
auto_home  auto_home_<replaceable>zone-name</replaceable>
# rm auto_home_<replaceable>zone-name</replaceable></screen><para>For example, if the <literal>public</literal> zone were the basis for
cloning other zones, remove its <filename>auto_home</filename> file:</para><screen># <userinput>cd /zone/public/root/etc</userinput>
# <userinput>rm auto_home_public</userinput></screen>
</step>
</substeps>
</step>
</procedure><taskrelated role="additional-action"><itemizedlist><listitem><para>If you are copying a zone, go to <olink targetptr="aptxconf-54" remap="internal">Use
the Copy Zone Method in Trusted Extensions</olink>.</para>
</listitem><listitem><para>If you are cloning a zone, go to <olink targetptr="aptxconf-53" remap="internal">Use
the Clone Zone Method in Trusted Extensions</olink>.</para>
</listitem>
</itemizedlist>
</taskrelated>
</task><task id="aptxconf-54"><title>Use the Copy Zone Method in Trusted Extensions</title><taskprerequisites><itemizedlist><listitem><para>You have completed <olink targetptr="aptxconf-11" remap="internal">Specify
Zone Names and Zone Labels by Using a CDE Action</olink>.</para>
</listitem><listitem><para>You have customized a zone that is the template for cloning
in <olink targetptr="aptxconf-20" remap="internal">Creating Labeled Zones by Using CDE Actions
(Task Map)</olink>.</para>
</listitem><listitem><para>You are not currently running the zone that is your template
for cloning.</para>
</listitem><listitem><para>The Trusted_Extensions folder is displayed.</para>
</listitem>
</itemizedlist>
</taskprerequisites><procedure><step id="aptxconf-copyz-1"><para>For every zone that you want to create,
double-click the Copy Zone action.</para><para>Answer the prompts.</para><screen>New Zone Name:     <lineannotation>Type name of target zone</lineannotation>
From Zone Name:    <lineannotation>Type name of source zone</lineannotation></screen><caution><para>Do not perform other tasks while this task is completing.</para>
</caution>
</step><step><para>When the zones are created, check the status of every zone.</para><substeps><step><para>Double-click the Zone Terminal Console action.</para>
</step><step><para>Log in to each zone.</para>
</step><step><para>Complete <olink targetptr="txconf-74" remap="internal">Verify the Status of the
Zone</olink>.</para>
</step>
</substeps>
</step>
</procedure>
</task><task id="aptxconf-53"><title>Use the Clone Zone Method in Trusted Extensions</title><taskprerequisites><itemizedlist><listitem><para>You have completed <olink targetptr="aptxconf-11" remap="internal">Specify
Zone Names and Zone Labels by Using a CDE Action</olink>.</para>
</listitem><listitem><para>You have completed <olink targetptr="txconf-42" remap="internal">Create ZFS
Pool for Cloning Zones</olink>.</para>
</listitem><listitem><para>You have created the zone template by completing <olink targetptr="txconf-42" remap="internal">Create ZFS Pool for Cloning Zones</olink>.</para>
</listitem><listitem><para>You have customized a zone that is your template for cloning
in <olink targetptr="aptxconf-20" remap="internal">Creating Labeled Zones by Using CDE Actions
(Task Map)</olink>.</para>
</listitem><listitem><para>The zone that is your template for cloning is shut down.</para>
</listitem><listitem><para>The Trusted_Extensions folder is displayed.</para>
</listitem>
</itemizedlist>
</taskprerequisites><procedure><step><para>Create a Solaris ZFS snapshot of the zone template.</para><screen># cd /
# zfs snapshot zone/<replaceable>zone-name</replaceable>@snapshot</screen><para>You use this snapshot to clone the remaining zones. For a configured
zone that is named <literal>public</literal>, the snapshot command is the
following:</para><screen># <userinput>zfs snapshot zone/public@snapshot</userinput></screen>
</step><step id="aptxconf-clone-1"><para>For every zone that you want to create,
double-click the Clone Zone action.</para><para>Answer the prompts.</para><screen>New Zone Name:      <lineannotation>Type name of source zone</lineannotation>
ZFS Snapshot:         <lineannotation>Type name of snapshot</lineannotation></screen>
</step><step><para>Read the information in the dialog box.</para><screen>Zone label is &lt;<replaceable>LABEL</replaceable>>
<replaceable>zone-name</replaceable> is ready for booting

*** Select Close or Exit from the window menu to close this window ***</screen>
</step><step><para>For each zone, run the Start Zone action.</para><para>Start each
zone before running the action for another zone.</para>
</step><step><para>After the zones are created, check the status of every zone.</para><substeps><step><para>Double-click the Zone Terminal Console action.</para>
</step><step><para>Complete <olink targetptr="txconf-74" remap="internal">Verify the Status of the
Zone</olink>.</para>
</step>
</substeps>
</step>
</procedure>
</task>
</sect1>
</appendix>