Virtual Guru's Blog – Home of Virtualization Workshops

January 6, 2010

OpenSolaris JeOS Prototype (Part 18: B130 JeOS First Touch – pkgs list)

Filed under: jeos, opensolaris, Virtualization — natiku @ 8:50 am

OpenSolaris 1003 Dev B130 JeOS Prototype First Touch (Part One)

This is a First Touch for JeOS like configuration on dev release targeting OpenSolaris 2010.03 release, this is not a final Prototype
and content of final OpenSolaris 2010.03 JeOS Prototype can change significantly. This instructions are published for development
and testing purposes only. Please, send your feed back, questions and suggestions to jeos-discuss@opensolaris.org

This entry is part of OpenSolaris CLI JeOS workshop


Approach to OSOL 1003 Dev B130 JeOS First Touch

We will focus in this first touch only on X86 platform on Virtual Box Virtual Platform , SPARC will be added later.

We will try to reuse as much is experience from JeOS prototype building on OpenSolaris 200805, 2008.11, 2009.06 releases, see more:

Installing OpenSolairs 201003 B130 Dev Virtual Environment

  1. Download OpenSolairs 201003 B130 Dev x86 Install CD ISO image (from www.genunix.org)
  2. Use a relative powerfull host with latest VirtualBox (3.1.2) , I use Windows XP 64bit on our Quad-code Virtualization Workstations
  3. Create a OSOL 1003 B130 VM
    1. If you can configure 2GB of RAM, (We ned 1GB free RAM after installation, if you can’t get it, need to disable bot to GUI after installation)
      HINT: You can monitor memory usage with top command
    2. Configure Graphical memory to 64MB
    3. Create a 16GB growable disk on SCSI controler
    4. Attach OpenSolairs 201003 B130 Dev x86 Install CD ISO image to IDE secondary controller
  4. Install OSOL 1003 B130 from OpenSolairs 201003 B130 Dev x86 Install CD ISO image,
    1. Boot into OpenSolairs 201003 B130 Dev x86 Install CD ISO image
    2. Select GUI stall (First default menu)
    3. Login with jack/jack
    4. Click on OpenSolaris installer
      1. Select whole disk
      2. User OSOL, Password ‘justone1′
      3. Hostname: jeos1003
        PS: Root password will be default “opensolaris” , root password is planned to removed
  5. After installation is complete boot into installed system
  6. SSH into installed system with sssh osol@your_insted_system_ip password justone1
  7. Switch to root with pfexec su -

Initial Evaluation of changes in B130

Initial install evaluation of main 3 packages

When OpenSolaris system is installed with DC (Distro Constructor) or AI (Automated Installer), 3 main packages are installed first to ensure then system is initially correctly populated, these 3 packages on OpenSolaris 200906 was:

entire@0.5.11-0.130            entire incorporation (Locked for 201003 release - dev 130)
SUNWcsd                        Core Solaris Devices
SUNWcs                         [scd] Core Solaris

This 3 main packages impose some dependencies, which will shape possible reduction scenarios of JeOS prototype.

In B130 this 3 main packages generate much more dependencies then in OpenSolaris 2009.06

B130 Installing of SUNWcsd depend on X libs,its download 100MB and instal 400MB

1. Create a BE for 3 main packages checking

mkdir /export/scm
pkg image-create -F -a opensolaris.org=http://pkg.opensolaris.org/dev /export/scm
pkg -R /export/sc set-property flush-content-cache-on-success True
pkg -R /export/scm install entire SUNWcsd SUNWcs
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                67/67 12772/12772  103.1/103.1
du -s -h /export/scm
432M    /export/scm

2. List installed packages

