Go to main content

Trusted Extensions Configuration and Administration

Exit Print View

Updated: December 2017
 
 

How to Create Labeled Zones by Using the zonecfg Command

If you are not on a desktop, you must create labeled zones by using regular zone commands. If you are on a desktop, you can also use this method. The –t option specifies the brand of the zone, and the label must be explicitly set. For more information, see the brands(5) man page.

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

    For more information, see the zonecfg(1M) 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(1M) 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(1M) man page.

    # zoneadm -z public install