This is meant to provide a step-by-step walk-through on how to build a simple JumpStart server.
For more details on further capabilities of JumpStart and other advanced installation topics please visit the following link:
http://docs.sun.com/app/docs/coll/1236.6
Requirements:
Approx. 4GB of disk space for Solaris 10 on JumpStart server.
Solaris 10 DVD or CD media kit.
Procedures:
1. Create a copy of the Solaris 10 media kit image on the local disk drive of JumpStart server.
a) Create a directory for the Solaris OE image. This is an example of a directory created for the Solaris 10 06/06 release.
# mkdir -p /export/JumpStart/Solaris/10/0606
b) Insert the Solaris 10 DVD into the DVD drive and run the following command.
# cd /cdrom/cdrom0/s0/Solaris_10/Tools
# ./add_install_server /export/JumpStart/Solaris/10/0606
c) If you have the CD collection instead of the DVD do the following,
Insert CD 1 into the system’s CD ROM drive.
# cd /cdrom/cdrom0/s0/Solaris_10/Tools
# ./add_install_server /export/JumpStart/Solaris/10/0606
After the first CD completes
# cd /
# eject cdrom
Insert CD 2
# cd /cdrom/cdrom0/Solaris_10/Tools
# ./add_to_install_server /export/JumpStart/Solaris/10/0606
Repeat this process with the rest of the CD media kit until you have a complete copy of the Solaris 10 image.
2. Create JumpStart configuration files.
a) Create a directory to hold configuration files.
# mkdir -p /export/JumpStart/config
b) Create client system identification file.
# vi /export/JumpStart/config/sysidcfg
network_interface=PRIMARY {
netmask=255.255.255.0
protocol_ipv6=no
default_route=192.168.1.1
}
security_policy=none
name_service=none
timezone=US/Eastern
system_locale=en_US
timeserver=localhost
root_password=uHL9FDUAkZpGs
terminal=vt100
nfs4_domain=dynamic # New to Solaris 10 8/07
- You will need to modify the default route setting.
- The root password provided is ‘password’. Use a known encrypted password from /etc/shadow to change this setting.
- Timezone settings are relative paths to a timezone file held under /usr/share/lib/zoneinfo/
- The nfs_domain parameter is new to Solaris 10 8/07 in order to suppress the installation program from asking about the NFS v4 domain
c) Create client configuration.
# vi /export/JumpStart/config/rules
hostname HOSTNAME - profile1 finish.sh
- Replace HOSTNAME with the hostname of your JumpStart client.
- The file rules has to be named rules
- The files profile1 and finish.sh can be named anything you want.
# vi /export/JumpStart/config/profile1
install_type initial_install
system_type standalone
cluster SUNWCXall
partitioning explicit
filesys c1t0d0s0 2000 /
filesys c1t0d0s1 1024 swap
filesys c1t0d0s3 8000 /usr
filesys c1t0d0s4 3000 /opt
filesys c1t0d0s5 5000 /var
filesys c1t0d0s7 free /export
- Modify the c#t#d#s# numbers to match the drive you will want to install Solaris on your JumpStart client.
# vi /export/JumpStart/config/finish
touch /a/noautoshutdown
cat > /a/etc/resolv.conf <<!
domain mydomain.com
nameserver 192.168.1.1
!
cp /a/etc/nsswitch.dns /a/etc/nsswitch.conf
- Replace the above IP address and domain to reflect your environment.
Here is an example of a profile that could be used to automatically mirror your disk drives. You must have two disk drives and you will need to know the c#t#d#s# numbers for both drives.
# vi /export/JumpStart/config/profile_mirror
install_type initial_install
system_type standalone
cluster SUNWCXall
partitioning explicit
filesys mirror:d0 c1t0d0s0 c1t1d0s0 2000 /
filesys mirror:d1 c1t0d0s1 c1t1d0s0 1024 swap
filesys mirror:d3 c1t0d0s3 c1t1d0s3 8000 /usr
filesys mirror:d4 c1t0d0s4 c1t1d0s4 3000 /opt
filesys mirror:d5 c1t0d0s5 c1t1d0s5 5000 /var
filesys mirror:d7 c1t0d0s7 c1t1d0s7 free /export
metadb c1t0d0s6 count 3
metadb c1t1d0s6 count 3
d) Run the check script to confirm the proper syntax of these files.
# cp /export/JumpStart/Solaris/10/0606/Solaris_10/Misc/jumpstart_sample/check /export/JumpStart/config
# cd /export/JumpStart/config
# ./check
- If the check script runs successfully you will have a file called rules.ok. Use the ls command to confirm the creation of this file.
e) Put the client host network information is in the /etc/hosts and /etc/ethers files.
# vi /etc/hosts
IP.Address HOSTNAME# vi /etc/ethers
Ethernet:Address HOSTNAME
- Replace HOSTNAME with the name or your jumpstart client
- Replace IP.Address and Etheret:Address with the IP and ethernet address of your jumpstart client.
3. Add the new client to the jumpstart server.
Run add_install_client on JumpStart server. This command will create the /etc/bootparams file and the /tfptboot directory if they do not already exist. If they do already exist, then they will be updated with the new client information. The /tftpboot directory will hold a copy of the network bootstrap image for the client, and the /etc/bootparams file will contain an entry for each new client defining where it will find the the sysidcfg and rules.ok configuration files.
# cd /export/JumpStart/Solaris/10/0606/Solaris_10/Tools
# ./add_install_client -p JS_Server:/export/JumpStart/config -c JS_Server:/export/JumpStart/config HOSTNAME sun4u
- You will need to make sure that /export/JumpStart/config is shared via NFS
- You will need to make sure that /export/JumpStart/Solaris/10/0606 is shared with ro,anon=0 options.
- Replace JS_Server with the IP address or hostname of your JumpStart server
You can now jumpstart the client host by running the following boot command at the client’s boot PROM.
ok boot net – install