Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: August 2019

How to Configure the Transformed 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 target system's zone configuration. To fully configure the zone, perform this procedure to provide additional information specific to the target system.

  1. Become a zone administrator.

    For more information, see Using Rights Profiles to Install and Manage Zones.

  2. Configure the zone from the archive.
    target$ zonecfg -z zonename
    Use 'create' to begin configuring a new zone.
    zonecfg:zonename> create -a /path/config-file.uar
    zonecfg:zonename> info
  3. Add the storage resources for the zone.

    This example command shows how to configure shared storage for the rootzpool, which is recommended when configuring zones deployed using Unified Archives. For more information, see Oracle Solaris Zones on Shared Storage.

    zonecfg:zonename> add rootzpool
    zonecfg:zonename:rootzpool> add storage iscsi://zfssa/luname.naa.600144F0DBF8AF19000052E820D60003
    zonecfg:zonename:rootzpool> end

    Do not yet exit the zonecfg utility.

  4. From the global zone of the target system, view the current link configuration to verify that it is correct.
    target$ dladm show-link
    target$ dladm show-phys
    target$ ipadm show-addr

    Note -  By default, the zonecfg template defines a 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.
  5. Commit and exit the zone configuration.
    zonecfg:zonename> commit
    zonecfg:zonename> exit

Next Steps

Go to How to Install the Transformed Zone From the Archive on the Target System.