Chinaunix首页 | 论坛 | 博客
  • 博客访问: 143961
  • 博文数量: 24
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 291
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-01 09:36
文章分类

全部博文(24)

文章存档

2010年(4)

2009年(13)

2008年(7)

我的朋友

分类:

2008-12-01 09:39:55

引用自:
http://kongjian.baidu.com/lanyun001/blog/item/8f6dcfcaa5fad940f21fe7b3.html

JumpStart Install Solaris 10 Over a Local Network
1.        准备工作
安装服务、配置服务文件服务使用同一台服务(我这里是Netra20)
Client Server(SUN Fire V480)
一张Solaris10 OS DVD安装盘
2.说明提供以下步骤
(1)创建一个JumpStart安装服务器
(2)在服务器上创建一个安装目录以及客户配置文件
(3)共享安装、配置文件
(4)创建客户tftpboot文件
(5)为了允许从网络启动,Pre-boot Execution Enviroment(PXE)必须生效
3.开始工作Put the Solaris 10 OS for Sparc platforms DVD in the DVD-ROM on the server
   1.创建一个安装目录
# mkdir /export/home/install
   2.将Solaris software拷贝到新建的目录中
    # cd /cdrom/cdrom0/s0/Solaris_10/Tools
    # ./setup_install_server /export/home/install
   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...
3.创建一个配置目录
# mkdir /export/home/config
在/export/home/config下创建一个sysidcfg文件
    # cd /export/home/config
    # touch sysidcfg
    # vi sysidcfg
   system_local=en_US.ISO8859-1
   timezone=Asia/Shanghai
   terminal=vt100
   root_password=
   network_interface=primary {hostname=V480
                            network=255.255.255.0
                            protocol_ipv6=no
                            default_route=192.168.1.1}
   :wq
创建一个profile文件Tech_prof(这里是在技术部)
# touch Tech_prof
# vi Tech_prof
install_type initial_install
system_type standalone
partitioning explicit
cluster        SUNWCprog
filesys        rootdisk.s0 8192   /
filesys        rootdisk.s1 1024   swap
filesys        rootdisk.s4 2000   /opt
filesys        rootdisk.s7 free /export/home
:wq
创建一个rules文件
# touch rules
# vi rules
hostname V480 – Tech_prof –
:wq
创建check脚本
# cd /export/home/config
# cp /export/home/install/Solaris_10/Misc/jumpstart_sample/check .
运行check脚本
# ./check
Validating rules…
Validating profile Tech_prof
The custom JumpStart configuration is ok.
4.共享/export/home/install和/export/home/config 目录
   (1)# share –F nfs –o ro,anon=0 /export/home/install
   # share –F nfs –o ro,anon=0 /export/home/config
   # shareall
(2)编辑/etc/dfs/dfstab文件
    # vi /etc/dfs/dfstab
#    Place share(1M) commands here for automatic execution
#    on entering init state 3.
#
#    Issue the command 'svcadm enable network/nfs/server' to
#    run the NFS daemon processes and the share commands, after adding
#    the very first entry to this file.
#
#    share [-F fstype] [ -o options] [-d ""] [resource]
#    .e.g,
#    share   -F nfs   -o rw=engineering   -d "home dirs"   /export/home2
share -F nfs -o ro,anon=0 /export/home/install
share -F nfs -o ro,anon=0 /export/home/config
   
"dfstab" 16 lines, 580 characters
   :wq
5.启动nfsserver
# /etc/init.d/nfs.server start
6.编辑/etc/hosts
   #
# Internet host table
#
127.0.0.1    localhost   
192.168.1.20 Netra20 loghost
192.168.1.48 V480
:wq
7.创建tftpboot文件
运行add_install_client 脚本为客户
找到add_install_client 脚本的位置
# cd /export/home/install/Solaris_10/Tools
# ./add_install_client \
>-e 0:3:ba:2a:e5:9c
>-s Netra20:/export/home/install \
>-c Netra20:/export/home/config \
>-p Netra20:/export/home/sysidcfg
Enabling tftp in /etc/inetd.confi
Converting /etc/inetd.conf
生成文件在/etc/bootparams验证:
# more /etc/bootparams
V480   root=Netra20:/database/install/Solaris_10/Tools/Boot install=Netra20:/data
base/install boottype=:in sysid_config=Netra20:/database/jumpstart/sysidcfg inst
all_config=Netra20:/database/jumpstart rootopts=:rsize=8192
8.配置就绪,客户机可以通过网络安装了
在ok提示下输入
ok boot net – install Netra20:/export/home/install
这里注意:确保网线安装好
阅读(810) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Set up NIS for OpenSolaris 2008.11

给主人留下些什么吧!~~