Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015

How to Configure the Zone on the Target System

The template zonecfg script generated by the zonep2vchk tool defines aspects of the source system's configuration that must be supported by the destination zone configuration. Additional target system dependent information must be manually provided to fully define the zone.

The configuration file is named s11-zone.config in this procedure.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Review the contents of the zonecfg script to become familiar with the source system's configuration parameters.
    target# less /net/somehost/p2v/s11-zone.config

    The initial value of zonepath in this script is based on the host name of the source system. You can change the zonepath directory if the name of the destination zone is different from the host name of the source system.

    Commented-out commands reflect parameters of the original physical system environment, including memory capacity, number of CPUs, and network card MAC addresses. These lines might be uncommented for additional control of resources in the target zone.

  3. Use the following commands in the global zone of the target system to view the current link configuration.
    target# dladm show-link
    target# dladm show-phys
    target# ipadm show-addr

    By default, the zonecfg script defines an exclusive-IP network configuration with an anet resource for every physical network interface that was configured on the source system. The target system automatically creates a VNIC for each anet resource when the zone boots. The use of VNICs make it possible for multiple zones to share the same physical network interface. The lower-link name of an anet resource is initially set to change-me by the zonecfg command. You must manually set this field to the name of one of the data links on the target system. Any link that is valid for the lower-link of a VNIC can be specified.

  4. Copy the zonecfg script to the target system.
    target# cp /net/somehost/p2v/s11-zone.config .
  5. Use a text editor such as vi to make any changes to the configuration file.
    target# vi s11-zone.config
  6. Use the zonecfg command to configure the s11-zone zone.
    target# zonecfg -z s11-zone -f s11-zone.config