Upgrade OpenSolaris to Solaris 11 Express


How to upgrade your Opensolaris dev build 134 to Solaris 11 Express build 151a

First we need to update 134 to 134b

opensolaris:~$ cat /etc/release
OpenSolaris Development snv_134 X86
Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 01 March 2010

opensolaris:~$ pfexec pkg set-publisher -P -O http://pkg.opensolaris.org/release/ opensolaris.org
Refreshing catalog 1/1 opensolaris.org
opensolaris:~$
opensolaris:~$ pkg publisher
PUBLISHER TYPE STATUS URI
opensolaris.org (preferred) origin online http://pkg.opensolaris.org/release/

opensolaris:~$ pfexec pkg image-update
DOWNLOAD PKGS FILES XFER (MB)
Completed 773/773 9659/9659 209.5/209.5

PHASE ACTIONS
Removal Phase 4674/4674
Install Phase 5118/5118
Update Phase 13370/13370

A clone of opensolaris exists and has been updated and activated.
On the next boot the Boot Environment opensolaris-1 will be mounted on '/'.
Reboot when ready to switch to this updated BE.

opensolaris:~$ beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
opensolaris N / 9.51M static 2010-10-09 19:59
opensolaris-1 R - 6.51G static 2010-11-16 15:11

Now After reboot need to update to Solaris 11 Express

opensolaris:~$ cat /etc/release
OpenSolaris 2010.05 snv_134b X86
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 28 May 2010
opensolaris:~$ uname -a
SunOS opensolaris 5.11 snv_134b i86pc i386 i86pc Solaris

opensolaris:~$ pfexec pkg set-publisher --non-sticky opensolaris.org
opensolaris:~$ pfexec pkg set-publisher -P -g http://pkg.oracle.com/solaris/release/ solaris

Don't miss this bit first

opensolaris:~$ pfexec pkg install pkg
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 1/1 0.0/0.0

PHASE ACTIONS
Update Phase 2/2

opensolaris:~$ pfexec pkg image-update --accept

DOWNLOAD PKGS FILES XFER (MB)
Completed 964/964 45193/45193 729.9/729.9

PHASE ACTIONS
Removal Phase 18421/18421
Install Phase 28626/28626
Update Phase 40350/40350

A clone of opensolaris-1 exists and has been updated and activated.
On the next boot the Boot Environment Solaris_11_2010.11 will be mounted on '/'.
Reboot when ready to switch to this updated BE.


---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://docs.sun.com/doc/821-1479

opensolaris:~$ beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
Solaris_11_2010.11 R - 11.10G static 2010-11-16 17:20
opensolaris - - 13.22M static 2010-10-09 19:59
opensolaris-1 N / 17.54M static 2010-11-16 15:11

Now reboot

pfexec init 6
opensolaris:~$ cat /etc/release
Oracle Solaris 11 Express snv_151a X86
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 04 November 2010
opensolaris:~$ uname -a
SunOS opensolaris 5.11 snv_151a i86pc i386 i86pc Solaris