How to setup Zoneadmin
======================

Create ZFS
----------

    zfs create rpool/zones
    zfs set mountpoint=/zones rpool/zones
    zfs set compression=on rpool/zones

(http://docs.oracle.com/cd/E19253-01/819-5461/6n7ht6qu6/index.html)

Create user
-----------

    useradd -m -d /export/home/zoneadmin -s /bin/bash zoneadmin

Add privileges to the user
--------------------------

    usermod -P'Zone Security' zoneadmin
    usermod -P'Zone Management' zoneadmin
    usermod -P'Network Management' zoneadmin
    usermod -P'Network Link Security' zoneadmin
    

Give user permissions
---------------------
to boot, stop ... any zone you want to manage through Zoneadmin

    zonecfg -z lxzone "add admin;set user=zoneadmin;set auths=login,manage,config;end"

Test it
-------

    pfexec zoneadm -z lxzone boot
    pfexec zoneadm -z lxzone shutdown

More Info
---------
http://www.solaris-training.com/sol11tips/Solaris_11_Zones_P2_properties.pdf

Additional Reading

- http://www.clausconrad.com/blog/run-a-command-in-all-non-global-solaris-zones