Re: [zones-discuss] definition of smf services running in a zone
On Aug 17, 2006, at 12:19 PM, Jeff Victor wrote:Jan Hendrik Mangold wrote: HelloI tried finding the solution by scanning previous posts to this group, and looking into manuals, but I haven't found the answer yet.Where do I define the services (SMF) that a) get started by default in a zone, and b) are made available to a zone? Each zone has its own SMF infrastructure and services, so you would login to the zone as root and use svcadm(1M).correct. where is it defined which services the zone has access to, though? When I create a (sparse-root) NGZ I see all services with svcs -a, but only a subset of what's in the GZLet me be more specific. I want to run in.tftpd in my NGZ. The GZ lists svc://network/tftp/udp6:default but the zone does not have this service defined, so I can not svcadm enable it. Is anybody aware of a limitation of in.tftpd not to be available in a NGZ?I know that services can not run in a zone at all, like routing or nfs. Is there a list somewhere, or does SMF contain a flag for services that can not run in a zone? Routing is not a service managed by SMF. There is just one router for all the zones, managed by the global zone. This may change in the future.right, I named it as a "service" that can not run in a zone because it manages structures in the kernel as well as nfs, and hence "global" (which is my understanding). --Jan Hendrik Mangold Sun Microsystems650-585-5484 (x81371)"idle hands are the developers workshop" ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] definition of smf services running in a zone
Since I have wondered myself,... Jan Hendrik Mangold wrote On 08/17/06 13:29,: Hello I tried finding the solution by scanning previous posts to this group, and looking into manuals, but I haven't found the answer yet. Where do I define the services (SMF) that a) get started by default in a zone, and b) are made available to a zone? My first guess would be that packages that are installed in a NGZ and are not hollow and deliver SMF files would be available as services in NGZs. I know that services can not run in a zone at all, like routing or nfs. Is there a list somewhere, or does SMF contain a flag for services that can not run in a zone? So specifically regarding routed, since it is a special case, in.routed is delivered in SUNWcsr, which is installed everywhere and not hollow, and it has net-init SMF method. So while the files are there, you don't have a router in a NGZ, and something prevents routed from running. And that something is: if [ `/sbin/zonename` != "global" ]; then So the SMF service method for routing knows that it is supposed to only run in the GZ. Any pointers are appreciated. Short of complete documentation of all this, seems brute force inspection is the only source for each service in question. Steffen -- Jan Hendrik Mangold Sun Microsystems 650-585-5484 (x81371) "idle hands are the developers workshop" ___ zones-discuss mailing list zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] definition of smf services running in a zone
Jan Hendrik Mangold wrote: Hello I tried finding the solution by scanning previous posts to this group, and looking into manuals, but I haven't found the answer yet. Where do I define the services (SMF) that a) get started by default in a zone, and b) are made available to a zone? Each zone has its own SMF infrastructure and services, so you would login to the zone as root and use svcadm(1M). I know that services can not run in a zone at all, like routing or nfs. Is there a list somewhere, or does SMF contain a flag for services that can not run in a zone? Routing is not a service managed by SMF. There is just one router for all the zones, managed by the global zone. This may change in the future. A zone cannot be an NFS server because of limitations in the NFS implementation in the Solaris kernel. This will be addressed in the future. -- Jeff VICTOR Sun Microsystemsjeff.victor @ sun.com OS AmbassadorSr. Technical Specialist Solaris 10 Zones FAQ:http://www.opensolaris.org/os/community/zones/faq -- ___ zones-discuss mailing list zones-discuss@opensolaris.org