pkg -R /export/scm list -s | egrep "incorporation" | wc -l
24
pkg -R /export/scm list -s | egrep "incorporation"
consolidation/SunVTS/SunVTS-incorporation SunVTS consolidation incorporation
consolidation/X/X-incorporation X consolidation incorporation
consolidation/cacao/cacao-incorporation cacao consolidation incorporation
consolidation/cde/cde-incorporation cde consolidation incorporation
consolidation/cns/cns-incorporation cns consolidation incorporation
consolidation/dbtg/dbtg-incorporation dbtg consolidation incorporation
consolidation/gfx/gfx-incorporation gfx consolidation incorporation
consolidation/gnome/gnome-incorporation gnome consolidation incorporation
consolidation/gnome_l10n/gnome_l10n-incorporation gnome_l10n consolidation incorporation
consolidation/hcts/hcts-incorporation hcts consolidation incorporation
consolidation/install/install-incorporation install consolidation incorporation
consolidation/ips/ips-incorporation ips consolidation incorporation
consolidation/jdmk/jdmk-incorporation jdmk consolidation incorporation
consolidation/l10n/l10n-incorporation l10n consolidation incorporation
consolidation/man/man-incorporation man consolidation incorporation
consolidation/nspg/nspg-incorporation nspg consolidation incorporation
consolidation/osnet/osnet-incorporation osnet consolidation incorporation
consolidation/sfw/sfw-incorporation sfw consolidation incorporation
consolidation/sic_team/sic_team-incorporation sic_team consolidation incorporation
consolidation/solaris_re/solaris_re-incorporation solaris_re consolidation incorporation
consolidation/sunpro/sunpro-incorporation sunpro consolidation incorporation
consolidation/ub_javavm/ub_javavm-incorporation ub_javavm consolidation incorporation
consolidation/vpanels/vpanels-incorporation vpanels consolidation incorporation
entire                         incorporation to lock all system packages to same build
pkg -R /export/scm list -s | egrep -v "incorporation" | wc -l
44
pkg -R /export/scm list -sH | egrep -v "incorporation" | sort
SUNWbzip                       The bzip compression utility
SUNWckr                        Core Solaris Kernel
SUNWcs                         Core Solaris
SUNWcsd                        Core Solaris Devices
SUNWcsl                        Core Solaris, (Shared Libs)
SUNWfontconfig                 Fontconfig library
SUNWfreetype2                  FreeType2 Font library
SUNWgnu-readline               GNU readline
SUNWgrub                       GNU GRUB - GNU GRand Unified Bootloader
SUNWgss                        GSSAPI V2
SUNWinstall-libs               System install libraries
SUNWlexpt                      libexpat - XML parser library
SUNWlibffi                     Foreign Function Interface Library
SUNWlibms                      Math & Microtasking Libraries
SUNWlibsasl                    Simple Authentication and Security Layer (SASL) v2 shared library and plugins
SUNWlxml                       The XML library
SUNWmd                         Solaris Volume Manager
SUNWncurses                    A CRT screen handling and optimization package.
SUNWopenssl                    OpenSSL - a Toolkit for Secure protocols and general purpose cryptographic library
SUNWperl584core                Perl 5.8.4 (core)
SUNWpicl                       PICL Libraries, and Plugin Modules
SUNWpkgcmds                    SVr4 packaging commands
SUNWpool                       Resource Pools
SUNWpr                         Netscape Portable Runtime
SUNWPython                     The Python interpreter, libraries and utilities
SUNWPython26                   The Python interpreter, libraries and utilities
SUNWsmapi                      Storage Management APIs
SUNWsqlite3                    SQLite3
SUNWTcl                        Tcl - Tool Command Language
SUNWtecla                      Tecla command-line editing library
SUNWTk                         Tk - TCL GUI Toolkit
SUNWtls                        Network Security Services
SUNWtss                        TCG Software Stack - software for accessing a TPM device
SUNWwbsup                      WAN boot support
SUNWwsr2                       Solaris Product Registry & Web Start runtime support
SUNWxorg-clientlibs            X.Org Foundation X Client Libraries
SUNWxwfsw                      X Window System platform required font software
SUNWxwice                      X Window System Inter-Client Exchange (ICE) Components
SUNWxwplt                      X Window System platform software
SUNWxwxft                      Xft (X Freetype) Library
SUNWzfs                        ZFS
SUNWzlib                       The Zip compression library
SUNWzone                       Solaris Zones

3. Evaluate this dependencies

