免费注册 查看新帖 |

Chinaunix

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

JumpStart Install for Solaris 10 over a LAN [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-22 17:00 |只看该作者 |倒序浏览


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
这里注意:确保网线安装好
在本机已成功!!!!
支持者给点投票!!!!!!!!!!!!!
谢谢!


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31774/showart_326560.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP