Go to main content

Trusted Extensions Configuration and Administration

Exit Print View

Updated: March 2019
 
 

How to Create Labeled Zones by Using the zonecfg Command

You are either running in a desktop session in the global zone or in a remote desktop session after using the –X option of ssh. Otherwise, you must create labeled zones by using regular zone commands. The –t option specifies the brand of the zone, and the label must be explicitly set. For more information, see the brands(7) man page.

  1. Run the zonecfg command to create a labeled zone.

    For more information, see the zonecfg(8) man page.

    This example creates a zone whose name is public.

    # zonecfg -z public
    Use 'create' to begin configuring a new zone.
    zonecfg:public> create -t SYStsoldef
    zonecfg:public> set zonepath=/system/zones/public
    zonecfg:public> exit
  2. Set the label by using the tncfg command.

    For more information, see the tncfg(8) man page.

    This example labels the public zone with the label public.

    # tncfg -z public set label=PUBLIC
  3. Install the zone by using the zoneadm command.

    For more information, see the zoneadm(8) man page.

    # zoneadm -z public install