Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks for this. I'll test it out. I thought it would be something like that. Strange that this is needed. Surely I cannot be the only one trying to script zone creation? Commented Aug 11, 2014 at 4:59
  • I've scripted zone creation before, but always got stuck by needing to do a zlogin -C to get a zone console so that I can configure the name service, root password etc which I have done manually before running the script on the zone locally that configures users etc. I'm assuming that your -c paramter avoids the need for this by using a template which will be helpful for me to know in the future. I don't see the -c option in the Solaris 10 version of zoneadm which is all I have access to at the moment. Commented Aug 11, 2014 at 5:10
  • Yep. That's correct. What you should know is that -c is a brand specific option, so you cannot find it in the man page for zoneadm, rather in the man page for solaris(5). Still, as you say, this is Solaris 11. (you really should be upgrading, the advantages are many) Commented Aug 11, 2014 at 5:50
  • Oh, I know. My previous role (where I write the scripts) was a Solaris 11 environment. My current role which ends in two weeks is Solaris 10. I know which I prefer :-) Commented Aug 11, 2014 at 5:52
  • Tested it. Works!. I'll mark this as the answer .. although I'm still open to other suggestions. :-) Commented Aug 11, 2014 at 12:46