Solarum – Information For Everyone

Jul

Solaris 10 Zone Creation Script

  Print Print

One of the best things about Solaris 10, from Sun Microsystems, is Zones or Containers.  They allow you to create virtual OS installs on the same box, yet have them quite separate from each other.  Processes are segregated, resources can be capped, the options go on and on.  Here I have a PERL script (have I mentioned that I love PERL lately?), that makes the creation of zones a snap.  The only thing to edit in the script is at the top, where you set your zone base directory, as in the directory that will hold the zones your create.  I am a simple man, and usually just stick them all in /data/zones, with /data usually being a separate mount point and thus separate I/O path.

The script has been posted in our forums, head on over and take a look!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Technorati
  • Slashdot
  • Fark
  • blogmarks
  • email
  • Facebook
  • LinkedIn
  • Live
  • TwitThis
  1. Linux running in Solaris | Solarum - Information For Everyone Said,

    [...] wonderful technology.  Check out the article at Solaris Central.  In case anyone missed it, I posted a script a while back for creating zones in Solaris 10.  I’ll have to modify it (if need be) when the [...]

  2. Bejiita Said,

    one thing id like to note. add near the beginning. What is the base dir of all zones and grab that as the basedir variable. that way it reduces the number of queries and keep in mind everyones env and dir structure are different

  3. Laz Said,

    Very good point, I will go back and take another look. Thanks.

Add A Comment

Pages

Articles