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
Advertisements

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

  1. Pingback: Tweets that mention Quick and Dirty way of creating a Solaris 8 Zone from Media « Virtually everything -- Topsy.com

  2. David Tong says:

    Thanks for this! Much appreciated. Saved me a lot of time and headaches.

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

%d bloggers like this: