免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2294 | 回复: 7
打印 上一主题 下一主题

原创 WANBOOT 全过程-建议放到精华 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-09 00:33 |只看该作者 |倒序浏览
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.

评分

参与人数 1可用积分 +3 收起 理由
yuhuohu + 3 我很赞同

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2005-04-09 17:24 |只看该作者

原创 WANBOOT 全过程-建议放到精华

WanBOOT是做什么用的?

论坛徽章:
0
3 [报告]
发表于 2005-04-11 09:42 |只看该作者

原创 WANBOOT 全过程-建议放到精华

solaris10 新特性
可以在跨路由进行jumpstart

论坛徽章:
0
4 [报告]
发表于 2007-10-19 16:05 |只看该作者

回复 #1 fxy9731 的帖子

是不是当前的wanboot只支持flash安装模式啊?

论坛徽章:
0
5 [报告]
发表于 2007-10-19 16:37 |只看该作者
文章写的相当不错,希望加精收藏~~

论坛徽章:
0
6 [报告]
发表于 2007-10-19 17:35 |只看该作者
可否搞点中文描述出来,多谢

PS:有些细节似乎可以排得更清晰些
比如这条命令就看得有些晕,怎么连分号都有撒
# flarcreate -n <archive_name>; -a <archive_author>; /var/apache/htdocs/flashdir/solaris.flar


支持LZ,有中文看得会更开心

[ 本帖最后由 yuhuohu 于 2007-10-19 20:11 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2007-10-19 21:27 |只看该作者
An article about WAN Boot:

Solaris 10::WANboot => Setting up a WANboot server

http://www2.petervg.nl/cgi-bin/docs.cgi?a=read&doc=59

评分

参与人数 1可用积分 +1 收起 理由
yuhuohu + 1 我很赞同

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP