Thursday, May 25, 2006

Setting up Sun's JET for dhcp boot and install

This entry will describe setting up JET (using version 4.3.1) to enable sparc clients to boot using dhcp. Booting x86 clients will be tackled and posted in a later blog.

1: Download and install Jet.

The latest version of JET can be downloaded from:

http://www.sun.com/bigadmin/content/jet

and documentation/resources on:

http://jet.maui.co.uk

Install the jet toolkit into /opt/SUNWjet:

# pkgadd -d jet.pkg

This will create the directory structure in /opt/SUNWjet and also create a sample template in the Templates directory.

2: Setup Jumpstart.conf

Before loading the Solaris or Product media, we first need to set the jumpstart.conf file and create the necessary directories for the media and software we're going to install. Jumpstart.conf lives in /opt/SUNWjet/etc and sets the following variables:

JS_Default_Root_PW=boajrOmU7GFmY
JS_BUILD_DIR=/var/opt/sun/jet
JS_PKG_DIR=/u01/install/pkg
JS_PATCH_DIR=/u01/install/patch
JS_SOLARIS_DIR=/u01/install
JS_DHCP_VENDOR="SUNW.Ultra-5_10 SUNW.Ultra-30 SUNW.Sun-Fire-V440"
JS_CLIENT_MANAGEMENT="dhcp bootp"
#JS_CLIENT_MANAGEMENT="bootp"

In this particular setup, I'm going to install the Solaris 10 Sparc media into /u01/install directory, my packages into /u01/install/pkg and patches into /u01/install/patch. These directories need creating once jumpstart.conf has been updated:

# mkdir -p /u01/install/pkg
# mkdir -p /u01/install/patch

The other changes required are to setup the jumpstart server to accept DHCP boot requests from clients:

JS_CLIENT_MANAGEMENT="dhcp bootp"

and also the machine type which will be used to setup the dhcp client macro class. In this example, I'm booting a Sun Fire V440. Platform types can be found in /platform on any Solaris server:

JS_DHCP_VENDOR="SUNW.Ultra-5_10 SUNW.Ultra-30 SUNW.Sun-Fire-V440"

3: Use the Jet utilities to copy in the Solaris Media

Once setup, we can now copy in the Solaris media. In this example, I was using a copy of the Solaris 10 01/06 DVD. Use the copy_solaris_media in /opt/SUNWjet/bin to copy the media into the /u01/install directory. The subdirectory for the media is specified by passing the -d flag to the copy_solaris_media utility:

# ./copy_solaris_media -d 10-0106s /cdrom/sol_10_106_sparc/s0

Once this is complete, you can check whether the copy has been successful by running list_solaris_locations:

# ./list_solaris_locations
Version Location
------- --------
10 /u01/install/10-0106s

The version tag is used to identify which OS is installed on your client, defined by the base_config_ClientOS variable set in the client template, but more of that later.

4: Use the JET utilities to copy in the Solaris product media.

The JET package bundle comes with some base modules in addition to the base_config product (which installs the OS). These include:

custom - for customising client builds
jass - for hardening client builds
vts - virtual hardware tester
san - the Sun SAN packages
explo - for Sun Explorer
zones - for Solaris zones modules
flash - for building from flash archives
sds - for setting up SDS metadevices

In my custom client build, I will be installing vts and explo, so will use the JET utility, copy_product_media to copy in the vts and explo software:

# ./copy_product_media vts 6.1 /u01/software/vts sparc
Transferring sunwvtsts package instance
Transferring sunwvts package instance
Transferring sunwvtsmn package instance
Transferring sunwvtsr package instance

Packages copied.

# ./copy_product_media explo 5.4 /u01/software/explo sparc
Transferring sunwexplo package instance
Transferring sunwexplu package instance

Packges copied.

This will copy the product media into the:

${JS_PKG_DIR}/module/version/cpu

directory structure, which will be used by the post_install scripts as the source location of the product to be installed. If a version of the software is not supported, for example, Explorer 5.4 had not been added to the toolkit, the module's package.matrix file can be updated to reflect the new version.

5: Use the JET utilities to copy in custom product media.

For this client installation, I plan on installing a couple of Solaris freeware packages, lsof and sudo. These can be added to the custom product directory using the copy_custom_packages utility, an example of adding lsof is shown below.

