Search This Blog

Thursday, January 13, 2011

Jumpstart Installation on Solaris 10 x86 Machine

bash-3.00# mkdir -p /export/install   //this is the jumpstart directory

bash-3.00# cd /cdrom/cdrom0/Solaris_10/Tools

bash-3.00# ./setup_install_server /export/install

bash-3.00# du -sk /export/install/    //check whether all the contents are present
2246131 /export/install

bash-3.00# cd /export/config/    //server configuration setting directory

bash-3.00# ls    //these are the files to be present in this directory
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=<copy_from_/etc/passwd>
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    //optional
"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
cluster SUNWCall
fdisk all solaris allpartitioning explicit
filesys rootdisk.s0 6144 /
filesys rootdisk.s1 1024 swap
filesys rootdisk.s7 free  /export/home
system_type standalone

bash-3.00# vi finish   //optional
"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# ./check
Validating rules...
Validating profile profile...
The custom JumpStart configuration is ok.
bash-3.00# vi rules.ok   //this is the file that will be created after the check script is executed
"rules.ok" 2 lines, 68 characters
hostname client i386 begin profile finish
# version=2 checksum=3849
note the permissions of all the file
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# 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  //start the nfs server
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

descriptions of ./add_install_client options
-d = specify dhcp client on a x86 machine

-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.

-c server_name:path = this option is required only to specify a JumpStart directory for a custom JumpStart installation.

-p server_name: path = this option is used to specify the NFS or ZFS shared directory that contains the user-defined sysidcfg file.


Once you are done with this, follow the screen-shots at this link
http://www.scribd.com/doc/46599344/Jumpstart-server-installation-on-Solaris-10-x86-Machine



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 clients to Ethernet

I couldn't succeed with the complete installation...
was getting errors, few of them are
- no driver binding
- no driver attached


after exiting shell. . .
- i got jumpstart directiry not found
- rules.ok could not be matched


i wish u guys find this documentation helpful and u turn out successful...u can also follow this link and understand the aspects in a broader perspective
http://www.scribd.com/doc/47347274/Jumpstart-Documentation

No comments:

Post a Comment