Trying to upgrade to OpenIndiana (Illumos dev release)

From Oracle Solaris 11 Express, this didn’t work:

root@eddie:~# uname -a
SunOS eddie 5.11 snv_151a i86pc i386 i86pc Solaris
root@eddie:~# beadm create illumos
root@eddie:~# beadm mount illumos /mnt
root@eddie:~# pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (preferred)  origin   online   http://pkg.oracle.com/solaris/release/
root@eddie:~# pkg -R /mnt set-publisher –non-sticky solaris
root@eddie:~# pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (non-sticky, preferred) origin   online   http://pkg.oracle.com/solaris/release/
root@eddie:~# pkg -R /mnt set-publisher -P -O http://pkg.openindiana.org/illumos-experimental on-nightly
root@eddie:~# pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
on-nightly               (preferred)  origin   online   http://pkg.openindiana.org/illumos-experimental/
solaris                  (non-sticky) origin   online   http://pkg.oracle.com/solaris/release/
root@eddie:~# pkg -R /mnt uninstall entire
Packages to remove:     1
Create boot environment:    No
PHASE                                        ACTIONS
Removal Phase                                  58/58

PHASE                                          ITEMS
Package State Update Phase                       1/1
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2
root@eddie:~# sed -i -e ‘s/^LANG=.*/LANG=C/’ /mnt/etc/default/init root@eddie:~# pkg -R /mnt image-update -v
No updates available for this image.

But from snv132:

root@eddie:~# beadm create -e snv_132 illumos
root@eddie:~# beadm mount illumos /mnt
root@eddie:~# pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
opensolaris.org          (preferred)  origin   online   http://pkg.opensolaris.org/dev/
root@eddie:~# pkg -R /mnt set-publisher –non-sticky opensolaris.org
root@eddie:~# pkg -R /mnt set-publisher -P -O http://pkg.openindiana.org/illumos-experimental on-nightly
root@eddie:~# pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
on-nightly               (preferred)  origin   online   http://pkg.openindiana.org/illumos-experimental/
opensolaris.org          (non-sticky) origin   online   http://pkg.opensolaris.org/dev/
root@eddie:~# pkg -R /mnt uninstall entire
Packages to remove:    12
Create boot environment:    No
PHASE                                        ACTIONS
Removal Phase                                152/152

PHASE                                          ITEMS
Package State Update Phase                     12/12
Package Cache Update Phase                     12/12
Image State Update Phase                         2/2
root@eddie:~# sed -i -e ‘s/^LANG=.*/LANG=C/’ /mnt/etc/default/init
root@eddie:~# pkg -R /mnt image-update -v
Packages to remove:    48
Packages to install:    48
Packages to update:    11
Create boot environment:    No
Rebuild boot archive:   Yes
Changed fmris:
pkg://opensolaris.org/SUNWfirefoxl10n-fr-FR@0.5.11,5.11-0.132:20100130T073403Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-sv-SE@0.5.11,5.11-0.132:20100130T115037Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-de@0.5.11,5.11-0.132:20100130T081828Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-it-IT@0.5.11,5.11-0.132:20100130T114937Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-cs@0.5.11,5.11-0.132:20100130T081814Z -> None
pkg://opensolaris.org/SUNWperl584man@5.8.4,5.11-0.132:20100130T104720Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-pt-BR@0.5.11,5.11-0.132:20100130T115017Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-it@0.5.11,5.11-0.132:20100130T082205Z -> None
pkg://opensolaris.org/SUNWman@0.5.11,5.11-0.132:20100130T101304Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-zh-CN@0.5.11,5.11-0.132:20100130T073531Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-fr-FR@0.5.11,5.11-0.132:20100130T114927Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-ru@0.5.11,5.11-0.132:20100130T082453Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-es-ES@0.5.11,5.11-0.132:20100130T114905Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-es@0.5.11,5.11-0.132:20100130T081844Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-zhTW@0.5.11,5.11-0.132:20100130T082551Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-pl-PL@0.5.11,5.11-0.132:20100130T073452Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-de-DE@0.5.11,5.11-0.132:20100130T114855Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-sv-SE@0.5.11,5.11-0.132:20100130T073522Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-zh-CN@0.5.11,5.11-0.132:20100130T115047Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-ko-KR@0.5.11,5.11-0.132:20100130T114957Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-ja@0.5.11,5.11-0.132:20100130T082221Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-ko-KR@0.5.11,5.11-0.132:20100130T073442Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-pt-BR@0.5.11,5.11-0.132:20100130T073501Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-ja-JP@0.5.11,5.11-0.132:20100130T114947Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-sv@0.5.11,5.11-0.132:20100130T082508Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-de-DE@0.5.11,5.11-0.132:20100130T073330Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-fr@0.5.11,5.11-0.132:20100130T082121Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-zh-TW@0.5.11,5.11-0.132:20100130T073542Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-pl@0.5.11,5.11-0.132:20100130T082358Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-zhCN@0.5.11,5.11-0.132:20100130T082522Z -> None
pkg://opensolaris.org/SUNWced@0.5.11,5.11-0.132:20100130T064323Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-pl-PL@0.5.11,5.11-0.132:20100130T115007Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-rtl@0.5.11,5.11-0.132:20100130T082430Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-extra@0.5.11,5.11-0.132:20100130T114915Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-ko@0.5.11,5.11-0.132:20100130T082236Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-ru-RU@0.5.11,5.11-0.132:20100130T115027Z -> None
pkg://opensolaris.org/SUNWthunderbirdl10n-zh-TW@0.5.11,5.11-0.132:20100130T115057Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-zhHK@0.5.11,5.11-0.132:20100130T082537Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-extra@0.5.11,5.11-0.132:20100130T073349Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-it-IT@0.5.11,5.11-0.132:20100130T073422Z -> None
pkg://opensolaris.org/SUNWdistro-license-copyright@0.5.11,5.11-0.132:20100130T070927Z -> None
pkg://opensolaris.org/SUNWsolnm@0.5.11,5.11-0.132:20100130T113337Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-ptBR@0.5.11,5.11-0.132:20100130T082414Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-extra@0.5.11,5.11-0.132:20100130T081901Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-ru-RU@0.5.11,5.11-0.132:20100130T073512Z -> None
pkg://opensolaris.org/SUNWgnome-l10nmessages-hu@0.5.11,5.11-0.132:20100130T082150Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-es-ES@0.5.11,5.11-0.132:20100130T073340Z -> None
pkg://opensolaris.org/SUNWfirefoxl10n-ja-JP@0.5.11,5.11-0.132:20100130T073432Z -> None
None -> pkg://opensolaris.org/gnome/locale/es@0.5.11,5.11-0.134:20100302T024403Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/zh_cn@0.5.11,5.11-0.134:20100302T042013Z
None -> pkg://opensolaris.org/release/name@0.5.11,5.11-0.134:20100302T043855Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/extra@0.5.11,5.11-0.134:20100302T071701Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/de@0.5.11,5.11-0.134:20100302T041814Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/fr_fr@0.5.11,5.11-0.134:20100302T071718Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/pt_br@0.5.11,5.11-0.134:20100302T071827Z
None -> pkg://opensolaris.org/gnome/locale/zh_tw@0.5.11,5.11-0.134:20100302T025122Z
None -> pkg://opensolaris.org/gnome/locale/pl@0.5.11,5.11-0.134:20100302T024928Z
None -> pkg://opensolaris.org/gnome/locale/it@0.5.11,5.11-0.134:20100302T024748Z
None -> pkg://opensolaris.org/gnome/locale/rtl@0.5.11,5.11-0.134:20100302T024958Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/zh_cn@0.5.11,5.11-0.134:20100302T071900Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/it_it@0.5.11,5.11-0.134:20100302T071741Z
None -> pkg://opensolaris.org/gnome/locale/fr@0.5.11,5.11-0.134:20100302T024705Z
None -> pkg://opensolaris.org/gnome/locale/zh_cn@0.5.11,5.11-0.134:20100302T025052Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/extra@0.5.11,5.11-0.134:20100302T041835Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/ko_kr@0.5.11,5.11-0.134:20100302T071804Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/ja_jp@0.5.11,5.11-0.134:20100302T071753Z
None -> pkg://opensolaris.org/runtime/perl-584/manual@5.8.4,5.11-0.134:20100302T044747Z
None -> pkg://opensolaris.org/gnome/locale/cs@0.5.11,5.11-0.134:20100302T024334Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/ja@0.5.11,5.11-0.134:20100302T041908Z
None -> pkg://opensolaris.org/gnome/locale/ja@0.5.11,5.11-0.134:20100302T024803Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/ru_ru@0.5.11,5.11-0.134:20100302T071838Z
None -> pkg://opensolaris.org/gnome/locale/zh_hk@0.5.11,5.11-0.134:20100302T025106Z
None -> pkg://opensolaris.org/gnome/locale/extra@0.5.11,5.11-0.134:20100302T024420Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/sv_se@0.5.11,5.11-0.134:20100302T071849Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/es_es@0.5.11,5.11-0.134:20100302T071650Z
None -> pkg://opensolaris.org/gnome/locale/ru@0.5.11,5.11-0.134:20100302T025021Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/fr@0.5.11,5.11-0.134:20100302T041847Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/zh_tw@0.5.11,5.11-0.134:20100302T071912Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/de_de@0.5.11,5.11-0.134:20100302T071638Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/ko@0.5.11,5.11-0.134:20100302T041919Z
None -> pkg://opensolaris.org/gnome/locale/de@0.5.11,5.11-0.134:20100302T024349Z
None -> pkg://opensolaris.org/gnome/locale/pt_br@0.5.11,5.11-0.134:20100302T024943Z
None -> pkg://opensolaris.org/system/manual@0.5.11,5.11-0.134:20100302T065140Z
None -> pkg://opensolaris.org/release/copyright@0.5.11,5.11-0.134:20100302T043611Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/pl@0.5.11,5.11-0.134:20100302T041930Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/es@0.5.11,5.11-0.134:20100302T041824Z
None -> pkg://opensolaris.org/gnome/locale/ko@0.5.11,5.11-0.134:20100302T024817Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/ru@0.5.11,5.11-0.134:20100302T041952Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/pt_br@0.5.11,5.11-0.134:20100302T041941Z
None -> pkg://opensolaris.org/driver/network/ce@0.5.11,5.11-0.134:20100302T020425Z
None -> pkg://opensolaris.org/gnome/locale/hg@0.5.11,5.11-0.134:20100302T024720Z
None -> pkg://opensolaris.org/web/browser/firefox/locale/pl_pl@0.5.11,5.11-0.134:20100302T071815Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/sv@0.5.11,5.11-0.134:20100302T042002Z
None -> pkg://opensolaris.org/gnome/locale/sv@0.5.11,5.11-0.134:20100302T025036Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/it@0.5.11,5.11-0.134:20100302T041858Z
None -> pkg://opensolaris.org/mail/thunderbird/locale/zh_tw@0.5.11,5.11-0.134:20100302T042024Z
pkg://opensolaris.org/consolidation/SunVTS/SunVTS-incorporation@0.5.11,5.11-0.132:20100130T122634Z -> pkg://opensolaris.org/consolidation/SunVTS/SunVTS-incorporation@0.5.11,5.11-0.134:20100302T010332Z
pkg://opensolaris.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.132:20100130T122958Z -> pkg://opensolaris.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.134:20100302T010711Z
pkg://opensolaris.org/consolidation/cacao/cacao-incorporation@0.5.11,5.11-0.132:20100130T122654Z -> pkg://opensolaris.org/consolidation/cacao/cacao-incorporation@0.5.11,5.11-0.134:20100302T010354Z
pkg://opensolaris.org/consolidation/gnome_l10n/gnome_l10n-incorporation@0.5.11,5.11-0.132:20100130T122755Z -> pkg://opensolaris.org/consolidation/gnome_l10n/gnome_l10n-incorporation@0.5.11,5.11-0.134:20100302T010458Z
pkg://opensolaris.org/consolidation/man/man-incorporation@0.5.11,5.11-0.132:20100130T122856Z -> pkg://opensolaris.org/consolidation/man/man-incorporation@0.5.11,5.11-0.134:20100302T010603Z
pkg://opensolaris.org/consolidation/jdmk/jdmk-incorporation@0.5.11,5.11-0.132:20100130T122835Z -> pkg://opensolaris.org/consolidation/jdmk/jdmk-incorporation@0.5.11,5.11-0.134:20100302T010540Z
pkg://opensolaris.org/consolidation/cde/cde-incorporation@0.5.11,5.11-0.132:20100130T122704Z -> pkg://opensolaris.org/consolidation/cde/cde-incorporation@0.5.11,5.11-0.134:20100302T010405Z
pkg://opensolaris.org/consolidation/gfx/gfx-incorporation@0.5.11,5.11-0.132:20100130T122734Z -> pkg://opensolaris.org/consolidation/gfx/gfx-incorporation@0.5.11,5.11-0.134:20100302T010435Z
pkg://opensolaris.org/consolidation/vpanels/vpanels-incorporation@0.5.11,5.11-0.132:20100130T123028Z -> pkg://opensolaris.org/consolidation/vpanels/vpanels-incorporation@0.5.11,5.11-0.134:20100302T010742Z
pkg://opensolaris.org/consolidation/nspg/nspg-incorporation@0.5.11,5.11-0.132:20100130T122906Z -> pkg://opensolaris.org/consolidation/nspg/nspg-incorporation@0.5.11,5.11-0.134:20100302T010614Z
pkg://opensolaris.org/consolidation/dbtg/dbtg-incorporation@0.5.11,5.11-0.132:20100130T122724Z -> pkg://opensolaris.org/consolidation/dbtg/dbtg-incorporation@0.5.11,5.11-0.134:20100302T010425Z
Services:
None
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              107/107   1399/1399    14.1/14.1

PHASE                                        ACTIONS
Removal Phase                                689/689
Install Phase                              1876/1876
Update Phase                               1359/1359

PHASE                                          ITEMS
Package State Update Phase                   118/118
Package Cache Update Phase                     59/59
Image State Update Phase                         2/2

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

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

root@eddie:~# umount /mnt
root@eddie:~# beadm activate illumos
root@eddie:~# init 6

root@eddie:~# pkg unset-publisher opensolaris.org
root@eddie:~# uname -a
SunOS eddie 5.11 snv_132 i86pc i386 i86pc Solaris
root@eddie:~# 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

 

Seems like it’s confused as to whether it’s 132 or 134.

 

Quick and Dirty way of creating a Solaris 8 Zone from Media

# lofiadm -a ~someguy/SOL_8_204_SPARC.mdf.iso
/dev/lofi/1
# mkdir /solaris8_cd
# mount -F hsfs /dev/lofi/1 /solaris8_cd
# cat <<EOF> /var/sadm/install/admin/dontask
mail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=ask
setuid=nocheck
conflict=nocheck
action=nocheck
basedir=default
EOF

# mkdir /export/sol8root
# pkgadd -d /solaris8_cd/Solaris_8/Product -a dontask -R /export/sol8root SUNWcsr
# pkgadd -d /solaris8_cd/Solaris_8/Product -a dontask -R /export/sol8root SUNWcsu
# pkgadd -d /solaris8_cd/Solaris_8/Product -a dontask -R /export/sol8root all
# umount /solaris8_cd
# umount /solaris8_cd
# lofiadm  -d /dev/lofi/1
# cd /export/sol8root
# find . -print | cpio -odumv -O ~someguy/mysol8.cpio
# mkdir /export/zones
# zonecfg -z sol8zone -f - <<EOF
create -b
set zonepath=/export/zones/sol8zone
set brand=solaris8
set autoboot=false
set ip-type=shared
EOF
# zoneadm -z sol8zone install -a ~someguy/mysol8.cpio -u
 Log File: /var/tmp/sol8zone.install.10768.log
 Source: /home/someguy/mysol8.cpio
 Installing: This may take several minutes...
Postprocessing: This may take several minutes...

 Result: Installation completed successfully.
 Log File: /export/zones/sol8zone/root/var/log/sol8zone.install.10768.log
# hostid
83571339
# zoneadm -z sol8zone boot ; zlogin -C sol8zone
[Connected to zone 'sol8zone' console]
Hostname: unknown
The system is coming up.  Please wait.

Select a Language

 0. English
 1. French
 2. German
 3. Italian
 4. Japanese
 5. Korean
 6. Simplified Chinese
 7. Simplified Chinese GB18030
 8. Spanish
 9. Swedish
 10. Traditional Chinese

Please make a choice (0 - 10), or press h or ? for help:

<.... ETC ....>

System identification is completed.

rebooting system due to change(s) in /etc/default/init

Jan 31 17:50:25 rpcbind: rpcbind terminating on signal.

[NOTICE: Zone rebooting]

SunOS Release 5.8 Version Generic_Virtual 64-bit
Copyright 1983-2000 Sun Microsystems, Inc.  All rights reserved

Hostname: sol8zone

sol8zone console login: root
Password:
Jan 31 20:51:25 sol8zone login: ROOT LOGIN /dev/console
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   February 2004
# uname -a
SunOS sol8zone 5.8 Generic_Virtual sun4u sparc SUNW,Sun-Fire-V240
# cat /etc/release
 Solaris 8 2/04 s28s_hw4wos_05a SPARC
 Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
 Assembled 08 January 2004
# hostid
83571339