又被mmmmn“出卖”,不过也好,我也该发推荐贴了,箱子见底了:(
用途不太广泛,对有些需要的朋友有帮助的话就没白忙活:)
如果还有人说照着这个还装不出来的话!
我就!!!@#$^@$%^&#$%&$%&
==================================================================
jumpstart安装实例(作者:bear)
一、正常用cd-rom手工安装一台机器(以下称install_sever),准备将其配置成install server
<过程省略>
二、按照用户分配的ip地址、规划的hostname,和需要利用网络安装的主机的ethe.net address
修改server的/etc/hosts和/etc/ethers
例如:/etc/hosts中加入以下行
129.148.94.6 client1
129.148.94.7 client2
.
.
/etc/ethers中加入以下行
8:0:20:30:6:9a client1
8:0:20:30:6:83 client2
.
.
三、制作solaris os image
1、在install_sever的cd-rom中放入solaris 8 software 1 of 2光盘
2、运行以下命令:
# cd /cdrom/cdrom0/s0/solaris_8/tools
# ./setup_install_server /export/install
(其中/export/install所在的分区必须有足够的空间,至少800m以上,建议1g
如果/分区空间不够,可选用其他目录,只要于以后使用该目录时保持一致即可
如可以使用/export/home/install)
3、等待程序运行完成以后,运行以下命令取出solaris 8 software 1 of 2光盘
并放入solaris 8 software 2 of 2光盘
# cd /
# eject
4、运行以下命令:
# cd /cdrom/cdrom0/solaris_8/tools
# ./add_to_install_server /export/install
5、等待程序运行完成以后,运行以下命令取出solaris 8 software 2 of 2光盘
并放入solaris 8 language 光盘
# cd /
# eject
6、运行以下命令:
# cd /cdrom/cdrom0/tools
# ./add_to_install_server -s /export/install
按照系统提示选择"simplified chinese"(简体中文)选项,安装相应软件包
7、等待程序运行完成以后,运行以下命令取出solaris 8 language 光盘
# cd /
# eject
至此制作solaris os image的工作完成
四、配置jumpstart相关信息
1、运行以下命令
# mkdir /jumpstart
# cp -r /export/install/solaris_8/misc/jumpstart_sample/* /jumpstart
2、用ftp将事先制作好的以下几个文件上传至/jumpstart中(ftp上传时请用ascii码格式)
(用vi看一下文件的内容,如果文本行结尾有多余的^m,请将文件中的^m全部删除,或用
命令dos2unix转换)
sysidcfg
rules
test_prof_18g
test_prof_36g
3、按照用户设置.netmask(网络掩码)修改sysidcfg文件.network_interface的相关参数
例如:
原条目.network_interface=primary .netmask=255.255.255.0 protocol_ipv6=no}
修改成.network_interface=primary .netmask=255.255.252.0 protocol_ipv6=no}
保存文件
4、运行以下命令:
# cd /jumpstart
# ./check<---检查rules文件语法,并生成rules.ok文件
此时可以查看一下rules.ok文件是否生成
五、共享必要的目录
1、编辑/etc/dfs/dfstab文件加入以下行
share -f nfs -o ro,anon=0 /jumpstart
2、运行以下命令:
# /usr/lib/nfs/nfsd -a 16
# /usr/lib/nfs/mountd
# share /jumpstart
# shareall
(用以下命令查看/jumpstart是否share出来了,如果有以下输出表示share正常)
# dfshares install_sever
resource serveraccesstrspot
install_sever:/jumpstart install_sever--
六、授权clients安装
运行以下命令:
# cd /export/install/solaris_8/tools
# ./add_install_client -c install_sever:/jumpstart -p install_sever:/jumpstart client1 sun4u
# ./add_install_client -c install_sever:/jumpstart -p install_sever:/jumpstart client2 sun4u
.
.
.
以上命令要逐个授权在/etc/hosts中加入的每一个需要利用网络安装的主机
七、引导client机器,利用网络安装操作系统
1、检查网络连接是否正确
2、client开机后用stop+a将机器控制在ok提示符下
3、键入以下命令利用网络安装操作系统:
ok boot.net - install
附录1:例子文件及相关解释:
sysidcfg 文件内容
name_service=none#指定名服务为none
.network_interface=primary .netmask=255.255.252.0 protocol_ipv6=no}#设置网络相关参数
security_policy=none#设置安全策略为none
terminal=dtterm#设置终端类型为dtterm
timezone=prc#设置时区信息为prc
system_locale=zh#设置本地信息为zh(中文)
timeserver=localhost#设置时钟信息为localhost(本机)
rules 文件内容
# rule keywords and rule valuess begin script profile finish script
# ----------------------------- ------------ -------- -------------
disksize c0t0d0 15000-20000- test_prof_18g-
disksize c0t0d0 30000-40000- test_prof_36g-
第一行设置磁盘大小在15g-20g(18g硬盘)的用 test_prof_18g 配置文件
第一行设置磁盘大小在30g-40g(36g硬盘)的用 test_prof_36g 配置文件
test_prof_18g 文件内容
install_type initial_install#指定安装类型为 initial
usedisk c0t0d0#指定系统选择的硬盘为 c0t0d0
boot_device c0t0d0s0 update#设置root文件系统及引导设备位置,并更新eeprom 中的参数。
root_device c0t0d0s0#设置root文件系统位置为 c0t0d0s0
cluster sunwcxall#设置系统软件安装类别为entire distribution plus oem support
system_type standalone#设置系统类型为 standalone
partitioning explicit#指定硬盘分区方式(explicit 表示使用filesys 定义的结构)
filesys c0t0d0s0 2000 / -\
filesys c0t0d0s1 1500 /var -
filesys c0t0d0s3 2500 swap
filesys c0t0d0s5 3000 /opt - }-> 具体每一个分区的信息(大小为兆字节)
filesys c0t0d0s6 2000 /usr -
filesys c0t0d0s4 15 unnamed
filesys c0t0d0s7 free /export/home -/
geo asia#指定地理区域
locale zh#指定本地化语言包
isa_bits 64#计算位长(64 或32)
配置注意事项:
1、install_type 必须写在第1行
2、标记为容量为“free”的分区如“filesys c0t0d0s7 free /export/home -”
必须写在所有“filesys”定义的最后一个
test_prof_36g 文件内容
相应的解释与test_prof_18g 文件相同
区别只在“filesys”的分区大小定义不同
install_type initial_install
usedisk c0t0d0
boot_device c0t0d0s0 update
root_device c0t0d0s0
cluster sunwcxall
system_type standalone
partitioning explicit
filesys c0t0d0s0 3000 / -
filesys c0t0d0s1 3000 /var -
filesys c0t0d0s3 3000 swap
filesys c0t0d0s5 5000 /opt -
filesys c0t0d0s6 3000 /usr -
filesys c0t0d0s4 15 unnamed
filesys c0t0d0s7 free /export/home -
geo asia
locale zh
isa_bits 64
如果有其他特殊需求请参照:“solaris 8 advanced installation guide”
(part number:806–0957–10)
附例:jumpstart install server 安装过程:
附录1:实例安装记录
此例中:
jumpstart install_server的信息如下:
hostame: jumptest
ip: 10.11.147.60
2个install client信息如下
client1:
hostame: test-1
ip: 10.11.147.38
ethe.net: 8:0:20:ce:ec:d6
c0t0d0: 18g
client2:
hostame: test-2
ip: 10.11.147.39
ethe.net: 8:0:20:ce:ec:ae
c0t0d0: 18g
root@jumptest # cd /cdrom/sol_8_sparc/s0/solaris_8/tools
root@jumptest # ./setup_install_server /export/home/install
verifying target directory...
calculating the required disk space for the solaris_8 product
copying the cd image to disk...
install server setup complete
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_sparc_2/solaris_8/tools
root@jumptest # ./add_to_install_server /export/home/install
the following products will be copied to /export/home/install/solaris_8/product:
solaris_2_of_2
if only a subset of products is needed enter control-c
and invoke ./add_to_install_server with the -s option.
checking required disk space...
copying the early access products...
41990 块
processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_lang_sparc/tools
root@jumptest # ./add_to_install_server -s /export/install /export/home/install
enter the number of the product(s) you want to add
to /export/home/install/solaris_8/product or 'all' for all products.
the following are valid products:
1simplified_chinese
2french
3german
4italian
5japanese
6korean
7spanish
8swedish
9traditional_chinese
10shared
1
checking required disk space...
copying simplifiedchinese packages...
processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /jumpstart
root@jumptest # ./check
validating rules...
validating profile test_prof_18g...
validating profile test_prof_36g...
the custom jumpstart configuration is ok.
root@jumptest # ls
any_machine.net924_sun4c rules sysidcfg x86-begin.conf
check test_prof_18g rules.ok upgrade x86-class
host_class test_prof_36g set_root_pw x86-begin
root@jumptest # /usr/lib/nfs/nfsd -a 16
root@jumptest # /usr/lib/nfs/mountd
root@jumptest # share /jumpstart
root@jumptest # shareall
root@jumptest # dfshares jumptest
resource server access transport
jumptest:/jumpstart jumptest - -
root@jumptest # cd /export/home/install/solaris_8/tools
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-1 sun4u
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
adding "share -f nfs -o ro,anon=0 /export/home/install" to /etc/dfs/dfstab
updating /etc/bootparams
copying .netboot to /tftpboot
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-2 sun4u
updating /etc/bootparams
root@jumptest #
备注:例子中会有目录不同的情况
如不是/cdrom/cdrom0,而是/cdrom/sol_8_sparc/、/cdrom/sol_8_sparc_2
或/cdrom/sol_8_lang_sparc,其实/cdrom/cdrom0是指向这些目录的连接,没有问题
(bear:2002/6/13 下午于chinaunix.net)
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器