Virtual Guru's Blog – Home of Virtualization Workshops

December 8, 2009

Part 1: Minimal X env for iPKG GUI in OpenSolaris JeOS Prototype

Filed under: cloud, jeos, opensolaris, virtualbox, Virtualization — natiku @ 2:39 am

OpenSolaris 200906 JeOS Prototype is PURE CLI enviroment, so its true command line only, even no X libraries and of course no GUI libs needed for iPKG GUI components Package Manager or Update Manager.

Some OpenSolaris 200906 JeOS Prototype evaluators try to install needed X and Libs with command line pkg, but it resulted in massive mote them 200MB download which was hard to finish even, when download was repetitively restarted.

Sometimes virtual networking is not so stable then real HW ones, plus if you add there for example issues with low signal WiFi line in host, so I try to divide in this example needed PKG installations to downloads in chunks with about max 30MB.

I will try to setup in this sample a Minimal X/Libs enviroment for remote execution of iPKG GUI components Package Manager or Update Manager, remote execution focused enviroment will need low resources in VM, no attempt for full X local enviroment.


General Information – JeOS Prototype OpenSolaris project

Download OpenSolaris 200906 JeOS Prototype VM for one 10+ most popular Virtualization Formats:

JeOS: Just enough OS Project Homepage

OpenSolaris 2009.06 JeOS Prototype VM Images Download

OpenSolaris 2009.06 JeOS Prototype 10 Simple Usage Samples

Discusion jeos-discuss@opensolaris.org (Main page)

Discusion jeos-discuss@opensolaris.org (Archives)

Part 1: Check JeOS readiness as user root

1. Switch to root

pfexec su - root

2a. Check, if PKG will clean download cache on SUCCESS

root@osol-jeos:~# pkg property flush-content-cache-on-success
PROPERTY                       VALUE
flush-content-cache-on-success True

2b. Check, then we increase PKG donwload patiency for slowest networks

root@osol-jeos:~# set | grep PKG
PKG_CLIENT_TIMEOUT=120
PKG_TIMEOUT_MAX=16

2c. Check, then we use right repository for opensolaris.org

root@osol-jeos:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
opensolaris.org          (preferred)  origin   online   http://pkg.opensolaris.org/release/
contrib                               origin   online   http://pkg.opensolaris.org/contrib/

2d. Check, then we can access these repositories

root@osol-jeos:~# pkg refresh --full

2e. Check, opensolaris.org download speed of whole repository catalog

root@osol-jeos:~# curl pkg.opensolaris.org/release/catalog/0 >/dev/null
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 1333k  100 1333k    0     0  93491      0  0:00:14  0:00:14 --:--:--  126k

2f. Check, if we see correctly current active BE with beadm command

root@osol-jeos:~# beadm list
BE          Active Mountpoint Space Policy Created
--          ------ ---------- ----- ------ -------
opensolaris NR     /          1.30G static 2009-10-09 12:43

2g. Check, if we see correctly current active BE in rpool with zpool command

root@osol-jeos:~# zpool get bootfs rpool
NAME   PROPERTY  VALUE                   SOURCE
rpool  bootfs    rpool/ROOT/opensolaris  local

2h. Check, if we have enought memory and activated swap (I recommend if possible to have VM with 768MB-1GB RAM configured)

root@osol-jeos:~# top | grep Memory
Memory: 768M phys mem, 60M free mem, 512M total swap, 512M free swap

Advertisements

1 Comment »

  1. […] Part 1: Minimal X env for iPKG GUI in OpenSolaris JeOS Prototype […]

    Pingback by OpenSolaris JeOS (Main Page) « Virtual Guru's Blog – Home of Virtualization Workshops — February 7, 2010 @ 3:50 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

Blog at WordPress.com.

%d bloggers like this: