JumpStart

From pressy's brainbackup
Jump to: navigation, search

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

A small and simple HowTo:

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>
# mkdir /export/install
# cd /cdrom/cdrom0/s0/Solaris_9/Tools
# ./setup_install_server /export/install (CD+DVD)
# CD2/3/4; /cdrom/cdrom0/Solaris_9/Tools
# ./add_to_install_server /export/install (more CDs)

Configure the JumpStart

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

# mkdir /export/config
# vi /export/config/sysidcfg
network_interface=primary { protocol_ipv6=no
       		            netmask=<netmask>
             		    default_route=<gateway IP> }
	security_policy=none
	name_service=none
	timezone=<your timezone, eg.: Europe/Vienna from: /usr/share/lib/zoneinfo/>
	system_locale=<your locale, eg.: C from: /usr/lib/locale/>
	root_password=2SYK9mIp66I5M (that would be "test", that's a shadow password)
	terminal=vt100
	timeserver=localhost
	nfs4_domain=dynamic (for Solaris10)
        auto_reg=disable (for Solaris10u9++)

Configure the rules and profiles for the client

Create a custom profile:

# vi /export/config/rules
	hostname <hostname> - <profilename> -
# vi /export/config/<profilename>
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

Prepair the client configuration and check the config

	- host into /etc/hosts
	- MAC into /etc/ethers 
	  0:3:ba:a:13:e0 <name>

# cd /export/install/Solaris_9/Tools
# ./add_install_client -c <localhostname>:/export/config \
-p <localhostname>:/export/config <clientname> <platform, eg: sun4u>
# share –F nfs –o ro,anon=0 /export/install
# share –F nfs –o ro,anon=0 /export/config

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
[client] {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

Profile example for a Flash installation with automatic Bootdisk mirror

        install_type flash_install
        archive_location nfs <IP>:<NFS-SHARE>/<FLASH-Archive>
        partitioning explicit
        filesys mirror:d10 c0t0d0s0 c0t1d0s0 4096 /
        filesys mirror:d20 c0t0d0s1 c0t1d0s1 2048 swap
        filesys mirror:d30 c0t0d0s4 c0t1d0s4 4096 /var
        filesys mirror:d40 c0t0d0s5 c0t1d0s5 free /data
        metadb c0t0d0s7 size 8192 count 3
        metadb c0t1d0s7 size 8192 count 3

add_client example

# ./add_install_client -i <IP> -e <mac> -s <server>:/<share>/conf \
  -t /<PATH>/Solaris_9/Tools/Boot -c <server>:/<share>/conf \
  <clientname> <platform>

Install only the Boot Server

# ./setup_install_server -b <where_to>

Sample profile for ZFS-FlashArchives

install_type flash_install 
archive_location nfs <IP>:/flash/<flash-name> 
partitioning explicit 
pool rpool auto 10g 4g c0t0d0s0 
bootenv installbe bename sol10u9 

Booting with fixed LAN Speed

{ok} boot /pci@1e,600000/network@2:speed=1000,duplex=full - install  



external links

Dokumentation from Sun