Solaris 10 : WanBoot Flash Archive installation procedure

This document is a step-by-step procedure on how to create a flash archive and also start an Apache Web Server to install Solaris 10 OS via WanBoot.

Task 1 : Creating the Flash Archive

Task 2 : Configuring the Apache Webserver

Task 3: Configuring the WANBoot and JumpStart files

Task 4 : Configure the WAN Boot Client

Sever Configuration Procedure

Task 1 : Creating the Flash Archive

Perform the following steps

1. Create the directory for the flash archive under what will be the web server’s documents directory.

# mkdir -p /var/apache/htdocs/flashdir

2. Create the flash archive

# flarcreate -n -a /var/apache/htdocs/flashdir/solaris.flar

Task 2 : Configuring the Apache Webserver

Perform the following steps to configure and start the Apache web server:

1. Update the Apache webserver’s primary configuration file. Set the Servername option to the correct name for your environment.

# vi /etc/apache/httpd.conf

Edit the line that reads:

#Servername new.host.name

Remove the pound sign (#) and change it to the correct server name for your environment:

Servername WANBootserv

2. Start the webserver

# /usr/apache/bin/apachectl start

NOTE: WanBoot support actually started in Solaris 9 12/03. If using Solaris 9 4/04, the WanBoot client must have 256mb memory or higher. If you are using Solaris 10 WanBoot, WanBoot client must have 512mb memory or higher. This is because Wanboot actually loads a “miniroot” to memory, and Solaris 10 miniroot is much larger than Solaris 9.

Task 3: Configuring the WANBoot and JumpStart files

Perform the following steps to configure the WANBoot and Jumpstart server files.

1. Insert the Solaris[TM] 10 Software CD-ROM in the CD-ROM drive.

2. Create the Jumpstart configuration directory under the webserver’s documents directory.

# mkdir /var/apache/htdocs/config

3. Change to the jumpstart sample directory on the CD-ROM

# cd /cdrom/cdrom0/s0/Solaris_10/Misc/jumpstart_sample

4. Copy the directory contents to the /var/apache/htdocs/config directory.

# cp -r * /var/apache/htdocs/config

5. Copy the wanboot binary to a directory under the webserver’s documents directory.

# cp /cdrom/cdrom0/s0/Solaris_10/Tools/Boot/platform/sun4u/wanboot /var/apache/htdocs/wanboot

6. Copy the WAN Boot CGI programs to the webserver’s cgi-bin directory.

# cp /usr/lib/inet/wanboot/*-cgi /var/apache/cgi-bin

7. Edit the configuration file specifying the clients sysidcfg file and custom jumpstart files.

# mkdir /etc/netboot

# vi /etc/netboot/system.conf

Insert the following two lines. Use the correct server name for your environment.

SsysidCF=http://WANBootserv/config

SjumpsCF=http://WANBootserv/config

8. Copy and edit the configuration file containing the WANBoot specific parameters.

# cp /etc/inet/wanboot.conf.sample /etc/netboot/wanboot.conf

# vi /etc/netboot/wanboot.conf

Edit the file to contain following lines. Use the correct server name for your environment.

boot_file=/wanboot10/wanboot

root_server=http://WANBootserv/cgi-bin/wanboot-cgi

root_file=/wanboot10/wpath/miniroot

encryption_type=

signature_type=

server_authentication=no

client_authentication=no

resolve_hosts=

boot_logger=http://WANBootserv/cgi-bin/bootlog-cgi

system_conf=system.conf

9. Create the miniroot filesytem under the webserver’s documents directory.

# /cdrom/cdrom0/s0/Solaris_10/Tools/setup_install_server -w /var/apache/htdocs/wanboot10/wpath /var/apache/htdocs/wanboot10/ipath

#cp /var/apache/htdocs/wanboot10/wpath/miniroot /var/apache/htdocs/wanboot10/miniroot

10. Check the integrity of the wanboot.conf file.

# /usr/sbin/bootconfchk /etc/netboot/wanboot.conf

11. Edit the jumpstart configuration files.

# cd /var/apache/htdocs/config

11.a. Edit the sysidcfg file

# vi /var/apache/htdocs/config/sysidcfg

Edit the file to contain following lines. Use the correct server name for your environment.

network_interface=eri1 { primary hostname=WANBootclient1 ip_address=a.b.c.d

netmask=255.255.255.0 default_route=none protocol_ipv6=no }

timezone=US/Central

system_locale=C

terminal=dtterm

timeserver=localhost

name_service=none

security_policy=none

NOTE: Please use this same order. We found some oddities if we changed the order, errors like: Invalid entry on line x.

11.b. Edit the profile file

# vi /var/apache/htdocs/config/profile

Edit the file to contain following lines.

install_type flash_install

archive_location http://WANBootserv_IP/flashdir/solaris.flar

partitioning explicit

filesys c0t0d0s1 512 swap

filesys c0t0d0s0 free /

11.c. Edit the rules file

# cd /var/apache/htdocs

# vi rules

Run a check on the rules file

# ./check

Edit the file to contain following line:

Hostname WANBootclient1 – profile –

Task 4 : Configure the WAN Boot Client

Perform the following steps on the WAN boot client to boot and install the client. (Verify your eeprom version, if it is version 4.17 proceed to steps 1 and 2, else proceed with steps 3-4.)

1. Set network boot argument variables for WANBootclient1 at the ok prompt.

ok setenv network-boot-arguments host-ip=a.b.c.d, router-ip=a.b.c.1, subnet-mask=255.255.255.0,hostname=WANBootclient1,file=http://Bootserver_IP/cgi-bin/wanboot-cgi

2. Boot the client.

ok boot net install

3. Install a solaris 10 CD into the client and run wanboot.

ok

ok boot cdrom -o prompt -F wanboot – install

Resetting …

Sun Blade 100 (UltraSPARC-IIe), No KeyboardCopyright 1998-2003 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.10.1, 256 MB memory installed, Serial #50645368.

[pt pt-10usb #1]

Ethernet address 0:3:ba:4:c9:78, Host ID: 8304c978.

Rebooting with command: boot cdrom -o prompt -F wanboot – install

Boot device: /pci@1f,0/ide@d/cdrom@1,0:f File and args: -o prompt -F wanboot – install

boot> prompt

host-ip? Client_IP

subnet-mask? 255.255.255.0

router-ip?

hostname? datacomms

http-proxy?

client-id?

aes?

3des?

sha1?

bootserver? http://Bootserver_IP/cgi-bin/wanboot-cgi

Unknown variable ‘/Bootserver_IP/cgi-bin/wanboot-cgi’; ignored (ignore this)

boot>

boot> list

host-ip: Client_IPsubnet-mask: 255.255.255.0

router-ip: UNSET

hostname: datacomms

http-proxy: UNSET

client-id: UNSET

aes: *HIDDEN*

3des: *HIDDEN*

sha1: *HIDDEN*bootserver: http://Bootserver_IP/cgi-bin/wanboot-cgi

boot> go

Mon Aug 23 19:45:25 wanboot info: WAN boot messages->129.148.192.83:80

SunOS Release 5.10 Version s10_58 64-bit

Copyright 1983-2004 Sun Microsystems, Inc. All rights reserved.

Use is subject to license terms.

Configuring devices.

—-Cut short for brevity——

Trouble-shooting tips/log files:

If the Wanboot fails to boot/install and it drops you to a shell prompt, you can run the installation in debug mode to aquire more information on the failure.

Run the following after it fails and drops you to a shell prompt:

pfinstall -x 10 /tmp/install_config/Whereis the name of your jumpstart profile.

Log files to check:

/var/apache/logs/access_log

/var/apache/logs/error_log

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

6 Responses

  1. Bas says:

    Hi Ramdev, this is really a good information. Thank you. I am looking for step by step procedure to Install Oracle on top of Solaris OS. Please provide that information.

    • Gurkulindia Gurkulindia says:

      @BAS .. Thanks for you comments. I believe, you have to wait few more days, for that post :). Thanks for visiting to the site.

  2. rajat says:

    hello, can someone plz explain the steps for jumpstart insatallation for solaris 10..I need it….

  3. Yogesh Raheja says:

    @Rajat, we will preapare and post on Jumpstart.

  4. Rafi Alam says:

    very good information

  5. BjoernH says:

    Good info, thanks. I’m still not able to find the Solaris 10 jumpstart installation procedure Rajat asked for.

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us