On Thu, Jan 21, 2010 at 09:42:55AM -0600, Shawn Walker wrote:
>  On 01/20/10 02:09 PM, Will Fiveash wrote:
> > On Tue, Jan 19, 2010 at 05:43:02PM -0600, Shawn Walker wrote:
> >>   On 01/19/10 03:23 PM, Will Fiveash wrote:
> >>> I've installed this package in my global zone (running snv_129):
> >>>
> >>> pkg://contrib.opensolaris.org/opensc at 0.11.6,5.11-0.101:20081209T222607Z
> >>>
> >>> I want the same package installed in a non-global zone that does not
> >>> have external network access.  I tried:
> >>>
> >>> # zoneadm -z zone1 detach
> >>> # zoneadm -z zone1 attach -u
> >>> Log File: /var/tmp/kdc-clone.attach_log.QWay_f
> >>> Attaching...
> >>>
> >>>          Global zone version: entire at 0.5.11,5.11-0.129:20091205T134302Z
> >>>      Non-Global zone version: entire at 0.5.11,5.11-0.129:20091205T134302Z
> >>>                   Evaluation: Packages in kdc-clone are in sync with 
> >>> global
> >>> zone.
> >>> Attach complete.
> >>>
> >>> But pkg list in zone1 does not show the opensc package installed.  How
> >>> do I get this installed?
> >>
> >>   The text here is misleading I believe.  I don't think that its intended 
> >> that
> >>   it synchronises all packages between your global and non-global zones.
> >>   Instead, I believe it is simply keeping the base OS constraints in-sync
> >>   (based on the "entire" incorporation package).
> >>
> >>   If you want to install packages in that zone, then login to the zone and 
> >> use
> >>   pkg install<pkg_name>.
> >
> > Just tried that, here's what I see:
> >
> > # pkg install opensc
> > /usr/lib/python2.6/vendor-packages/pkg/client/api_errors.py:295: 
> > DeprecationWarning: BaseException.message has been deprecated as of Python 
> > 2.6
> >    self.message = message
> > pkg: 0/1 catalogs successfully updated:
> >
> > Unable to contact valid package server
> > Encountered the following error(s):
> > Unable to contact any configured publishers. This is likely a network 
> > configuration problem.
> > /usr/bin/pkg:2014: DeprecationWarning: BaseException.message has been 
> > deprecated as of Python 2.6
> >    if cre.message:
> >
> > Note, the non-global zones do not have SWAN access.  What does one do in
> > this case?
> 
>  You can use the method Joanmarie mentioned, which as far as I know, should 
>  work just fine.
> 
>  The zones implementation in pkg(5) is not yet complete, so unfortunately, 
>  there are rough spots like this one.

This is what worked for me (run in the global zone with zone1 booted):

# pkg -R /zones/zone1/root set-publisher -g http://pkg.opensolaris.org/contrib/ 
contrib.opensolaris.org
# pkg -R /zones/zone1/root install pkg://contrib.opensolaris.org/opensc 

Thanks everyone for the help.

-- 
Will Fiveash
Sun Microsystems Inc.
http://opensolaris.org/os/project/kerberos/
Sent from mutt, a sweet ASCII MUA

Reply via email to