- 论坛徽章:
- 0
|
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 <archive_name>; -a <archive_author>; /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.nameRemove 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.
bootfile=/wanboot10/wanboot
root-file=/wanboot10/wpath/miniroot
encryption_type=
signature_type=
server_authentication=no
client_authentication=no
resolve_hosts=
root_server=
bootlogger=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/miniroot10. 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 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.
b. Edit the profile file
# vi /var/apache/htdocs/config/profile Edit the file to contain following lines.
install_type flash_install
archive_location
partitioning explicit
filesys c0t0d0s1 512 swap
filesys c0t0d0s0 free /
c. Edit the rules file
# cd /var/apache/htdocs
# vi rules
Run a check on the rules file# ./checkEdit 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=
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 2000 (UltraSPARC-IIe), No Keyboard
Copyright 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
<time unavailable>; wanboot info: WAN boot messages->;console
<time unavailable>; wanboot info: Default net-config-strategy: manual
boot>; prompt
host-ip? Client_IP
subnet-mask? 255.255.255.0
router-ip? Client_defaultrouter
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_IP
subnet-mask: 255.255.255.0
router-ip: Client_defaultrouter
hostname: datacomms
http-proxy: UNSET
client-id: UNSET
aes: *HIDDEN*
3des: *HIDDEN*
sha1: *HIDDEN*
bootserver: http://Bootserver_IP/cgi-bin/wanboot-cgi
boot>; go
<time unavailable>; wanboot progress: wanbootfs: Read 128 of 128 kB (100%)
<time unavailable>; wanboot info: wanbootfs: Download complete
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. |
评分
-
查看全部评分
|