Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Fully automated Jumpstart setup

Posted on 2005-04-07
Medium Priority
Last Modified: 2013-12-27
I have setup a jumpstart server to install Solaris 8.  I have a bunch of machines that I need to do the exact same install.  I would like to set up my config so that I'm not prompted for anything at the console.  Is that possible?  Is there a list of parameters that I can use?
Question by:teckwiz01
  • 10
  • 7

Author Comment

ID: 13731547
When I say anything, I mean anything.. So that the only thing I type at the console is "boot net - install"..  I have a lot of it already set up.. But part of it isn't working..  And the other part isn't enought.. Can't figure out a parameter that cover the software selection; like if I want to just install the "Entire Distribution", or just "Core".  Or to make sure I don't get prompted for how I want disk layed out.  Things like that..
LVL 10

Expert Comment

ID: 13732102
you need to have a file called sysidcfg, that might look like here:


then you need to create a file called rules that reads

any any - profile1 myfinishscript

and a file called profile1 that looks like here:


(its the parameter "cluster SUNWCuser" that stands for enduser installation, SUNWCXall would be entire with oem)

and a file called "myfinishscript" that reads

touch /a/noautoshutdown
(and you can add whatever you want to do after the installation)

then copy the "check" script (that you can find in jumpstart-sample) to the directory where you created rules/profile1
after running "check" in that directory, you get a rules.ok-file

the place where sysidcfg is must be mentioned in the -p option of "add_install_client" and the rules.ok/profilething is referenced by the -c option

Author Comment

ID: 13732182
Yeah, I figured out part of my problem.  The jumpstart server's subnetmask was different than what I was setting for the client, so it couldn't find the jumpstart directory.  I got past that, but not without having to answer like 2 questions before it looked for the jumpstart directory, any way around that?

You mentioned a finishscript, is there begining script that takes care of the above?  I didn't have a finish script before I started with the first server.  This is what I did create (anything I should add):

I have this in my sysidcfg config now:
network_interface=hme0{netmask= protocol_ipv6=yes}

This in my rules file, which may need changing:
any -   -   any_machine  -

This in my profile:
# more profile
install_type    initial_install
system_type     standalone
partitioning    explicit        
cluster         SUNWCall
filesys         c0t0d0s0 2048 /
filesys         c0t0d0s1 1024 swap
filesys         c0t0d0s3 1024 /var
filesys         c0t0d0s4 3072 /apps
locale          en_US

created a build script to make add_install_client easier:
cd /CDimage/Solaris_8/Tools/
./add_install_client -e MAC -s jpserver:/CDimage -c jpserver:/jumpstart -p jpserver:/jumpstart -n jpserver:none jpclient1 sun4u

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 10

Expert Comment

ID: 13732214
it depends  little on your sol8-version. you may need to add default_route like this:

network_interface=primary {netmask= protocol_ipv6=yes default_route=}

what are the questons that are being asked ?

Author Comment

ID: 13732284
Honestly, I don't remember of the top of my head.  The screen is gone (GUI screen, Sun Monitor connected the VGA port on Ultra 10).  But it was two generic prompts that just required you to click on continue. Then it start checking for the location of the jumpstart directory.  If it can't be avoided, it not a real big deal, but I would like to get rid of them.


Author Comment

ID: 13732330
By the way, at the end it ask those two annoying questions about powersave.  How can I set that in the config files so that it auto answers them?  

Setting nsswitch.conf and resolve.conf, is that something I program into that finish script?  If so, how?

Author Comment

ID: 13732347
And commenting out the #CONSOLE=/dev/console line in /etc/default, is that something that the finish script can take care off too?

Author Comment

ID: 13732361
One last thing..  I read somewhere that you can set up the config file to have a generic root password; something like root_password=abc123.  But when I tried that, gave up an error line 18 on the screen.  Did I misread or was the information in error?
LVL 10

Expert Comment

