Re: [zones-discuss] installing packages in global zone

2010-10-17 Thread Mike Gerdts
On Sat, Oct 16, 2010 at 6:54 PM, Pete Chan super_...@hotmail.com wrote:
 Mike thanks for the quick response.

 It seems that it may be sufficient to add a read-only mount to each
 zone as you recommended. I'll give that a try.

 However, now I am curious to know why I dont get a value (true or false)
 when I run  #pkgparam SOMEpackage. When I installed SOMEpackage in the
 Global i did NOT use the -G option. Based on what i read and your
 explanation below not having the -G option will automatically install
 SOMEpackage on all the non-global zones. Are you saying that the developer
 of SOMEpackage can opt out of entering true or false for
 SUNW_PKG_THISZONE? In which case that means that the default may be true
 (even though its not explicit) and thats why SOMEpackage is not propagating
 to the non-global zones? I apreciate the help and explanations Mike.

By default packages will install into all non-global zones that are
that native brand.  That is, if SUNW_PKG_THISZONE is not set to true,
it should install into all native brand (or unbranded, depending on
vintage of the OS) zones.

Expanding on the assumptions I made earlier... uname -sr in the
global zone should say SunOS 5.10.  It should say the same in each
non-global zone.  If you are using Solaris 8/9 Containers then the
brand is not native, and the packages will not propagate.  Likewise,
on OpenSolaris (SunOS 5.11 after SXCE) any non-global zone you have is
a non-native (e.g. ipkg, solaris10) branded zone.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] installing packages in global zone

2010-10-16 Thread Pete Chan

Mike thanks for the quick response.
 
It seems that it may be sufficient to add a read-only mount to each zone as you 
recommended. I'll give that a try.
 
However, now I am curious to know why I dont get a value (true or false) when I 
run  #pkgparam SOMEpackage. When I installed SOMEpackage in the Global i did 
NOT use the -G option. Based on what i read and your explanation below not 
having the -G option will automatically install SOMEpackage on all the 
non-global zones. Are you saying that the developer of SOMEpackage can opt out 
of entering true or false for SUNW_PKG_THISZONE? In which case that means 
that the default may be true (even though its not explicit) and thats why 
SOMEpackage is not propagating to the non-global zones? I apreciate the help 
and explanations Mike.
 
p.
 
 Date: Fri, 15 Oct 2010 21:33:49 -0500
 Subject: Re: installing packages in global zone
 From: mger...@gmail.com
 To: super_...@hotmail.com
 CC: zones-discuss@opensolaris.org
 
 This is probably better suited for zones-discuss than
 security-discuss. I've set the reply accordingly.
 
 On Fri, Oct 15, 2010 at 3:02 PM, Pete Chan super_...@hotmail.com wrote:
  hello,
 
  i am trying to figure out how to install a package in a global zone under
  /opt and be able to access the binaries of the package from a non-global
  zone.
  in other words the users of these package do not have access to the global
  zone and only have access to the non-global. How do I propagate this
  installation to the non-global zone?
 
 The answer varies depending on whether you are running Solaris 10 or
 OpenSolaris. I'll assume you are running Solaris 10 in my answer.
 
 When you run a command like
 
 pkgadd -d . SOMEpackage
 
 in the global zone, the default behavior is that the package will
 automatically be installed in all non-global zones as well. This
 behavior can be changed via the -G option to pkgadd, which will cause
 it to install only in the global zone. If the developer that created
 SOMEpackage put SUNW_PKG_THIS_ZONE=true in the pkginfo file
 (SOMEpackage/pkginfo), then it will not automatically be installed in
 all of the non-global zones. In such a case, you will need to install
 the package in each zone individually. It may be sufficient to add a
 read-only lofs mount to each zone instead of installing it in all
 zones. That is,
 
 zonecfg -z zone1
 add fs
 set special=/opt/SOMEpackage
 set dir=/opt/SOMEpackage
 set options=ro
 end
 verify
 commit
 exit
 
 Then reboot the zone or issue the appropriate mkdir and mount -F lofs
 -o ro ... commands to create the lofs mounts without rebooting.
 
 If you are on OpenSolaris (with the pkg command, not ancient SXCE
 which will act like Solaris 10) you will need to install the software
 in all zones that require it. The new way of doing things breaks the
 strong ties between software selection in the global zone and all
 non-global zones.
 
 -- 
 Mike Gerdts
 http://mgerdts.blogspot.com/
  ___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] installing packages in global zone

2010-10-15 Thread Mike Gerdts
This is probably better suited for zones-discuss than
security-discuss.  I've set the reply accordingly.

On Fri, Oct 15, 2010 at 3:02 PM, Pete Chan super_...@hotmail.com wrote:
 hello,

 i am trying to figure out how to install a package in a global zone under
 /opt and be able to access the binaries of the package from a non-global
 zone.
 in other words the users of these package do not have access to the global
 zone and only have access to the non-global. How do I propagate this
 installation to the non-global zone?

The answer varies depending on whether you are running Solaris 10 or
OpenSolaris.  I'll assume you are running Solaris 10 in my answer.

When you run a command like

pkgadd -d . SOMEpackage

in the global zone, the default behavior is that the package will
automatically be installed in all non-global zones as well.  This
behavior can be changed via the -G option to pkgadd, which will cause
it to install only in the global zone.  If the developer that created
SOMEpackage put SUNW_PKG_THIS_ZONE=true in the pkginfo file
(SOMEpackage/pkginfo), then it will not automatically be installed in
all of the non-global zones.  In such a case, you will need to install
the package in each zone individually.  It may be sufficient to add a
read-only lofs mount to each zone instead of installing it in all
zones.  That is,

zonecfg -z zone1
add fs
set special=/opt/SOMEpackage
set dir=/opt/SOMEpackage
set options=ro
end
verify
commit
exit

Then reboot the zone or issue the appropriate mkdir and mount -F lofs
-o ro ... commands to create the lofs mounts without rebooting.

If you are on OpenSolaris (with the pkg command, not ancient SXCE
which will act like Solaris 10) you will need to install the software
in all zones that require it.  The new way of doing things breaks the
strong ties between software selection in the global zone and all
non-global zones.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] Installing packages

2009-11-11 Thread deniz rende
Hi,
I was wondering if it is possible install packages from sun, say secure global 
desktop into opensolaris 2009.6 zone with pkg? Or do I need to install the 
provided package by sun on global-zone by using pkgadd?

I created a non-global zone to install the package and svr4 pkgadd seems to be 
missing. So in this case, I decided to use pkg install but did not seem to be 
going anywhere.

Any ideas?
Thanks...
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Installing packages

2009-11-11 Thread Bernd Schemmer

Hi,

Not tested but

pkg install SUNWpkgcmds

to install the svr4 package tools and then pkgadd for the svr4 packages 
inside the zone should do the trick


regards

Bernd


deniz rende wrote:

Hi,
I was wondering if it is possible install packages from sun, say secure global 
desktop into opensolaris 2009.6 zone with pkg? Or do I need to install the 
provided package by sun on global-zone by using pkgadd?

I created a non-global zone to install the package and svr4 pkgadd seems to be missing. 
So in this case, I decided to use pkg install but did not seem to be going 
anywhere.

Any ideas?
Thanks...
  



--
Bernd Schemmer, Frankfurt am Main, Germany
http://bnsmb.de/

M s temprano que tarde el mundo cambiar .
   Fidel Castro

___
zones-discuss mailing list
zones-discuss@opensolaris.org