You are on page 1of 3

bash-3.

00# mkdir -p /export/install


bash-3.00# cd /cdrom/cdrom0/Solaris_10/Tools
bash-3.00# ./setup_install_server /export/install

bash-3.00# du -sk /export/install/


2246131 /export/install

bash-3.00# cd /export/config/
bash-3.00# ls
begin check finish profile rules rules.ok sysidcfg

bash-3.00# vi sysidcfg/sysidcfg
"sysidcfg/sysidcfg" 12 lines, 267 characters

system_locale=en_US.UTF-8
timezone=ASIA/Calcutta
timeserver=localhost
terminal=xterm
name_service=NONE
security_policy=NONE
root_password=FbAMj6Sb9pxx
network_interface=ife0 {hostname=client
netmask=255.255.255.0
protocol_ipv6=no
default_route=192.168.1.0}

bash-3.00# vi rules
"rules" 1 line, 42 characters
hostname client i386 begin profile finish

bash-3.00# vi begin
"begin" 2 lines, 54 characters
#!/bin/sh
echo "Begin Script for JumpStart client..."

bash-3.00# vi profile
"profile" 9 lines, 260 characters
install_type initial_install
system_type standalone
partitioning explicit
filesys rootdisk.s0 6144 /
filesys rootdisk.s1 1024 swap
filesys rootdisk.s7 free /export/home
cluster SUNWCall
package SUNWCapache add

bash-3.00# vi finish
"finish" 7 lines, 152 characters
#!/bin/sh
echo "Finish Script for JumpStart client1..."
echo "Get rid of the nfs prompt during the initial boot"
touch /a/etc/.NFS4inst_state.domain #to prevent nfs boot prompt
bash-3.00# ls -l
total 136
-rwxr-xr-x 1 root root 54 Jan 7 09:35 begin
-r-xr-xr-x 1 root root 63082 Jan 6 09:13 check
-rwxr-xr-x 1 root root 152 Jan 7 09:37 finish
-rw-r--r-- 1 root root 259 Jan 7 09:35 profile
-rw-r--r-- 1 root root 42 Jan 7 09:13 rules
-rw-r--r-- 1 root root 68 Jan 6 10:30 rules.ok
drwxr-xr-x 2 root root 512 Jan 4 12:17 sysidcfg

bash-3.00# ./check
Validating rules...
Validating profile profile...
The custom JumpStart configuration is ok.

bash-3.00# vi rules.ok
"rules.ok" 2 lines, 68 characters
hostname client i386 begin profile finish
# version=2 checksum=3849

bash-3.00# vi /etc/dfs/dfstab
"/etc/dfs/dfstab" 14 lines, 480 characters

# Place share(1M) commands here for automatic execution


# on entering init state 3.
#
# Issue the command 'svcadm enable network/nfs/server' to
# run the NFS daemon processes and the share commands, after adding
# the very first entry to this file.
#
# share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o ro,anon=0 /export/install
share -F nfs -o ro,anon=0 /export/config

bash-3.00# /etc/init.d/nfs.server start


bash-3.00#

bash-3.00# shareall
bash-3.00# share
- /export/config ro,anon=0 ""
- /export/install ro,anon=0 ""
bash-3.00# ./add_install_client -d -e 0:19:D1:7B:BB:32 -s 192.168.1.24:/export/install/ -c
192.168.1.24:/export/config/ -p 192.168.1.24:/export/config/sysidcfg i86pc
cleaning up preexisting install client "0:19:D1:7B:BB:32"
To disable 0:19:D1:7B:BB:32 in the DHCP server,
remove the entry with Client ID 010019D17BBB32

If not already configured, enable PXE boot by creating


a macro named 010019D17BBB32 with:
Boot server IP (BootSrvA) : ip-addr-for-server
Boot file (BootFile) : 010019D17BBB32

syntax of ./add_install_client

-d = specify dhcp client


-e = specify the ethernet add' of the system to be installed

-s server_name:path = Specify the name of the server and the absolute path of the Solaris installation
image that is used for this installation. path is either the path to a mounted Solaris installation media
or a path to a directory with a copy of the Solaris installation media.

-c server_name:path = this option is required only to specify a JumpStart directory for a custom
JumpStart installation. server_name is the host name of the server with a JumpStart directory. path is
the absolute path to the JumpStart directory.

-p server_name: path = this option is used to specify the NFS or ZFS shared directory that contains the
user-defined sysidcfg file. When a client is booted, it attempts to read a file specifically named sysidcfg
in this directory to obtain answers to the system and network identification questions. server_name is
either a valid host name or IP address. path is the absolute pathname of the directory on the file server
that contains the sysidcfg file.

Add – install dhcp in this file.

bash-3.00# vi /tftpboot/menu.lst.010019D17BBB32
"/tftpboot/menu.lst.010019D17BBB32" 5 lines, 327 characters
default=0
timeout=30
title Solaris_10 Jumpstart
kernel /I86PC.Solaris_10-1/multiboot kernel/unix - install dhcp -B
install_config=192.168.1.24:/export/config/,sysid_config=192.168.1.24:/export/config/sysidcfg,install_
media=192.168.1.24:/export/install/,install_boot=192.168.1.24:/export/install/boot
module /I86PC.Solaris_10-1/x86.miniroot

Boot the clients and remember to set the boot priority of the clents to Ethernet