|
Virtual Appliances Overview Appliance Directory Community Projects OpenSolaris |
Minimizing Solaris 10 for AppliancesSolaris OS Minimization When Using Java Enterprise System (including GlassFish)The following documentation lists several packages on Solaris 10 beyond the Core System Solaris Software Group (SUNWCreq) that should be installed: http://docs.sun.com/app/docs/doc/819-4893/gemqx?a=view We can probably minimize a Solaris 10 system even further, but the above combination of packages has been tested in support of App Server. Due to how the Solaris OS packages are being refactored in the OpenSolaris binary distros, we'll probably be able to achieve an OpenSolaris image of just 100 or so MB in size to support GlassFish. Similar to what can be achieved with some Linux distros today where you can download appliances of 50-100MB including basic apps. With Solaris 10, we're limited by the relatively coarse grained packaging of the OS itself. Minimal JES5 Solaris 10 install profile of SUNWCreq + 6 packages have for x86-64 Solaris 10u4 "packages size" of 312.3 MB, But we need to keep in mind then in this minimalized install are missing important parts of OS like:
Packages in Software Groups (or clusters)The Solaris 10 documentation has an exhaustive breakdown of which OS packages are in which software group: http://docs.sun.com/app/docs/doc/820-0181/eezbb?a=view Since use of Core worked for pretty much all of our middleware products, we haven't documented further reductions. We might be able to prune some of the "Core"packages in support for GlassFish deployments. If some packages in Core are rather large and appear to be extraneous from a core OS, JDK and app server standpoint, you could probably remove them. e.g. There are a bunch of driver packages that are probably irrelevant in the virtualized environment. Although with a standard Solaris 10 install you can easily choose which software group (e.g. Core) to use for initial installation, it's not clear to me how you'd achieve the same selection when using the Nevada based Solaris Express Community Edition (SXCE) or Solaris Express Developer Edition (SXDE). I haven't installed those distros enough to remember the install-time package group options. Patching ConsiderationsWe need keep in mind them Solaris patches are generated against SUNWCreq and when we remove packages from this cluster it can affect possibility to update it with patches in future A good example of the minimization process is on Peter's Solaris Zone - Minimalized Installation , see: Also this very conceptual article can be helpfull: Solaris 10 package minimalization, see: Process Solaris minimalizing and install templates are also part of Solaris Hardening, which can be done with SST (Solaris Security Toolkit), formerly JASS See SST homepage, http://www.sun.com/software/security/jass/ SST toolkit can also help with installation automation in reproducible manner because is part of Solaris 10 JumpStart based installations. |