Building a Jumpstart server

By Sandra Henry-Stocker  3 comments

There may be little that's new about using Jumpstart to install Sun servers, but setting up a new jumpstart server is something that I do rarely enough that I want to make the process simpler and more reliable. So, on building a jumpstart server for Solaris 10 05/08, I decided to augment the customary procedure with a few helpful scripts and to document the steps precisely and simply so that I have a reference for next time.

I use a set of Solaris 10 CDs which I burned myself from files downloaded from Sun in this column as many of the systems that I administer and/or can commandeer into service for such things as jumpstart are older systems that don't have the newer CD/DVD drives.

The first stage in setting up a jumpstart server is loading the software on the server. You can call your jumpstart directory anything you want, but /jumpstart or /install will make the point of the directory more obvious. Whatever you call the directory, you will need to refer to it in commands that you will use to load the software ...

1) creating a jumpstart directory

I generally call my jumpstart directories /jumpstart. Some people prefer /install. It doesn't matter as long as you refer to the correct directory in the additional commands you will need to run.

# mkdir /jumpstart

2) load the software

There are two commands for loading the software from the installation media to your jumpstart server. One is for the initial CD. The other is for all subsequent CDs. They both are run from the CDs themselves, so you don't have to go looking for them. The setup_install_server command will initiate the process of setting up your jumpstart server and loading the contents of the first CD. The add_to_install_server command, as the name implies, is used to unload the contents of the remainder of the CD set. Since I am both lazy and distractable, I like to toss little scripts together to help me keep track of where I am in building the server and make sure I issue the commands correctly.

I used the following script to facilitate CD unloading. It keeps a running count of how many CDs have been processed and it returns to / before attempting to eject each CD -- something I often forget to do.


#!/bin/bash

JSDIR="/jumpstart"

if [ ! -f /tmp/CD ]; then
echo 1 > /tmp/CD
fi

ls /cdrom/cdrom0 > /dev/null
if [ $? != 0 ]; then
echo -n "Please insert CD # $CD and press enter> "
read ans
fi

cd /cdrom/cdrom0/Solaris_10/Tools

case $CD in
1) ./setup_install_server /$JSDIR;;
*) ./add_to_install_server /$JSDIR;;
esac

cd /
eject

CD=`expr $CD + 1`

if [ $CD == 5 ]; then
echo "Done!"
exit
fi

echo $CD > /tmp/CD

I might call the script "unload" or "next" or "doit", but I archive it in a directory with other jumpstart notes so that I'll easily find it when I set up another jumpstart server maybe next year. I might have to change a few things when I use it again, but the procedure is likely to be basically the same.

The output from the script and the add_to_install_server will look something more or less like this:


The following Products will be copied to /jumpstart/Sol10-0508/Solaris_10/Product:

Solaris_4

If only a subset of products is needed enter Control-C and invoke ./add_to_install_server with the -s option.

Checking required disk space...

\
Copying Top Level installer...
133712 blocks

Copying Tools Directory...
4416 blocks
|

Processing completed successfully.

3) enable tftpd

Once the Solaris software is loaded on your server, you need to enable tftpd -- the trivial ftp server. This simplified ftp software uses UDP and provides no security features, but it's quick and often used for booting diskless systems and, in our case, for jumpstarting a server.

To enable tftpd, remove the comment from its line in the /etc/inetd.conf file and then run "inetconv". You can then verify that the service is active using the svcs command:


# perl -p -i -e "s/^#tftp/tftp/" /etc/inetd.conf
# grep tftp /etc/inetd.conf
# TFTPD - tftp server (primarily used for booting)
tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot
# inetconv
inetconv: Notice: Service manifest for 100235/1 generated as /var/svc/manifest/network/rpc/100235_1-rpc_ticotsord.xml
# svcs | grep tftp
online Jun_27 svc:/network/tftp/udp6:default

Once you've done this, you can disable and re-enable the service with the svcadm command like this:


# svcadm disable svc:/network/tftp/udp6:default
# svcadm enable svc:/network/tftp/udp6:default

It will probably take you a couple hours to set up your jumpstart server using a set of five CDs like I did. With your jumpstart server ready, you can start setting up the profiles you will need to specify how your clients will be installed. We'll pick up with this next week.

3 comments

    Anonymous 3 years ago
    Try the Sun jumpstyart toolkit: http://www.sun.com/bigadmin/content/jet/Makes life much easier. And there is updated docuemntation being written http://www.c0t0d0s0.org/archives/4440-Really-early-preview-of-the-JET-tutorial..html
    Anonymous 3 years ago
    Will this process apply to jumpstart Linux? If not what are the necessary step to start a Linux as jumpstart server?Let me know!
    Anonymous 1 year ago in reply to Anonymous
    Jumpstart on Linux:http://gdwarner.blogspot.com/2010/02/solaris10-sparc-jumpstart-from-linux.html

      Add a comment

      Post a comment using one of these accounts
      Or join now
      At least 6 characters

      Note: Comment will appear soon after you have activated your account.
      Obscene/spam comments will be removed and accounts suspended.
      The information you submit is subject to our Privacy Policy and Terms of Service.

      ITworld LIVE

      SoftwareWhite Papers & Webcasts

      White Paper

      Best Practices Guide: Microsoft Exchange 2010 on VMware

      This guide provides best practice guidelines for deploying Exchange Server 2010 on vSphere.

      White Paper

      Free Trial: vRanger, the Powerful VMware Recovery Solution

      When disaster strikes, don't waste hours and dollars recovering critical data. vRanger delivers blazing-fast speed and granular recovery for your VMware applications and data. Get your free trial today.

      White Paper

      Executive Guide to Business and Software Requirements

      This paper is designed as an executive briefing on the issues surrounding business and software requirements. It features a wealth of statistics and tactics to help you get requirements right, and includes a tear-out single page summary.

      White Paper

      How to Launch a Successful IT Automation Initiative

      Corporations across all industries are under increasing pressure to cut costs and work more efficiently. In the race to meet both of these requirements, many organizations turn to technology, often purchasing and installing disparate pieces of software in hopes of achieving efficiencies not afforded by manual systems.

      White Paper

      Why Corporations Need to Automate IT Systems Management

      With corporate budgets being slashed and leaders expecting more out of their employees, companies are forced to do more with less, yet are still expected to provide the highest quality experience to customers. This is pushing them to make better use of their IT assets without breaking the budget. Companies are under more pressure than ever, thanks to data management regulations; increasingly complex security threats; and growing demand from management and end users for 24/7 uptime and high performance. These hurdles require a strategic investment in technologies that boost efficiency, save money and position IT as an integral part of the entire firm's operations. IT systems management is helping corporations fill these gaps.

      See more White Papers | Webcasts

      Ask a question

      Ask a Question