网络安装solaris10之jumpstart

一、制作脱机引导和各种安装配置簇的安装映像。
1,创建一个目录放置映像:
[root@solaris /]#mkdir /jumpstar/install
2,放入DVD,让vold daemon自动挂载,或者运行volcheck命令。
3,进入setup_install_server脚本所在的目录里:
[root@solaris /]# cd /cdrom/sol_10_1008_x86/Solaris_10/Tools/
接着运行脚本复制引导和安装镜像到本地磁盘:
[root@solaris Tools]#./setup_install_server /jumpstar/install
4,脚本执行完毕后:
[root@solaris Tools]#cd;eject cdrom
二、配置客户机的网卡和主机名对应关系:
手工创建/etc/ethers文件,加入客户端的网卡MAC地址和主机名:
[root@solaris config]#vi /etc/ethers
00-0C-29-5B-9B-D5 solaris01
三、配置客户机的主机名和IP地址对应关系:
[root@solaris /]#cat /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost      
192.168.1.100   solaris loghost
192.168.1.156   xzxj
192.168.1.101   solaris01       //客户机的IP和主机名
四、编辑标识文件。Root密码是/etc/shadow文件经过加密的密码字符串或者密码原文:
[root@solaris /]#cd /jumpstar/config/
[root@solaris /]#mkdir sysidcfg01;mkdir sysidcfg02
[root@solaris config]#cd sysidcfg01;vi sysidcfg
network_interface=e1000g0 {hostname=solaris01                                    //这个网卡指客户机上的网卡以及客户端主机名
default_route=192.168.1.1                                                                    //定义网关
ip_address=192.168.1.101                                                                    //定义IP地址
netmask=255.255.255.0                                                                        //子网掩码
protocol_ipv6=no}                                                                                 //不启用IPv6
timezone=Asia/Chongqing                                                                      //定义时区
timeserver=localhost                                                                              //指定时间服务器
name_service=DNS{nameserver=202.101.172.48,202.101.172.46            //定义dns相关信息
domain_name=sol10.com}
security_policy=NONE                                                                            //无安全策略
root_password=root                                                                              //指定root密码
system_locale=en_US                                                                            //定义系统使用的语言
keyboard=US-English                                                                            //定义键盘
pointer=MS-S                                                                                       //定义鼠标
对基于X86的机器上可以定义monitor 关键字、keyboard 关键字、display 关键字、pointer 关键字。
五、编辑规则文件(rules):
[root@solaris config]#vi rules
hostname solaris01 - profile -
六、编辑特征文件,文件名随便叫:
[root@solaris config]#vi profile
install_type       initial_install                                      //初始化安装
system_type        server                                           //系统类型为服务器
partitioning       explicit                                             //明确的分区信息                              
filesys             rootdisk.s0 free  /                             //磁盘未使用的空间分给/文件系统
filesys             rootdisk.s1 1024  swap                     //划分swap空间,大小为1G
filesys             rootdisk.s7 1024  /export/home          //划分/export/home分区,大小为1G
cluster            SUNWCXall                                      //全部安装
七、检查规则文件及特征文件,生成rules.ok文件:
[root@solaris config]#cp /cdrom/sol_10_1008_x86/Solaris_10/Misc/jumpstart_sample/check .
[root@solaris config]#./check
Validating rules...
Validating profile profile...
The custom JumpStart configuration is ok.
八、设置NFS服务器,共享/jumpstar/install和/jumpstar/config目录:
[root@solaris config]#vi /etc/dfs/dfstab
share -F nfs -o ro,anon=0 /export/install
share -F nfs -o ro,anon=0 /export/config
[root@solaris config]#svcs -a|grep nfs
online         18:36:36 svc:/network/nfs/cbd:default
online         18:36:36 svc:/network/nfs/status:default
online         18:36:36 svc:/network/nfs/mapid:default
online         18:36:36 svc:/network/nfs/nlockmgr:default
online         18:36:42 svc:/network/nfs/rquota:default
online         18:36:42 svc:/network/nfs/client:default
offline         18:36:42 svc:/network/nfs/server:default
[root@solaris config]#svcadm enable svc:/network/nfs/server:default
[root@solaris config]#showmount -e localhost
export list for localhost:
/jumpstar/config  (everyone)
/jumpstar/install (everyone)
[root@solaris config]#share
-               /jumpstar/config   ro,anon=0   "" 
-               /jumpstar/install   ro,anon=0   ""
九、添加客户机、并指定客户机使用的安装服务、配置服务及标识服务的位置:
[root@solaris config]#cd ../install/Solaris_10/Tools
[root@solaris Tools]#./add_install_client -s 192.168.1.100:/jumpstar/install -c 192.168.1.100:/jumpstar/config -p 192.168.1.100:/jumpstar/config/sysidcfg01/sysidcfg solaris01 i86pc
updating /etc/bootparams
copying boot file to /tftpboot/pxegrub.I86PC.Solaris_10-1
ln: cannot create /tftpboot//pxegrub.I86PC.Solaris_10-1: File exists
Create a grub floppy and edit GRUB menu to contain
the following entry:
title Solaris netinstall
  rarp
  kernel /I86PC.Solaris_10-1/multiboot kernel/unix -B install_media=ip-addr-for-192.168.1.100:/jumpstar/install,install_boot=192.168.1.100:/jumpstar/install/boot
  module /I86PC.Solaris_10-1/x86.miniroot
[root@solaris Tools]#cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0d0s1 -       -       swap    -       no      -
/dev/dsk/c0d0s0 /dev/rdsk/c0d0s0        /       ufs     1       no      -
/dev/dsk/c0d0s7 /dev/rdsk/c0d0s7        /export/home    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/dsk/c0d1s0 /dev/rdsk/c0d1s0        /jumpstar       ufs     1       yes     -
/jumpstar/install/boot - /tftpboot/I86PC.Solaris_10-1 lofs - yes ro
完了之后,会在/etc/vfstab里多出上面红色部分.
在/etc目录下会多出一个/etc/bootparams文件,内容如下:
[root@solaris Tools]#cat /etc/bootparams
solaris01  root=solaris:/jumpstar/install/boot install=192.168.1.100:/jumpstar/install boottype=:in sysid_config=192.168.1.100:/jumpstar/config/sysidcfg01/sysidcfg install_config=192.168.1.100:/jumpstar/config rootopts=:rsize=8192
十、开启snoop监控:
[root@solaris /]#snoop -d e1000g0 rarp
Using device /dev/e1000g0 (promiscuous mode)
OLD-BROADCAST -> (broadcast)  RARP C Who is 0:c:29:5b:9b:d5 ?
OLD-BROADCAST -> (broadcast)  RARP C Who is 0:c:29:5b:9b:d5 ?
OLD-BROADCAST -> (broadcast)  RARP C Who is 0:c:29:5b:9b:d5 ?
OLD-BROADCAST -> (broadcast)  RARP C Who is 0:c:29:5b:9b:d5 ?这里查询此MAC地址对应的主机。
以下命令可以查看JumpStart的整个工作过程:
[root@solaris /]#snoop -P -d e1000g0 udp
…………………
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=348
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=278
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=320
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=352
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=298
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=350
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=344
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=284
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=302
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=356
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=348
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=278
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=320
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=352
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=298
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=350
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=344
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=284
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=302
192.168.1.1 -> 239.255.255.250 UDP D=1900 S=1025 LEN=356
……………………
十一、客户端安装演示:
启动X86客户机,把DVD光盘放入客户机光驱,启动,选择"custom jumpstart":
image
image
image
image
image
image
image
image
安装完成后系统会自动重启的。

本文出自 “candon123” 博客,转载请与作者联系!

你可能感兴趣的:(网络,职场,休闲,jumpstart)