Friday, July 10, 2009

Jumpstart server Configuration on Solaris10

I configured Jumpstart server for Solaris 10 client last week.

Create one directory and share that directory using NFS
#mkdir -m 775 /vol/install
#vi /etc/dfs/dfstab

share -F nfs -o ro,anon=0 /vol/install
#shareall


insert your SUN Solaris10 DVD to your DVD drive and goto following directory
#cd /cdrom/cdrom0/s0/Solaris_10/Tools

Run setup_install_server command to copy installation files to install base directory(/vol/install) It takes some time...
# ./setup_install_server /vol/install/
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Install Server setup complete


Jumpstart server required 3 configuration files.
1.rules [this is a first config file accessed by client to read profile file file]
2.sysidcfg [This file is having values which are required for client initial boot ]
3.Profile file [This file has filesystems,patch details]


Make config directory under install folder and you can copy sample configuration files from DVD which are reside under Misc folder.I`ve copied only check and any_machine files.Remaining files I`ve created manually.


#mkdir /vol/install/config
#cd /cdrom/cdrom0/s0/Solaris_10/Misc/jumpstart_sample/
# cp check /vol/install/config
# cp any_machine /vol/install/config

# ./setup_install_server -b /vol/install/boot

Verifying target directory...
Calculating space required for the installation boot image
Copying Solaris_10 Tools hierarchy...
Copying Install Boot Image hierarchy...
Install Server setup complete


#vi rules
hostname sunserver1 - e250_prof -
any - - any_machine -
in this above
sunserver1 --> client name
e250_prof -->profile file name.
My sunserver1 is a Sun E250 model server,so I created this name:)


#vi e250_prof
# profile keywords profile values
# -------- ------ --------- --------
install_type initial_install
cluster SUNWCXall
partitioning explicit
filesys c0t0d0s0 12000 /
filesys c0t0d0s3 3072 swap
system_type server


#vi sysidcfg
system_locale=en_US
timezone=Asia/Calcutta
timeserver=localhost
terminal=vt100
name_service=NONE
security_policy=NONE
root_password=kFEEDxSc4v2E6
network_interface=hme0 {hostname=sunserver1
netmask=255.0.0.0
ip_address=10.1.1.4
protocol_ipv6=no
default_route=10.1.1.1}

update your client MAC address and name into /etc/ethers file
#vi /etc/ethers
8:0:xx:xx:xx:xx sunserver1

update your client IP address and name into /etc/hosts file
#/etc/hosts
1.1.1.4 sunserver1

Jumpstart server uses TFTP protocol, so check whether the TFTP entry has commented out or not in inetd.conf file.
#vi /etc/inet/inetd.conf
tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot

#eject cdrom

# /vol/install/Solaris_10/Tools/add_install_client -e 8:0:xx:xx:xx:xx -s 1.2.3.4:/vol0/install -c 1.2.3.4:/vol0/install/config -p 1.2.3.4:/vol0/install/config sunserver1 sun4

updating /etc/bootparams
[1.2.3.4 is IP address of jumpstart server]


##########
#### Client Side ########
##########
ok>boot net - install