A CD-Free Installer for the Solaris OSMohd Akhbar Jamaludin, May, 2005 OverviewThe Solaris OS is very interesting and is among the most sophisticated operating systems I've ever known. And with the release of the Solaris 10 OS, many can't wait and have downloaded the pre-release version in order to get a taste of what the final version will offer. But with many pre-releases as over 600 new features get loaded into the OS, this could mean burning CDs before you can install the OS. What will be presented here is an alternative for Solaris installation. It is similar to network-type installation, but it doesn't require burning the boot CD. Here we go. RequirementsWhat you need: 1) ISOs for the Solaris 10 OS. Get them from Software Express: Solaris. 2) Two machines running on SPARC platform. One is the machine you will install the OS or SolutionThe solution presented here is using two Ultra 10 workstations with one already loaded with the Solaris OS. The version used here is Solaris 10 release 11/04. I haven't tried this solution on x86, but you could use this official guide (Solaris 10 Installation Guide: Network-Based Installations), which also includes cross-platform setup for the install server, and you could tailor this solution to your needs. Using the Network-Based Installation method, these are the steps for the 1. Run this command to check if you have any loopback devices associated with your Solaris system. # lofiadm Block Device File /dev/lofi/1 /ISO/sol-10-b72-sparc-v1.iso /dev/lofi/2 /ISO/sol-10-b72-sparc-v1-s1.iso If it gives any output like that above instead of a blank result, then you should run # lofiadm –d <block device> For example: # lofiadm –d /dev/lofi/1 2. Create four directories in # cd /mnt # mkdir disk1 disk2 disk3 disk4 disk1/s0 disk1/s1 3. Extract all the ISOs to a directory. I place all the compressed ISOs into # cd /ISO # unzip sol-10-b72-sparc-v1.zip # unzip sol-10-b72-sparc-v2.zip # unzip sol-10-b72-sparc-v3.zip # unzip sol-10-b72-sparc-v4.zip 4. Now it's time to mount all the ISOs, but for the Boot Disk you can't just
#!/bin/sh
PATH=/bin:/usr/sbin:/usr/ucb
if [ `whoami` != "root" ]; then
echo ""
echo "Must be root to run...Exiting."
echo ""
exit
fi
if [ $# != 1 ]; then
echo ""
echo "Usage: bootcd.sh [filename]"
echo ""
exit
fi
PWD=`pwd`
FILE=$1
dd if=${PWD}/${FILE} of=${PWD}/vtoc bs=512 count=1 > /dev/null 2>&1
OD=`od -D -j 452 -N 8 < ${PWD}/vtoc`
CYLSTART=`echo ${OD}|awk '{print $2}'`
COUNT=`echo ${OD}|awk '{print $3}'`
SKIP=`echo ${CYLSTART}*640|bc`
NAME=`echo ${FILE}|cut -d'.' -f1`
dd if=${PWD}/${FILE} of=${PWD}/${NAME}-s1.iso bs=512 skip=${SKIP}
count=${COUNT} > /dev/null 2>&1
#for share in s0 s1
#do
#if [ ! -d /mnt/${share} ];then
#mkdir /mnt/${share}
#fi
#done
lofiadm -a ${PWD}/${FILE} > /dev/null
lofiadm -a ${PWD}/${NAME}-s1.iso > /dev/null
mount -F hsfs -o ro /dev/lofi/1 /mnt/disk1/s0
mount -F ufs -o ro /dev/lofi/2 /mnt/disk1/s1
I've edited part of the code for the purpose of this guide and renamed it to # ./bootcd.sh boot.iso
This script will mount the first part of the Boot Disk to 5. Next, you can proceed to use # lofiadm –a /ISO/sol-10-b72-sparc-v2.iso # lofiadm –a /ISO/sol-10-b72-sparc-v3.iso # lofiadm –a /ISO/sol-10-b72-sparc-v4.iso
Then # mount –f HSFS /dev/lofi/3 /mnt/disk2 # mount –f HSFS /dev/lofi/4 /mnt/disk3 # mount –f HSFS /dev/lofi/5 /mnt/disk4 6. Continue creating the # mkdir –p /Solaris10 Note: This is where the Solaris Install Image will be placed. # /ISO/disk1/s0/Solaris_10/Tools/setup_install_server /Solaris10 # /ISO/disk2/Solaris_10/Tools/add_to_install_server /Solaris10 # /ISO/disk3/Solaris_10/Tools/add_to_install_server /Solaris10 # /ISO/disk4/Solaris_10/Tools/add_to_install_server /Solaris10 7. Assuming your
Add the following to share -F nfs -o ro,anon=0 -d "Install Server" /Solaris10 # ps -ef | grep nfsd (Note: This will check if the # /etc/init.d/nfs.server start (Note: This will start the # shareall (Note: Share all including our 8. The # /Solaris10/Solaris_10/Tools/add_install_client -e ethernet_address \ client_name platform_group where:
9. Finally turn on your About the AuthorMohd Akhbar Jamaludin is an application developer at Kolej Universiti Tun Hussein Onn (KUiTTHO). He has been familiar with the Solaris OS since 1996. Previously, he was a system administrator at Fujitsu Component Malaysia (FCM), before joining KUiTTHO.
The information and links on this page have been provided by a BigAdmin user. The submitter is solely responsible for such information and links. Sun is not responsible for the availability of external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. Sun will not be responsible or liable, directly or indirectly, for any actual or alleged damage or loss caused by or in connection with use of or reliance on the information posted here, or goods or services available on or through any external site or resource. Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
| |||