# ./copy_custom_packages /u01/software/freeware/lsof-4.76-sol10-sparc-local sparc SMClsof
Transferring smclsof package instance
Packages copied

This package can then be installed on the client by entering the name of the package into one of the custom_package template variables.

6: Setup DHCP.

This jumpstart configuration will setup a local dhcp server on the jumpstart server. This is the easiest configuration and safe because the dhcp server will only respond to those clients which are configured for jumpstart.

The first task is to setup the local dhcp server, fortunately, this has been done for you in a script /opt/SUNWjet/Products/base_config/solaris/make_dhcp. The file first needs updating to include the network which you plan on jumpstarting on.

Set the network variables defined in the script and execute to create the basic dhcp server service with network macro.

NETWORK=192.168.16.0
NETMASK=255.255.240.0
ROUTER=192.168.16.1

# ./make_dhcp
Created DHCP configuration file.
Created dhcptab.
Added "Locale" macro to dhcptab.
Added server macro to dhcptab - s1prdmgt01.
DHCP server started.
Added network macro to dhcptab - 192.168.16.0.
Created network table.

The basic dhcp server can be checked by running:

# dhtadm -P
Name Type Value
==================================================
192.168.16.0 Macro :Subnet=255.255.240.0:Router=192.168.16.1:Broadcst=192.168.31.255:
s1prdmgt01 Macro :Include=Locale:Timeserv=192.168.17.72:LeaseTim=86400:LeaseNeg:
Locale Macro :UTCoffst=0:

and:

# svcs dhcp-server
STATE STIME FMRI
online 14:19:59 svc:/network/dhcp-server:default

7: Create the client template.

The first template I normally build just contains the base_config module (the default module) and installs the minimum Solaris metacluster. The initial requirement is just to get the boot net and install working, we can customize the build later. From my experience, it is much wiser to build up the Solaris image using each module, rather than attempting to do an initial build using the sample template which is created.

# ./make_template v440 base_config
Adding product configuration information for
+ base_config
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates


Filling in the template is self explanatory, I'll concentrate on the most important variables:

base_config_client_allocation="bootp dhcp grub"

defines how the client is going to boot on the network. We're going to configure our client to boot dhcp, so set this appropriately.

base_config_profile_usedisk=rootdisk.

defines which disk is used to install the image onto. The default is rootdisk. which normally detects the default disk, if it doesn't it can be defined here.

8: Make the client template.

The next step is to populate the client configuration directory using the make_client utility in /opt/SUNWjet/bin: The -f flag can be used to force an overwrite of a previous configuration. However, this will not remove the dhcp client configuration. To achieve this, use the remove_client utility.

At this stage, we're also populating the dhcp tables with our client information and vendor type which will be booting on the network using dhcp.

# remove_client v440
Gathering network information..
Client: 192.168.17.99 (192.168.16.0/255.255.240.0)
Server: 192.168.17.72 (192.168.16.0/255.255.240.0, SunOS)
Solaris: client_deallocate_dhcp.SunOS

# make_client -f v440
Gathering network information..
Client: 192.168.17.99 (192.168.16.0/255.255.240.0)
Server: 192.168.17.72 (192.168.16.0/255.255.240.0, SunOS)
Solaris: client_prevalidate
Clean up /etc/ethers
Solaris: client_build
Creating sysidcfg
WARNING: no base_config_sysidcfg_timeserver specified using JumpStart server
Creating profile
Adding base_config specifics to client configuration
Solaris: Configuring JumpStart boot for v440
Starting SMF services for JumpStart
Solaris: Configure DHCP build
Adding install client
Supporting VENDOR=SUNW.Ultra-5_10 SUNW.Ultra-30 SUNW.Sun-Fire-V440
Configuring v440 macro
Using local dhcp server
DHCP configuration complete
Running '/opt/SUNWjet/bin/check_client v440'
Client: 192.168.17.99 (192.168.16.0/255.255.240.0)
Server: 192.168.17.72 (192.168.16.0/255.255.240.0, SunOS)
Checking product base_config/solaris
--------------------------------------------------------------
Check of client v440
-> Passed....

8: Boot the client.

From the okay prompt, boot the client:

{0} ok boot net:dhcp - install

SC Alert: Host System has Reset
Probing system devices
Probing memory
ChassisSerialNumber 0546AL653A
Probing I/O buses

Sun Fire V440, No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.16.4, 4096 MB memory installed, Serial #65405365.
Ethernet address 0:3:ba:e6:1:b5, Host ID: 83e601b5.



Rebooting with command: boot net:dhcp - install
Boot device: /pci@1c,600000/network@2:dhcp File and args: - install
/pci@1c,600000/network@2: 1000 Mbps full duplex link up
4000 /pci@1c,600000/network@2: 1000 Mbps full duplex link up
boot: lookup /dhcp/OS_10/Solaris_10/Tools/Boot failed
SunOS Release 5.10 Version Generic_118822-25 64-bit
Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

The client *should* boot, mount the Solaris image and install.

Troubleshooting:

1. When performing a boot net:dhcp - install, this error is returned. The dhcp service is not running and needs to be restarted.

TFTP server's IP address not known!
Evaluating:

Boot load failed

{1} ok

restart the dhcp-service:

# svcadm restart dhcp-server

2. If the install goes interactive and prompts for confirmation of the time, it may be because the time service on the jumpstart server has been disabled. This assumes of course you're using the jumpstart server as the time source!

Enable the time source by:

# svcadm enable time:stream

and if using tcp_wrappers check that clients are able to connect to the service by updating /etc/hosts.allow

21 comments:

Anonymous said...

Howdy,

I mostly visits this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]You have really contiributed very good info here stuhorsman.blogspot.com. Let me tell you one thing guys, some time we really forget to pay attention towards our health. Here is a fact for you. Research presents that about 60% of all U.S. adults are either obese or overweight[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] Therefore if you're one of these citizens, you're not alone. In fact, most of us need to lose a few pounds once in a while to get sexy and perfect six pack abs. Now the question is how you are planning to have quick weight loss? You can easily lose with with little effort. You need to improve some of you daily habbits to achive weight loss in short span of time.

About me: I am blogger of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also health trainer who can help you lose weight quickly. If you do not want to go under difficult training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for effective weight loss.

Anonymous said...

gr8

Anonymous said...

must check registry cleaner at my estore

Anonymous said...

DizXqn [url=http://www.bootsshowjp.com/]UGG ムートン [/url] YcwUqn http://www.bootsshowjp.com/ WpoIjn [url=http://www.mutonbu-tsu.com/]UGG AUSTRALIA[/url] WixKyo http://www.mutonbu-tsu.com/ RqiDiq [url=http://www.australiabestboots.com/]ugg[/url] DlmNju http://www.australiabestboots.com/ KmyYcw[url=http://www.bestbootsjapan.com/]ugg メンズ[/url] AtjGsc http://www.bestbootsjapan.com/ CecQfk [url=http://www.bootshotsales.com/]ugg ムートン[/url] PnpGkp http://www.bootshotsales.com/ QuuQbj [url=http://www.bootssaletojp.com/]アグ ブーツ[/url] DrnKhx http://www.bootssaletojp.com/ BxsTnw

Anonymous said...

I fell in love with my Mulberry handbags just at my first sight. When I first saw the Mulberry handbags, I felt that everything was just so right in its design. It looks chic but also classic. When you read the stats of this bag it seems like a bad idea. And in all reality, it is most likely is. The usage you would get from this bag would never be mulberry outlet worth the price for me, but I can’t help but feel a little tinge of yippee when I saw this young and fun take on an established design.
mulberry a teeny tiny crossbody
Bag has two internal pockets and one internal zip compartment and leather belt straps to adjust the size. Patent leather, like normal leather is prone to natural mulberry outlet york creasing with wear. Bag measures 37cm x 30cm x 16.5cm. This Mulberry Black Nylon Clipper Overnight Bag is a must have at any season written all over in a your list of crazy stuffs. No matter what trendy handbags may hit us, this voguish bag will not make your outfit out of place. It never goes out of style! Black nylon overnight bag with canvas and leather detailing leading to the handles.
The bag could perhaps be these types of that it could belong to makeup products, finances, approaches, females awareness items, mobile phone, credit cards and internet site remember to brush. That bags you should not abandon approach. Inventor buckskin of mulberry bags additional More Surprise a good deal better try to you as well as your id.

Anonymous said...

wassup stuhorsman.blogspot.com owner discovered your site via Google but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have found website which offer to dramatically increase traffic to your blog http://mass-backlinks.com they claim they managed to get close to 4000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my website. Hope this helps :) They offer best services to increase website traffic at this website http://mass-backlinks.com

Anonymous said...

Greetings from Los angeles! I'm bored to tears at work so I decided to check out your blog on my iphone during lunch break. I really like the knowledge you provide here and can't wait
to take a look when I get home. I'm shocked at how fast your blog loaded on my mobile .. I'm not even
using WIFI, just 3G .. Anyways, amazing site!

Stop by my site: cccam wikipedia

Anonymous said...

I am sure this piece of writing has touched all the internet
users, its really really pleasant piece of writing on building up new webpage.


Look into my blog; miu miu 財布

Anonymous said...

Hey! I know this is somewhat off topic but
I was wondering if you knew where I could get a captcha plugin for my comment form?
I'm using the same blog platform as yours and I'm having trouble
finding one? Thanks a lot!

My page; トリーバーチ靴

Anonymous said...

Hello There. I found your blog using msn. This is an extremely well
written article. I'll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I'll definitely comeback.


Check out my homepage - http://dentalshout.com/

Anonymous said...

It's impressive that you are getting thoughts from this paragraph as well as from our dialogue made at this time.

my site ミュウミュウ財布

Anonymous said...

Nice post. I used to be checking constantly this blog and I'm inspired! Extremely useful info specifically the ultimate phase :) I take care of such info much. I was looking for this particular info for a very lengthy time. Thank you and best of luck.

Also visit my site ... クロエ店舗

Anonymous said...

Incredible! This blog looks just like my old one!
It's on a completely different subject but it has pretty much the same layout and design. Great choice of colors!

Look into my web-site :: トリーバーチ靴

Anonymous said...

Thank you, I've recently been looking for info about this topic for a long time and yours is the best I have came upon so far. However, what about the conclusion? Are you certain concerning the supply?

my webpage :: chloe バッグ

Anonymous said...

Heya excellent blog! Does running a blog such as this take a large amount of work?
I have very little knowledge of programming however I was hoping to start my own
blog soon. Anyways, if you have any ideas or tips for
new blog owners please share. I understand this is off subject but I
simply had to ask. Thanks!

Take a look at my blog post ... ミュウミュウ店舗

Anonymous said...

I truly love your website.. Excellent colors & theme.
Did you create this website yourself? Please reply
back as I'm attempting to create my own site and would love to know where you got this from or exactly what the theme is called. Cheers!

Here is my web site: http://www.sk-software.com/skhmsvb/member.php?u=1366

Anonymous said...

If you wish for to take much from this paragraph then you
have to apply these strategies to your won blog.

Feel free to surf to my website http://bds.ul.ie

Anonymous said...

I constantly spent my half an hour to read this
web site's posts daily along with a mug of coffee.

My page: トリーバーチ財布

Anonymous said...

[url=http://www.vip1michaelkorsoutlet.org]Michael Kors Outlet[/url] 1-, 2-, and 3-Day Suggested Itineraries for Arts Culture in Los Angeles1-, 2-, and 3-Day Suggested Itineraries for Arts Culture in Los AngelesLos Angeles has many museums and music venues you won't want to miss, if that's your cup of tea

[url=http://www.mislouboutinsaleuk.co.uk]Christian Louboutin UK[/url]They are renown for providing exhilarating comfort and expectational orthopedic support, w

[url=http://www.getfreerunaustralia.org]Nike Shoes Australia[/url]They may be looking at new things being offered, but more likely than not it is the older items they will be purchasing

[url=http://www.vipnikenewzealand.info]Nike Shoes NZ[/url] EXCLUDES: Super Buys, Specials, Everyday Values (EDV), cosmetics, fragrances, TAG Heuer, Tempur-pedic mattresses, products offered by vendors who operate leased departments in any of our stores, including Maternity, eSpot, Louis Vuitton

[url=http://www.upnikepascherfr.info]Nike Pas Cher[/url] These shoes are really amazing

Anonymous said...

electronic cigarettes, e cigarette, e cigarette, electronic cigarettes, smokeless cigarettes, electronic cigarettes

john smith said...

how we would render services and how we would promote it. We developed our corporate identity. Business Centre Shanghai