Install and configure jumpstart using Jumpstart Enterprise Toolkit (JET)

Solaris Jumpstart No Comments

In this install blog we are going to setup a jumpstart server using jumpstart enterprise toolkit (jet). This package can be downloaded for free from http://www.sun.com/download/products.xml?id=472a460f

Install all packages:

heineken:/tmp # pkgadd -d jet.pkg

The following packages are available:
1 JetEXPLO jet explo product
(sparc) 3.1.11
2 JetFLASH JET flash product
(sparc) 3.1.8
3 JetJASS JASS product
(sparc) 3.0.14
4 JetRBAC JET RBAC product
(sparc) 1.1.5
5 JetSAN JET san product
(sparc) 3.1.7
6 JetSBD Secure By Default product
(sparc) 1.0.2
7 JetSDS JET sds product
(sparc,i386) 3.4.4
8 JetVTS JET VTS product
(sparc) 3.0.11
9 JetWanBoot JET WanBoot support
(sparc) 1.1.1
10 JetZONES JET Zones module
(sparc) 1.1.12

… 2 more menu choices to follow;
<RETURN> for more choices, <CTRL-D> to stop display:

11 SUNWjet Sun JumpStart Enterpri
se Toolkit
(sparc,i386) 4.4
12 SUNWjetd JET Documentation
(sparc) 3.3.1
Select package(s) you wish to process (or ‘all’ to process
all packages). (default: all) [?,??,q]:

Add /opt/SUNWjet/bin to the path of the root user
heineken:/tmp # PATH=$PATH:/opt/SUNWjet/bin

Create the jet folder structure and export via nfs

heineken:/ # mkdir -p /work/jumpstart/install/pkgs
heineken:/ # mkdir -p /work/jumpstart/install/patches
heineken:/ # mkdir -p /work/jumpstart/install/media

Add to /etc/dfs/dfshares:

share -F nfs -o ro,anon=0 /work/jumpstart/install/patches
share -F nfs -o ro,anon=0 /work/jumpstart/install/pkgs
share -F nfs -o ro,anon=0 /work/jumpstart/install/media

heineken:/ # shareall
heineken:/ # dfshares
RESOURCE SERVER ACCESS TRANSPORT
heineken:/opt/SUNWjet heineken - -
heineken:/work/jumpstart/install/patches heineken - -
heineken:/work/jumpstart/install/pkgs heineken - -
heineken:/work/jumpstart/install/media heineken - -

As i did not use default directories (export/install/…) i have to edit the /opt/SUNWjet/etc/jumpstart.conf file and ensure it reflects my jet folder structure.

JS_PKG_DIR=/export/install/pkgs
JS_PATCH_DIR=/export/install/patches
JS_SOLARIS_DIR=/export/install/media

to…

JS_PKG_DIR=/work/jumpstart/install/pkgs
JS_PATCH_DIR=/work/jumpstart/install/patches
JS_SOLARIS_DIR=/work/jumpstart/install/media

Copy the Solaris media to the jumpstart install directory:

heineken:/ # copy_solaris_media -d /work/jumpstart/install/media -n sol10_0807 /cdrom/sol_10_807_sparc/s0
Copying Solaris image….
Verifying target directory…
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk…
Copying Install Boot Image hierarchy…
Install Server setup complete

Added Solaris image sol10_0807 at the following location:
Media: /work/jumpstart/install/media

removing directory /work/jumpstart/install/7724

Verify the media copied to hard drive:

heineken:/work # list_solaris_locations
Version Location
——- ——–
sol10_0807 /work/jumpstart/install/media

If you already have the Solaris 10 media on hard drive you can use the add_solaris_location command:

heineken:/opt/SUNWjet/bin # ./add_solaris_location 10u4 /work/jumpstart/install/media

Added Solaris image 10u4 at the following location:
Media: /work/jumpstart/install/media

heineken:/opt/SUNWjet/bin # ./list_solaris_locations
Version Location
——- ——–
sol10_0807 /work/jumpstart/install/media
10u4 /work/jumpstart/install/media

The make_template script assists us to create an empty template which will be used to generate a simple jumpstart configuration.

heineken:/work # make_template -f test1
Adding product configuration information for
+ base_config
+ custom
+ sds
+ vts
+ explo
+ flash
+ san
+ jass
+ zones
+ sbd
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates

