JumpStart

From AdminWiki

Jump to: navigation, search

Contents

Solaris JumpStart; an advanced network installation

The JumpStart method is a command–line interface that enables you to automatically install several systems with profiles defining specific software installation requirements, based on the profile and scripts that you select.

Enable the JumpStart Server

You can find the installation script on your Solaris Installation CD/DVD

/cdrom/cdrom0/s0/Solaris_9/Tools/setup_install_server <installation-directory>

With the CD version you will have to add the other CDs as well.

/cdrom/cdrom0/s0/Solaris_9/Tools/add_to_install_server <installation-directory>


Configure the JumpStart

Create a configuration directory and create your own "sysidcfg" file

network_interface=primary { protocol_ipv6=no
       		            netmask=<netmask>
             		    default_route=<gateway IP> }
	security_policy=none
	name_service=none
	timezone=<your timezone>
	system_locale=<your locale>
	root_password=2SYK9mIp66I5M (that would be "test", that's a shadow password)
	terminal=vt100
	timeserver=localhost


Create a custom profile:

install_type initial_install
	system_type server
	partitioning explicit
	filesys c0t0d0s0 8192 /
	filesys c0t0d0s1 2048 swap
	filesys c0t0d0s3 4096 /var
	filesys c0t0d0s4 free /DATA
	filesys c0t0d0s7 256
	cluster SUNWCall


Create a "rules" file

hostname <hostname> - <profilename> -


Copy the check script from your JumpStart Installation in your configuration directory and run it once. This will check your configuration and create a rules.ok file

# cp <installation-directory>/Solaris_9/Misc/jumpstart_sample/check <configuration-directory>
# /<configuration-directory/check


Now enter the name and the MAC-addresse of the client you want to install into /etc/hosts and /etc/ethers

# echo "<IP>\t<hostname>" >> /etc/hosts
# echo "<MAC>\t<hostname>" >> /etc/ethers


Add the Installation Client to your JumpStart:

# /<installation-directory>/Solaris_9/Tools/add_install_client -c <localhostname>:<configuration-directory> \
-p <localhostname>:<configuration-directory> <clientname> <platform, e.g.: sun4u>


Don't forget to share the "installation-directory" and the "configuration-directory" with NFS

# share -F nfs -o ro,anon=0 <installation-directory>
# share -F nfs -o ro,anon=0 <configuration-directory>


Ready, now just boot your Client with the following option

{0}OK>  boot net - install


some extra configuration examples

sysidcfg

	name_service=[NIS|NIS+|DNS|LDAP|OTHER|NONE]
	network_interface=[NONE|PRIMARY|VALUE]
	root_password=[grep it from /etc/shadow]
	security_policy=[kerberos|NONE]
	system_locale=[could be found in /usr/lib/locale]
	terminal=[could be found in /usr/share/lib/terminfo]
	timezone=[could be found in /usr/share/lib/zoneinfo]
	timeserver=[localhost|hostname|ip]

rules

one machine:

hostname <name> <startscript> <profilename> <stopscript>
hostname test - profile_test -

network with exceptions:

network <net-id> && ! '<class>' <startscript> <profilename> <stopscript>
network 192.168.133.0 && !'SUNW,Ultra5_10' - profile_nonU5 -

all machines from one type:

model '<class>' <startscript> <profilename> <stopscript>
model 'SUNW,Ultra5_10' - profile_allU5 -

hardware specific, e.g. all sparcs with less ram:

memsize 128-256 && arch sparc - profile -

any mashine:

any - - profile -

profile

	install_type=[initial_install|upgrade|flash_install]
	system_type=[standalone|dataless|server]
	partitioning=[default|existing|explicit]
	cluster=[add|delete] <ClusterName>
	package=[add|delete] <PackageName>
	usedisk=[disk]
	dontuse=[disk]
	filesys=[c?t?d?s?]

the default SunInstallationCluster names

	CORE = SUNWCreq
	EndUser = SUNWCuser
	Developer = SUNWCprog
	EntireDist = SUNWCall
	ED+OEM = SUNWCXall

Profile example for a Flash Installation

	install_type flash_install
	archive_location nfs <IP>:<NFS-SHARE>/<FLASH-Archive>
	partitioning explicit
	filesys c0t0d0s0 4096 /
	filesys c0t0d0s1 2048 swap
	filesys c0t0d0s4 4096 /var
	filesys c0t0d0s5 free /data
	filesys c0t0d0s7 256



external links

Dokumentation from Sun

Personal tools