ID: 13732393
the first to "questions" (that are not really questions) are only being displayed if there are other (real) questions to answer. as soon as all real questions have an answer in one of the config files then these two "ok-only-questions" dont come anymore.

to make the machine you want to install a dns-client (your question about the resolv.conf/nsswitch.conf take a look at the url I mentioned above (http://www.tcsa.org/auto_install/sld015.htm) important part is the nameservice-line

as for the powersave question, specify a finish script that contains "touch /a/noautoshutdown" (as specified in my first comment)

one thing you are missing in your sysidcfg is root_password which should be the encrypted string, the way it will later be in /etc/shadow
LVL 10

Expert Comment

ID: 13732407
commenting out the console entry can be done in the finish script too...
something like this

sed 's/^CONSOLE/#CONSOLE/' /a/etc/default/login >7tmp/login
mv /tmp/login /a/etc/default/login


Author Comment

ID: 13740114
Actually, there were 3 things that popped up at the begining.  2 of them were kind of notification stuff and the third was to set the date & time information.  Right after that, it said the system identification was completed and started the install..  Is there a way to include that in the config or profile?  

BTW:  The syntax for that sed command didn't work..
LVL 10

Expert Comment

ID: 13742723
try using a timeserver of in your sysidcfg... i remember there was an error in a Solaris 8 Distribution that did not take other timeservers than the client itself.

about the sed...

sed 's/^CONSOLE/\#CONSOLE/' /a/etc/default/login >/tmp/login

should work.

Author Comment

ID: 13755422
Thanks.. I should have mentioned that I fixed the syntax on sed.  Just wanted it noted cause someone else might end up reading this looking for the same solution I was searching.

As for the timeserver thing, do you know which Solaris 8 Distribution had that issue?
I'm going to look it up myself, but let me know if you know just in case I don't find it.  
I will try your suggestion on the timeserver.  Hopefully that's the reason.  Thanks..
LVL 10

Expert Comment

ID: 13757344
i think it's the February-02 Version.... but i'm not sure...

Author Comment

ID: 13871907
Ok.. I've got everything pretty much working, for the exception of the initial 2 questions it ask.  Before I close this, I just want to know.  Has anyone ever setup a jumpstart server where the only thing you had to do on the client is boot - net install?  If so, what am I missing?

I noticed a long time ago that someone had a jumpstart server setup that allowed them setup different builds for each type of hardware & environment.  Like different for building a 4500 than an Enterprise 2, etc...  And different build for a DB server than a web server.  How is that done?
LVL 10

Accepted Solution

neteducation earned 200 total points
ID: 13873325
I've done/seen hundreds of jumpstart-servers where the client does only boot net - install... this is mostly because I am teaching courses for sun, and in SA-299-Course you actually do jumpstart-servers.

You speak of "initial 2 questions"....

There are 2 "Information"-Screens which do only show up (and you have to click ok) if there are more questions, so if there is really NO other question, then those screens dont show up eigther.

So I am pretty sure that there must be some "real" question in your case.

Btw: Concerning the question about the time being asked... I found out that putting the ip-address of the jumpstart-server should work also with the "buggy" version.

Doing different setups for different machines is done through the "rules" file.

Suppose you want to have a specific setup for one machine then you put something like

hostname mymachine - profilemymachine mymachinefinishscript

(and in profilemymachine you have the setup for that machine and in mymachinefinishscript you have any customisation)

or suppose you want to have a specific setup for all machines with 256-512mb of ram then you do

memsize 256-512 - otherprofile otherfiniscript

There is a nice example in the Misc-Directory.

After putting things into this rules-file, be sure to run the check-script, so that your rules.ok file is newly generated.

The lines in there are read sequentially, so as soon as a client finds a matching rule, then it will take it an dinstall according to that profile


Author Comment

ID: 13878307
Great.. Thanks.. I think you're right about there being a real question.  I believe its because I was still placing an IP for the time server other than the jumpstart server itself.

Thanks for all the answers and suggestions.  This case can now be closed.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question