pkg -R /export/scm uninstall -nv SUNWsqlite3
Cannot remove 'pkg://opensolaris.org/SUNWsqlite3@3.6.17,5.11-0.130:20091219T034729Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWPython26@2.6.4,5.11-0.130:20091218T221141Z
pkg -R /export/scm uninstall -nv SUNWgnu-readline
Cannot remove 'pkg://opensolaris.org/SUNWgnu-readline@5.2,5.11-0.130:20091219T003511Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWPython26@2.6.4,5.11-0.130:20091218T221141Z
pkg://opensolaris.org/SUNWPython@2.4.6,5.11-0.130:20091218T220841Z
pkg -R /export/scm uninstall -nv SUNWncurses
Cannot remove 'pkg://opensolaris.org/SUNWncurses@0.5.11,5.11-0.130:20091219T023250Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWPython26@2.6.4,5.11-0.130:20091218T221141Z
pkg://opensolaris.org/SUNWPython@2.4.6,5.11-0.130:20091218T220841Z
pkg -R /export/scm uninstall -nv SUNWPython
Cannot remove 'pkg://opensolaris.org/SUNWPython@2.4.6,5.11-0.130:20091218T220841Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWPython26@2.6.4,5.11-0.130:20091218T221141Z
pkg://opensolaris.org/SUNWzfs@0.5.11,5.11-0.130:20091219T044107Z
pkg -R /export/scm uninstall -nv SUNWPython26
Cannot remove 'pkg://opensolaris.org/SUNWPython26@2.6.4,5.11-0.130:20091218T221141Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWinstall-libs@0.5.11,5.11-0.130:20091219T010522Z
pkg -R /export/scm uninstall -nv SUNWinstall-libs
Cannot remove 'pkg://opensolaris.org/SUNWinstall-libs@0.5.11,5.11-0.130:20091219T010522Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWmd@0.5.11,5.11-0.130:20091219T021357Z
pkg -R /export/scm uninstall -nv SUNWmd
Cannot remove 'pkg://opensolaris.org/SUNWmd@0.5.11,5.11-0.130:20091219T021357Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWcs@0.5.11,5.11-0.130:20091218T225200Z
pkg -R /export/scm uninstall -nv SUNWfreetype2
Cannot remove 'pkg://opensolaris.org/SUNWfreetype2@2.3.9,5.11-0.130:20091218T233838Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWfontconfig@2.7.3,5.11-0.130:20091218T233529Z
pkg://opensolaris.org/SUNWxwxft@2.1.14,5.11-0.130:20091219T044036Z
pkg://opensolaris.org/SUNWxwplt@0.5.11,5.11-0.130:20091219T043917Z
pkg://opensolaris.org/SUNWxwfsw@0.5.11,5.11-0.130:20091219T043737Z
pkg -R /export/scm uninstall -nv SUNWxwplt SUNWxwxft SUNWxorg-clientlibs SUNWfontconfig
Cannot remove 'pkg://opensolaris.org/SUNWxwplt@0.5.11,5.11-0.130:20091219T043917Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWTk@8.4.18,5.11-0.130:20091218T221418Z
pkg://opensolaris.org/SUNWxwxft@2.1.14,5.11-0.130:20091219T044036Z
pkg://opensolaris.org/SUNWPython@2.4.6,5.11-0.130:20091218T220841Z
pkg://opensolaris.org/SUNWxorg-clientlibs@0.5.11,5.11-0.130:20091219T043055Z
pkg -R /export/scm uninstall -nv SUNWTk
Cannot remove 'pkg://opensolaris.org/SUNWTk@8.4.18,5.11-0.130:20091218T221418Z'
due to the following packages that depend on it:
pkg://opensolaris.org/SUNWPython26@2.6.4,5.11-0.130:20091218T221141Z
pkg://opensolaris.org/SUNWPython@2.4.6,5.11-0.130:20091218T220841Z
pkg info SUNWxwxft
Name: SUNWxwxft
Summary: Xft (X Freetype) Library
Description: Xft (X Freetype) Library
Category: System/X11
State: Installed
Publisher: opensolaris.org
Version: 2.1.14
Build Release: 5.11
Branch: 0.130
Packaging Date: December 19, 2009  4:40:36 AM
Size: 275.65 kB

Check if issues with X and Gnome stuff is fixed for SUNWrmvolmgr and SUNWgnu-mc

1. Check SUNWrmvolmgr (Looks OK)

pkg -R /export/scm install -nv SUNWrmvolmgr
Package version changes:
None -> pkg://opensolaris.org/SUNWhal@0.5.11,5.11-0.130:20091219T004423Z
None -> pkg://opensolaris.org/SUNWnet-snmp-utils@5.4.1,5.11-0.130:20091219T023428Z
None -> pkg://opensolaris.org/SUNWrmvolmgr@0.5.11,5.11-0.130:20091219T032408Z
None -> pkg://opensolaris.org/SUNWbash@4.0.28,5.11-0.130:20091218T223206Z
None -> pkg://opensolaris.org/SUNWsmedia@0.5.11,5.11-0.130:20091219T034327Z
None -> pkg://opensolaris.org/SUNWdbus-glib@0.5.11,5.11-0.130:20091218T225729Z
None -> pkg://opensolaris.org/SUNWglib2@0.5.11,5.11-0.130:20091218T234855Z
None -> pkg://opensolaris.org/SUNWdbus-libs@0.5.11,5.11-0.130:20091218T225740Z
None -> pkg://opensolaris.org/SUNWpolkit@0.5.11,5.11-0.130:20091219T025835Z
None -> pkg://opensolaris.org/SUNWnet-snmp-core@5.4.1,5.11-0.130:20091219T023349Z
Actuators:
restart_fmri: svc:/system/manifest-import:default
reboot-needed: false

