Friday 4 July 2008

How to jumpstart Solaris 10 (Part 1)

Server Configuration
1. Create install and configuration directory.
2. Copy OS media to install directory.
3. Copy scripts to configuration directory.
4. Create "sysidcfg" file in install directory.
5. Create /tftpboot.
6. Start system daemon.
step 1-2 : to config install server
step 3-4 : to config configure server
step 5-6 : to config boot server

Step 1 : Create Create install and configuration directory
# mkdir -m 755 /export/Config /export/Install
# chown root:root /export/Config /export/Install
# cat >> /etc/dfs/dfstab
share -F nfs -o ro,anon=0 /export/Config
share -F nfs -o ro,anon=0 /export/Install
^D
# shareall

Step 2 : Copy OS media to install directory
Put the first CD of Solaris 10 in the CD-ROM drive
Install OS:(1st Disk)
# cd /cdrom/cdrom0/s0/Solaris_10/Tools
# ./setup_install_server /export/Install
Install OS:(another Disk)
# cd /cdrom/cdrom0/Solaris_10/Tools
# ./add_to_install_server /export/install
Note : Interested directory
/export/Install/Solaris_10
- Misc/jumpstart_sample contain sample configs and scripts
- Tools contain script for adding clients
- Tool/Boot is boot image for client
- Product contain Solaris package which will be installed
- Patches contain patches to install during jumstart
- MU contain maintenance update patch(may be)

Step 3 : Copy Script to Config directory
# cd /export/Install/Solaris_10
# cd Misc/jumpstart_sample
# mkdir -p -m 755 /export/Config/bin
# cp check /export/Config/bin
# chmod 755 /export/Config/bin/check
# chown -R root:root /export/Config/bin

Step 4 : The sysidcfg File
# cd /export/Config
# vi sysidcfg
system_locale=en_US
timezone=US/Central
timeserver=localhost
terminal=vt100
name_service=NONE
security_policy=NONE
root_password=
network_interface=PRIMARY {hostname=
netmask=
protocol_ipv6=no
default_route=}

:wq


Step 5 : Create /tftpboot
# mkdir -m 711 /tftpboot
# chown root:root /tftpboot
Uncomment the below line in /etc/inet/inetd.conf
tftp ..... /usr/sbin/in/tftpd in.tftpd -s /tftpboot
On Solaris 10 execute command :
# inetconv

Step 6 : Start System Daemon
- NFS daemon
FMRI : svc:/network/nfs/server
Script : /usr/lib/nfs/nfsd
- in.rarpd
FMRI : svc:/network/rarp
Script : /usr/sbin/in/rarpd
- rpc.bootparamd
FMRI : svc:/network/rpc/bootparams
Script : /usr/sbin/rpc.bootparamd
- inetd
FMRI : svc:/network/inetd
Script : /usr/lib/inet/inetd

Continue in part 2...