[OmniOS-discuss] Manage SMF instances for (installed but not running) NGZ from GZ

Peter Tribble peter.tribble at gmail.com
Fri Apr 10 12:00:30 UTC 2015


Dominik,

On Fri, Apr 10, 2015 at 12:37 PM, Dominik Hassler <hasslerd at gmx.li> wrote:

> Hi,
>
> I would like to manage (i.e. add/change properties) SMF instances for
> non-global zones from the global zone.
>
> This works fine using '/usr/sbin/zlogin my-ngz /usr/sbin/svccfg...'.
> However this only works if the NGZ is running.
>
> Afaik, there is no '-z' option for svccfg (there is one for svcadm
> however...).
>
> Is it possible at all to manage SMF instances for non-global zones if the
> NGZ is not running?
>

Sure. There's no command line option for this, but if you run svccfg
interactively or with an input file of commands (via the -f option), use
the repository subcommand to tell it to use the zone's repository (ie
${ZONEROOT}/etc/svc/repository.db) rather than the default.

(Although my usual trick is to save the repository from a zone that's
configured the way I want, and drop that into a new zone as I build it.)

The other way would be to create a service profile, and then drop that into
the zone ready to be picked up when the zone boots.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20150410/48d44ead/attachment.html>


More information about the OmniOS-discuss mailing list