2. Check SUNWgnu-mc (Looks OK)

pkg -R /export/scm install -nv SUNWgnu-mc
Package version changes:
None -> pkg://opensolaris.org/SUNWslang@2.1.3,5.11-0.130:20091219T034008Z
None -> pkg://opensolaris.org/SUNWgnu-mc@4.6.1,5.11-0.130:20091219T003429Z
None -> pkg://opensolaris.org/SUNWpcre@7.8,5.11-0.130:20091219T024646Z
None -> pkg://opensolaris.org/SUNWglib2@0.5.11,5.11-0.130:20091218T234855Z
None -> pkg://opensolaris.org/SUNWlibC@0.5.11,5.11-0.130:20091219T015343Z
None -> pkg://opensolaris.org/SUNWpng@0.5.11,5.11-0.130:20091219T025823Z

Check if some useful stuff from CONTRIB was moved to dev (release)

Yes, 2 useful packages omitted in OpenSolaris 200906 JeOS Prototype was moved from CONTRIB was moved to dev (release)

SUNWpwgen                      Easy to memorize passwords generator
SUNWpipe-viewer                Pipe Viewer

Check if migration to Python 2.6 was completed on B130

Yes, this is done on GUI installation

13724 b130 Live-CD GUI installation still deliver 18 packages with Python2.4 content

pkg contents -m SUNWipkg | grep type=require
depend fmri=SUNWpython-cherrypy@3.1.1 type=require
depend fmri=SUNWpython-mako@0.2.2 type=require
depend fmri=SUNWpython-ply@3.1 type=require
depend fmri=SUNWpython-pycurl@7.19.0.1 type=require
depend fmri=SUNWpython26-pyopenssl@0.8 type=require
depend fmri=SUNWpython26-simplejson@0.5.11-0.130 type=require
depend fmri=consolidation/ips/ips-incorporation type=require
depend fmri=SUNWcs@0.5.11-0.130 type=require
depend fmri=SUNWPython26@2.6.4-0.130 type=require
depend fmri=SUNWPython@2.4.6-0.130 type=require
depend fmri=SUNWcsl@0.5.11-0.130 type=require
depend fmri=SUNWlibms@0.5.11-0.130 type=require

Looks like Move to Python2.6 is not finished in B130 yet, deeper check:

cat python24check.txt
pkg contents -o pkg.name,path  | grep python2.4 | tee /tmp/python24
cat /tmp/python24 | awk '{print $1}' | sort | uniq
SUNWbrltty
SUNWccsm
SUNWcompizconfig-python
SUNWdbus-python24
SUNWgnome-doc-utils
SUNWgnome-python-desktop
SUNWgnome-python-extras
SUNWgnome-python-libs
SUNWgnome-terminal
SUNWgst-python
SUNWlcms
SUNWlibgsf
SUNWlxml-python
SUNWlxsl-python
SUNWpycups
SUNWPython
SUNWPython-extra
SUNWpython-notify
SUNWpython-pyopenssl
SUNWpython-twisted
SUNWpython-xdg
SUNWpython-zope-interface
SUNWpython24-simplejson
SUNWpyyaml24
SUNWsexy-python
SUNWzfs
pkg info SUNWlcms
Name: SUNWlcms
Summary: Little Color Management System
Description: Little Color Management System
Category: System/Administration and Configuration
State: Installed
Publisher: opensolaris.org
Version: 1.17
Build Release: 5.11
Branch: 0.130
Packaging Date: December 19, 2009  1:52:39 AM
Size: 2.42 MB
FMRI: pkg://opensolaris.org/SUNWlcms@1.17,5.11-0.130:20091219T015239Z
pkg contents -o pkg.name,path SUNWlcms | grep python2.4
SUNWlcms usr/lib/python2.4
SUNWlcms usr/lib/python2.4/vendor-packages
SUNWlcms usr/lib/python2.4/vendor-packages/64
SUNWlcms usr/lib/python2.4/vendor-packages/64/_lcms.so
SUNWlcms usr/lib/python2.4/vendor-packages/_lcms.so
SUNWlcms usr/lib/python2.4/vendor-packages/lcms.py

