Virtual Guru's Blog – Home of Virtualization Workshops

January 6, 2010

OpenSolaris JeOS Prototype (Part 17: Remove old ‘dirty’ BEs)

Filed under: jeos, opensolaris, Virtualization — natiku @ 5:56 am

This entry is part of OpenSolaris JeOS (Just Enough Operating System) Prototype workshop.

Removing original GUI BE, leaving just customized ones


Boot into new customize BE, test it and make it active

beadm activate jeosinst
beadm list
BE          Active Mountpoint Space   Policy Created
--          ------ ---------- -----   ------ -------
jeosinst    NR     /          3.87G   static 1986-12-27 16:16
opensolaris -      -          109.88M static 1969-12-31 16:00

Fix grub boot info

vim /rpool/boot/grub/menu.lst

Remove old ‘opensolaris’ environment

beadm destroy opensolaris
Are you sure you want to destroy opensolaris? This action cannot be undone(y/[n]): y

Check it

beadm list
BE       Active Mountpoint Space        Policy Created
--       ------ ---------- -----        ------ -------
jeosinst NR     /          16777216.00T static 1986-12-27 16:16
zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool                   7.20G  8.43G  74.5K  /rpool
rpool/ROOT              3.43G  8.43G    18K  legacy
rpool/ROOT/jeosinst     3.43G  8.43G   798M  /tmp/jeosinst
rpool/dump              1.87G  8.43G  1.87G  -
rpool/export            9.86M  8.43G    19K  /export
rpool/export/home       9.84M  8.43G    19K  /export/home
rpool/export/home/osol  9.83M  8.43G  9.83M  /export/home/osol
rpool/swap              1.87G  10.3G    16K  -

Shutdown and take a backup

init 0
--- Update don't work, for this we need to use REPO freeze ---
pkg authority
AUTHORITY                           URL
opensolaris.org (preferred)         http://pkg.opensolaris.org:80/
pkg set-authority -P -O http://pkg.opensolaris.org:80/ opensolaris.org
pkg -R /tmp/jeosinst image-update -nv
WARNING: pkg(5) appears to be out of date, and should be updated before
running image-update.
Please update pkg(5) using 'pfexec pkg install SUNWipkg' and then retry
the image-update.
pkg install SUNWipkg
pkg -R /tmp/jeosinst install SUNWipkg
We already have version 101, need to use public repo with latest 100 ???
pkg -R /tmp/jeosinst image-update -nv
Advertisements

1 Comment »

  1. […] Removing original GUI BE, leaving just customized ones […]

    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

Create a free website or blog at WordPress.com.

%d bloggers like this: