Hello all,

There is a new OpenSolaris project for your enjoyment and 
contribution called the Zone Manager.  

The purpose of this project is to simplify Solaris zones creation 
and management down to a single non-interactive command line tool. 
The Zone Manager (zonemgr) should enable administrators to do 90% 
of zone creation and management.  Note however, that this project
is in NO WAY intended to replace the existing zonecfg/zoneadm 
commands but rather to supplement them.

To get a since of how this can make your zones life easier, 
consider the following four examples:

Example #1
The following command will create a non-global and non-networked
sparse zone named m1.

# zonemgr -a add -n m1 -z "/zones" -P "abc123"

Example #2
The following command will perform the details stated below.
         # zonemgr -a add -n m2 -t w -z "/zones" \
             -P "abc123" -R /root \
             -I "|hme0|24|m2host" \
             -r "/ds/bits|/bits" \
             -w "/data/ds/m2|/ds/m2" \
             -s lock -S ssh \
             -C /etc/ssh/sshd_config -C /etc/resolv.conf \
             -C /etc/nsswitch.conf

   1. Create a whole root zone named m2 in /zones/m2.
   2. Set the root password of that zone to abc123.
   3. Set the home directory of the root user of the non-global
      zone to /root.
   4. Set the IP address of the zone to, the
      netmask to, assign it to interface hme0, and
      assign it a host name of m2host.
   5. Read only mount /ds/bits from the global zone to
      /bits in the non-global zone.
   6. Read write mount /data/ds from the global zone to /ds
      in the non-global zone.
   7. Disable all un-necessary services in the non-global zone.
   8. Copy the /etc/ssh/sshd_config, /etc/resolv.conf, and
      /etc/nsswitch.conf files from the global zone to the
      non-global zone
   9. Restart the ssh service.

Example #3
The following command will add a zone named m1, download and
install mysql5 and all requisite bits from Blastwave.org,
and install all those bits in the proper order in the m1

# zonemgr -a add -n m1 -z "/zones" -P "abc123" \
   -I "|hme0|24|m1" -G "mysql5"

Example #4
The following command will halt all non-global zones but
those specified by the -n parameter and will boot any of 
the specified zones that are not currently running.

# zonemgr -a only -n "m1 m2"

There is much more that you can do with the Zone Manager.
See the documentation for more examples.

Version 1.7 is available for download now.  And hopefully 
version 1.8 will be out soon.

Please come an join us at: http://opensolaris.org/os/project/zonemgr/
and on the zones-discuss mail alias on opensolaris.org.


zones-discuss mailing list

Reply via email to