B130 JeOS Protototype First Touch pkgs lists and costs

Initial First touch list are here:

For comparison: Link to OpenSolairs 2009.06 JeOS Prototype pkg lists

Install costs for B130 JeOS Protototype First Touch pkgs lists

1. Create /export/sc BE

 mkdir /export/sc
pkg image-create -F -a opensolaris.org=http://pkg.opensolaris.org/dev /export/sc
pkg -R /export/sc publisher
PUBLISHER                             TYPE     STATUS   URI
opensolaris.org          (preferred)  origin   online   http://pkg.opensolaris.org/release/
pkg -R /export/sc set-property flush-content-cache-on-success True

2. Install pkgs from lst file bellow

Note: xargs line have limit 2048bytes, split drivers if you hit this issue

cat OSOL1003-JeOS-pkgs-130.i386.lst OSOL1003-JeOS-drvs-130.i386.lst | grep -v "^#" | awk \
'{print $1}' | xargs -t pkg -R /export/sc install --no-index --no-refresh
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              221/221 37249/37249  222.4/222.4

3. Get install costs

Clean IPS catalogs data, they will be recreated by pkg

rm -r /export/sc/var/pkg/publisher/opensolaris.org/catalog/*
rm /export/sc/var/pkg/publisher/opensolaris.org/last_refreshed
du -s -h /export/sc
783M    /export/sc

4. Get compression stats

zip -9 -r -y /tmp/JeOS-sc.zip /export/sc/*
unzip -v /tmp/JeOS-sc.zip | tail -n 1
744 132 009      252 378 728  66%        47708 files
7z a  -bd  -t7z -m0=lzma -ms=on -mx=9 -mfb=64 -md=64m /tmp/JeOS-sc.7z /export/sc/
7z l /tmp/JeOS-sc.7z | tail  -n 1
744 132 009    140 458 743  45179 files, 2530 folders

Note: Installed system will have more, because we will have there boot archives.

Try to generate AI manifest body

1. Script for generaion of Relax NG XML style wrapper around packages for AI Client XML manifest

cat  /tmp/OSOL1003-JeOS-pkgs-130.i386.lst /tmp/OSOL1003-JeOS-drvs-130.i386.lst| egrep -v "^#"| gawk '{ \
if ($1 !~ /^#/ ) { printf " <pkg name=\"%s\"/> <!-- ", $1;    for (i=2;i<=NF;i++) {printf " %s ",$(i)}; print "-->" }; }'  | tee  \
 /tmp/OSOL1003-JeOS-pkgs-130.i386.xml
<pkg name="entire@0.5.11-0.130"/> <!--  entire  incorporation  (Locked  for  201003  release  -  dev  130) -->
<pkg name="SUNWcsd"/> <!--  Core  Solaris  Devices -->
<pkg name="SUNWcs"/> <!--  [scd]  Core  Solaris -->
<pkg name="SUNWcakr"/> <!--  Core  Solaris  Kernel  Architecture -->
<pkg name="SUNWcakrx"/> <!--  Core  Kernel  Architecture  i86xpv -->
.....
<pkg name="SUNWxvmpv"/> <!--  xVM  Paravirtualized  Drivers -->
<pkg name="SUNWahci"/> <!--  Advanced  Host  Controller  Interface  (AHCI)  SATA  HBA  Driver -->
<pkg name="SUNWcakrx"/> <!--  Core  Kernel  Architecture  i86xpv -->
<pkg name="SUNWcarx"/> <!--  Core  Architecture  i86xpv -->

2. JeOS Prototype encrypted password values for AI Client XML manifest

Here are SHA256 passwords for AI and DC installation (for XML templates)

osol justone1 $5$QozYKGdc$40Bo8ychJEaBVvJN5uwAzIwO7xdyuZ2ZH49L6Gd/l3.
root osol1003 $5$pyG8wqj6$0JHrPTDjJ5SxSacljUSTT4zAg.HQ21qxRkrJ3AZM0sD
About these ads

1 Comment »

  1. [...] OpenSolaris 1003 Dev B130 JeOS Prototype First Touch (Part One) [...]

    Pingback by OpenSolaris JeOS (Main Page) « Virtual Guru's Blog – Home of Virtualization Workshops — February 7, 2010 @ 3:51 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Shocking Blue Green Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: