logo

Main Menu

Statistics





Setting up a WANboot server PDF Print E-mail
User Rating: / 9
PoorBest 
Written by Peter van Gemert (Auteur)   
Sunday, 23 January 2011 22:37

Besides Live Upgrade, Jumpstart and Jumpstart + DHCP, Solaris 10 now introduces a fourth method for installing Solaris: WanBoot. In short Wanboot is a Jumpstart server which runs over http(s). Read more on how to setup a simple WanBoot environment

3   Apache Configuration

Server # cd /etc/apache2
Server # cp httpd.conf-example httpd.conf

Server # svcadm enable apache2

4   WANBoot Server Setup

4.1   Create directories needed by WANBoot

Server # cd
Server # mkdir /etc/netboot

Server # cd /var/apache2/htdocs
Server # mkdir config
Server # mkdir flashdir
Server # mkdir wanboot10

4.2   Create miniroot filesystem

Server # cd /cdrom/cdrom0/s0/Solaris_10/Tools
Server # ./setup_install_server -w \
> /var/apache2/htdocs/wanboot10/wpath \
> /var/apache2/htdocs/wanboot10/ipath
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...

Starting WAN boot Image build
Calculating space required for WAN boot Image
Copying WAN boot Image hierarchy...
782048 blocks
Removing unneeded packages from WAN boot Image hierarchy
Creating the WAN boot Image file
Image size is 214139904 bytes
Copying WAN boot to Image file...
421200 blocks

WAN boot Image creation complete

The WAN boot Image file has been placed in
/var/apache2/htdocs//wanboot10/wpath/miniroot

Ensure that you move this file to a location
accessible to the web server, and that the
WAN boot configuration file wanboot.conf(4)
for each WAN boot client contains the entries:

root_server=
where  is an HTTP or HTTPS URL
scheme pointing to the location of the
WAN boot CGI program

root_file=
where  is the path and file
name, relative to the web server
document directory, of 'miniroot'

You should also make sure you have initialized
the key generation process by issuing (once):

# /usr/sbin/wanbootutil keygen -m

Install Server setup complete
Server #

Be patient because this command might take a while to finish. On my machines it will take about 45 minutes to complete. Faster hardware will of course decrease this period.

4.3   Place the flash archive on the system

Create a flash archive and place it in the /var/apache2/htdocs/flashdir directory on the WANBoot server.

4.4   Place the Jumpstart config files on the server

* Insert the Solaris 10 Software 1/4 cdrom in the cdrom drive.

Server # cd /cdrom/cdrom0/s0/Solaris_10/Misc/jumpstart_sample
Server # cp -r * /var/apache2/htdocs/config

4.5   Place the wanboot file on the server

Server # cd /cdrom/cdrom0/s0/Solaris_10/Tools/Boot/platform/sun4u
Server # cp wanboot /var/apache2/htdocs/wanboot10/

4.6   Place the cgi-bin commands on the server

Server # cd /usr/lib/inet/wanboot/
Server # cp bootlog-cgi wanboot-cgi /var/apache2/cgi-bin/

4.7   Create a system.conf file

Create a system.conf file with the following content.

Server # cd /etc/netboot
Server # vi system.conf
+----------------------
| SsysidCF=http://10.156.5.11/config
| SjumpsCF=http://10.156.5.11/config

4.8   Place a correct wanboot.conf file on the server

Create a wanboot.conf file that looks like the following example.

Server # cd /etc/netboot
Server # vi wanboot.conf
+-----------------------
| boot_file=/wanboot10/wanboot
| encryption_type=
| signature_type=
| server_authentication=no
| client_authentication=no
| resolve_hosts=
| root_server=http://10.156.5.11/cgi-bin/wanboot-cgi
| root_file=/wanboot10/wpath/miniroot
| boot_logger=http://10.156.5.11/cgi-bin/bootlog-cgi
| system_conf=system.conf

We did not create the wpath yet but it will automatically be created when we run the setup_install_server command later on in this document.

In /etc/inet/wanboot.conf.sample you can find an template that you can use to create your own wanboot.conf file.

4.9   Place the miniroot file in the correct directory

Server # cd /var/apache2/htdocs/wanboot10/wpath
Server # cp miniroot /var/apache2/htdocs/wanboot10/

4.10   Check the wanboot.conf file

Server # cd /etc/netboot
Server # bootconfchk wanboot.conf

4.11   Create the sysidcfg file

Server # cd /var/apache2/htdocs/config/
Server # vi sysidcfg
+-------------------
| network_interface=hme0 { primary hostname=bab8 
ip_address=10.156.5.12 netmask=255.255.255.0 
protocol_ipv6=no default_route=10.156.5.254 }
| timezone=US/Central
| system_locale=C
| terminal=dtterm
| timeserver=localhost
| name_service=none
| security_policy=none

4.12   Create a profile

Server # cd /var/apache2/htdocs/config/
Server # vi profile


+------------------
| install_type       flash_install
| archive_location   http://10.156.5.11/flashdir/install.flar
| partitioning       explicit
| filesys c0t0d0s0   free    /
| filesys c0t0d0s1   512     swap

Make sure that install.flar matches the name of the flash archive you want to use for a WANBoot installation.

4.13   Create the appropriate rule

Edit the rules file and add the following rule before the any rule.

Server # cd /var/apache2/htdocs/config/
Server # vi rules
+-------------
| hostname bab8 - profile -

Server # ./check 
Validating rules...
Validating profile host_class...
Validating profile net924_sun4c...
Validating profile upgrade...
Validating profile x86-class...
Validating profile profile...
Validating profile any_machine...
The custom JumpStart configuration is ok.

5   WANBoot client setup with BootPROM 4.14 or newer

5.1   Configure the BootPROM

ok setenv network-boot-arguments host-ip=10.156.5.12, router-ip=10.156.5.254, 
subnet-mask=255.255.255.0, hostname=bab8, file=http://10.156.5.11/cgi-bin/wanboot-cgi

5.2   Boot and install the client

ok boot net - install

6   WANBoot client setup with BootPROM 4.13 or older

6.1   Boot client (from cdrom/DVD) and install client

ok boot cdrom -o prompt -F wanboot - install
... Output skipped ...
wanboot info: WAN boot messages->console
wanboot info: Default net-config-strategy: manual

boot> prompt

host-ip? 10.156.5.12

subnet-mask? 255.255.255.0

router-ip? 10.156.5.254

hostname? bab8

http-proxy?

client-id?

aes?

3des?

sha1?

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

Unkown variable '/10.156.5.11/cgi-bin/wanboot-cgi'; ignored
boot> list

host-ip:      10.156.5.12
subnet-mask:  255.255.255.0
router-ip:    10.156.5.254
hostname:     bab8
http-proxy:   UNSET
client-id:    UNSET
aes:          *HIDDEN*
3des:         *HIDDEN*
sha1:         *HIDDEN*
bootserver:   http://10.156.5.11/cgi-bin/wanboot-cgi

boot> go

wanboot progress: wanbootfs: Read 386 of 386 kB (100%)
wanboot info: wanbootfs: Download complete
Mon Jun  6 20:19:59 wanboot info: WAN boot messages->10.156.5.11:80

SunOS Release 5.10 Version s10_58 64-bit
... Output Skipped ...

7   Check installation progress

Run the following command on the Wanboot server. Each client that is installed now will have it's own log file.

Server # cd /tmp
Server # tail -f bootlog.bab8
Jun 06 22:20:19 bab8 wanboot: [ID 103106 user.progress] wanbootfs: Read 72 of 368 kB (19%)
Jun 06 22:20:19 bab8 wanboot: [ID 318429 user.progress] wanbootfs: Read 152 of 368 kB (41%)
Jun 06 22:20:19 bab8 wanboot: [ID 865320 user.progress] wanbootfs: Read 232 of 368 kB (63%)
Jun 06 22:20:19 bab8 wanboot: [ID 817831 user.progress] wanbootfs: Read 312 of 368 kB (84%)
Jun 06 22:20:19 bab8 wanboot: [ID 383464 user.progress] wanbootfs: Read 368 of 368 kB (100%)
Jun 06 22:20:19 bab8 wanboot: [ID 893282 user.info] wanbootfs: Download complete
Jun 06 22:20:19 bab8 wanboot: [ID 930382 user.progress] miniroot: Read 4176 of 209121 kB (1%)
Jun 06 22:20:47 bab8 wanboot: [ID 156184 user.progress] miniroot: Read 8360 of 209121 kB (3%)
Jun 06 22:21:06 bab8 wanboot: [ID 694502 user.progress] miniroot: Read 12544 of 209121 kB (5%)
Jun 06 22:21:32 bab8 wanboot: [ID 562960 user.progress] miniroot: Read 16728 of 209121 kB (7%)
Jun 06 22:21:53 bab8 wanboot: [ID 763040 user.progress] miniroot: Read 20912 of 209121 kB (9%)
Jun 06 22:22:11 bab8 wanboot: [ID 714293 user.progress] miniroot: Read 25096 of 209121 kB (12%)
Jun 06 22:22:26 bab8 wanboot: [ID 588114 user.progress] miniroot: Read 29280 of 209121 kB (14%)
Jun 06 22:22:53 bab8 wanboot: [ID 307532 user.progress] miniroot: Read 33464 of 209121 kB (16%)
Jun 06 22:23:12 bab8 wanboot: [ID 840236 user.progress] miniroot: Read 37648 of 209121 kB (18%)
Jun 06 22:23:32 bab8 wanboot: [ID 387910 user.progress] miniroot: Read 41832 of 209121 kB (20%)
... Output Skipped ...

8   Disclaimer

I'm in no way responsible for what you do. Not even when you do it after reading my documents.


Last Updated on Thursday, 24 February 2011 17:04
 


Powered by Joomla!. Designed by: computer template (video) mysql table Valid XHTML and CSS.