Without parameters all jet-modules will be integrated into the template, so for our first run simple install lets reduce the amount of module:

heineken:/opt/SUNWjet/Templates # make_template -f grolsch custom
Adding product configuration information for
+ base_config
+ custom
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates

Now for the configuration. Use your favorite editor to edit the template file you just created.

base_config_ClientArch=
base_config_ClientEther=
base_config_ClientOS=

This is the first parameters you have to enter. My first simple test machine is a sunblade 100 under the desk. I want to install Solaris 10 onto it.

base_config_ClientArch=sun4u
base_config_ClientEther=0:3:ba:9:56:50
base_config_ClientOS=sol10_0807

Now we need to identify the system configuration, so find the block with the variable name starting with base_config_sysidcfg:

base_config_sysidcfg_nameservice=NONE
base_config_sysidcfg_network_interface=PRIMARY
base_config_sysidcfg_ip_address=
base_config_sysidcfg_netmask=
base_config_sysidcfg_root_password=”boajrOmU7GFmY”
base_config_sysidcfg_system_locale=”C”
base_config_sysidcfg_timeserver=
base_config_sysidcfg_timezone=”Australia/Victoria”
base_config_sysidcfg_terminal=vt100
base_config_sysidcfg_security_policy=NONE
base_config_sysidcfg_protocol_ipv6=no
base_config_sysidcfg_default_route=

As you can see, the template has filled in what it could. Now let’s finish it off.

base_config_sysidcfg_nameservice=NONE
base_config_sysidcfg_network_interface=PRIMARY
base_config_sysidcfg_ip_address=10.0.0.12
base_config_sysidcfg_netmask=255.255.255.0
base_config_sysidcfg_root_password=”hHUaO5ysq3G4o”
base_config_sysidcfg_system_locale=”C”
base_config_sysidcfg_timeserver=
base_config_sysidcfg_timezone=”Australia/Victoria”
base_config_sysidcfg_terminal=vt100
base_config_sysidcfg_security_policy=NONE
base_config_sysidcfg_protocol_ipv6=no
base_config_sysidcfg_default_route=10.0.0.138

It’s important these values are correct, for if they are not the installation will drop out of automatic and into interactive mode to prompt you for the answers it does not have.

Don’t forget to add an entry to the /etc/hosts on the jet server.

#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
10.0.0.10 heineken loghost
10.0.0.12 grolsch

Right, almost done. We just need to add the details of the client to the server:

heineken:/opt/SUNWjet/bin # ./make_client -f grolsch
…<Snip>
Check of client grolsch
-> Passed….

Unless that last line says anything but ‘passed’ do not continue. It will provide information as to where it failed so you can fix it.

If you did get ‘Passed’ we can move onto the client and start the jumpstart:

ok boot net - install

This is a very simple install. Next we will look at how to setup your preferred disk layouts, your packages and scripts, patches and mirror, all out of the box.

The begin script log ‘begin.log’
is located in /var/sadm/system/logs after reboot.

The finish script log ‘finish.log’
is located in /var/sadm/system/logs after reboot.

References:

http://www.sun.com/bigadmin/content/jet/index.jsp
http://wikis.sun.com/display/JET/Home;jsessionid=5B7F4DAA7C47E18AFD0ACAD779C432B0
http://wiki.c0t0d0s0.org/index.php?title=Jumpstart-Tutorial_%28english%29
http://jet.maui.co.uk/wiki/index.php/Documents

Add new host to jumpstart configuration

Solaris Jumpstart No Comments

Today i want to clone the server anouk to an equivalent ultra10. As this ultra10 is not in the jumpstart list i have to add it. If i dont, i will not be able to jump the new server.  First i must its entry to the /etc/hosts file.

I then need to update the /etc/ethers and /etc/bootparams files. I can also do this by running the following command:

# /work/install/sol10_0807/Solaris_10/Tools/add_install_client -e <mac address of new host> -s anouk:/work/install/sol10_0807 -c anouk:/work/jumpstart -p anouk:/work/jumpstart <name of new server> sun4u

Adding Ethernet number for aclone to /etc/ethers
cleaning up preexisting install client “aclone”
updating /etc/bootparams

I also need to ensure there is a configuration and rules file for the new server, and run the check script to ensure these new files are ok. I will go thru the entire procedure to setup a jumpstart server soon.

Next Entries »