Dear all,

I tried to test WAN Boot.

I refer to this URL for WAN Boot :
http://www.herckb.com/2007/10/04/guide-to-wan-boot-with-solaris-10/

with the script-ready in this URL : 
http://www.herckb.com/bvhuploads/2007/10/wanboot.zip

WAN Boot Server IP : 10.2.248.138.
Client Server IP : 10.2.230.56.

I tried to execute the script in WAN Boot server.

After that, I tried to execute the following command in client :
ok > setenv network-boot-arguments 
host-ip=10.2.230.56,router-ip=10.2.230.254,subnet-mask=255.255.255.0,hostname=bmrpapp3,file=http://10.2.248.138:80/cgi-bin/wanboot-cgi

But it failed with response : 
"network-boot-arguments" not defined.

Thank you for your kind help.



====== log for createWanbootEnv.ksh =========


bash-3.00# ./createWanbootEnv.ksh

Step 1/4 - Collect information needed to set up JumpStart environment
=====================================================================
What is the IP of the system to be installed? 10.2.230.56
What is the netmask for the system to be installed? (255.255.255.0) 
255.255.255.0
What is the network address (subnet) for the system to be installed?
(10.2.230.0) 10.2.230.0
What is the CID (client_id) of the system to be installed? 010003BA07C089
Enter the short hostname for the system to be installed: bmrpapp3
What is the gateway IP the system to be installed? (10.2.230.1) 10.2.230.254
What is the domain of the server to be installed? telkomsel.co.id
What is the IP address of the DNS server the new system should use
(xxx.xxx.xxx.xxx)? none
What terminal type does the netboot client use? (vt100) vt100
How much swap size (MB) you want to use on the system to be installed? (4096) 
8192
What is the hardware architecture of the netboot client (HINT: examples are in
/usr/platform/)? (sun4v) sun4u
(Optional) Do you want to set up a root password for the system you are
installing? (Y/n) y
New password:
Re-type new password:
What is the user name the netboot web server runs as on this host? (webservd)
webservd
What is the group name the netboot web server runs as on this host? (webservd)
webservd
What is the root URL for the wanboot web server on this host?
(http://10.2.248.138:80/) http://10.2.248.138:80/
(Optional) What is the root path of the Solaris 10 installation location (i.e.
/cdrom/cdrom0/s0)? /SolarisOS

Step 2/4 - Generate JumpStart environment for new system
========================================================
creating folder /etc/netboot
creating folder /etc/netboot/10.2.230.0
creating folder /etc/netboot/10.2.230.0/010003BA07C089
Creating wanboot.conf file.  Consult wanboot.conf(4) for more information and
examples: man -s 4 wanboot.conf
Validating wanboot.conf... OK
Creating system.conf file.  Consult wanboot.conf(4) for more information and
examples: man -s 4 wanboot.conf
creating folder /var/apache2/htdocs/rootimages
creating folder /var/apache2/htdocs/rootimages/Solaris_10
creating folder /var/apache2/htdocs/bootfiles
creating folder /var/apache2/htdocs/bootfiles/config
creating folder /var/apache2/htdocs/bootfiles/config/bmrpapp3
Creating sysidcfg file.  Consult sysidcfg(4) for more information and examples:
man -s 4 sysidcfg
Creating rules file.
Creating default_profile file.
creating folder /var/apache2/htdocs/flashdir
installing wanboot-cgi file...
installing bootlog-cgi file...
installing wanboot file...

generating rules.ok file...
Validating rules...
Validating profile default_profile...
The custom JumpStart configuration is ok.
generating WAN Boot miniroot filesystem...
Enter location where you want to generate the wanboot image.  Make sure the
location is large enough to hold the Solaris CD image (~2.7GB)
(/export/install/Solaris_10): /apps/install/Solaris_10
The directory /apps/install/Solaris_10 does not exist.  Create? (Y/n) y
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...
713632 blocks
Removing unneeded packages from WAN boot Image hierarchy
Creating the WAN boot Image file
Image size is 291990528 bytes

Copying WAN boot to Image file...
        590336 blocks
WAN boot Image creation complete

        The WAN boot Image file has been placed in
                /apps/install/Solaris_10/miniroot/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=<URL>
                        where <URL> is an HTTP or HTTPS URL
                        scheme pointing to the location of the
                        WAN boot CGI program

                root_file=<miniroot>
                        where <miniroot> 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
copying generated miniroot file...

Step 3/4 - Perform next tasks manually
======================================
NOTE - You may need to build a new miniroot and/or flash archive for the
specified architecture (sun4u) of your netboot client.  If you already have an
appropriate miniroot and/or flasharchive, you can skip the following 2 steps
below.  Otherwise, perform these steps on the netboot client and copy the
resulting miniroot and/or flasharchive to the wanboot (this) server.
TODO - Use the setup_install_server utility on the Solaris 10 installation disk
to create the miniroot file and copy it to 
/var/apache2/htdocs/rootimages/Solaris_10
     - Then, run next commands: chmod 600
/var/apache2/htdocs/rootimages/Solaris_10/miniroot
                                chown webservd:webservd
/var/apache2/htdocs/rootimages/Solaris_10/miniroot
TODO - Use the flarcreate utility to create a flash archive file solaris.flar on
the client host and copy it to /var/apache2/htdocs/flashdir on this server
       i.e. : flarcreate -n "Name" -a "Author" -c -e "A comment goes here"
solaris.flar
              (generates a compressed flash archive)
     - Then, run next commands: chmod 644 
/var/apache2/htdocs/flashdir/solaris.flar
                                chown webservd:webservd
/var/apache2/htdocs/flashdir/solaris.flar
TODO - (Optional) Verify, and optionally modify, next configuration files:
         /etc/netboot/10.2.230.0/010003BA07C089/wanboot.conf
         /etc/netboot/10.2.230.0/010003BA07C089/system.conf
         /var/apache2/htdocs/bootfiles/config/bmrpapp3/sysidcfg
         /var/apache2/htdocs/bootfiles/config/bmrpapp3/rules  (note: re-run
check utility when you change this file!)

Step 4/4 - Netboot the client host
==================================
Make sure the web server is running on this host and that the firewall rules are
set up properly before net booting from the new system.

To boot the new system from the Jumpstart environment on this host, go to the
boot PROM on the new system and enter next commands:
ok  setenv network-boot-arguments
host-ip=10.2.230.56,router-ip=10.2.230.254,subnet-mask=255.255.255.0,hostname=bmrpapp3,file=http://10.2.248.138:80/cgi-bin/wanboot-cgi
ok  boot net - install

Check the log files in /var/apache2/logs to see the new system Jumpstart from
this server:
i.e. tail -f /var/apache2/logs/access_log
     tail -f /var/apache2/logs/error_log
This is also the first place to look when something goes wrong.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to