Solaris 网络安装 操作系统

 

Solaris网络安装

通过本地网络安装solaris 10 10/08(sparc) 

安装环境:

      服务器端:PC机安装的solaris 10 10/08

                $ uname -a

                 SunOS sol1 5.10 Generic_137138-09 i86pc i386 i86pc

      客户机:SUN E450 

服务器端配置:

1、建立网络共享目录

      mkdir   /export/home/cuug

2、将 solaris 10 for sparc cdrom上的文件拷贝到共享目录下

     cd  /cdrom/solaris_10/Solaris_10/Tools

    ./setup_install_server /export/home/cuug 

3、在服务器上配置客户机网络信息

     1)查看需要安装系统的客户机的mac地址,在客户机上的OK下,

    OK》banner ,得到mac地址

 

     2)vi   /etc/ethers

          客户mac   主机名

 

    3)vi   /etc/hosts

          分配给客户端的ip地址 主机名

 

 

4、设置客户机启动bootrom

      cd   /export/home/sol10/Solaris_10/Tools

      ./add_install_client   -s  服务器IP地址: /export/home/cuug -e 客户机mac地址 客户器主机名 sun4u

 

5、通过nfs共享安装目录

      vi  /etc/dfs/dfstab

      

 

   #  shareall

   #  share   查看share

   # ps  -ef| grep  nfs

 

6、开启tftp 服务

     在/etc/inetd.conf 下将tftp前的“#”,去掉。

1)

把下面的内容前面的#去掉/etc/inetd.conf

tftp    dgram   udp6    wait    root    /usr/sbin/in.tftpd      in.tftpd -s /tftpboot

2)

执行下面的命令把服务添加到svc的控制列表中

inetconv -i /etc/inetd.conf 1>/dev/null 2>&1

3)

使用svcadm命令开启

svcadm enable svc:/network/tftp/udp6:default

4)

验证

bash-3.00# netstat -a |grep tftp

      *.tftp                              Idle

      *.tftp                                                        Idle

 

客户机通过网络启动,并进行网络安装

 

      ok状态下: boot  net  -v - install 

在客户机获得IP:192.168.3.123时,正常该IP是可以ping通,但本次安装则ping不通,该过程需要很长一段时间,-v参数可以看到详细输出,以免在3a000后没有耐心等待就中断安装,教训啊。

涉及到配置文件

/etc/hosts

/etc/ethers

/etc/inetd.conf

/etc/bootparam

/tftpboot目录

遇到的问题

问题1

向虚拟机里添加硬盘时,format无法正确识别,iostat -En可以认出cmdk2的硬盘

 

bash-3.00# iostat -En

c0d0             Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Model: VBOX HARDDISK   Revision:  Serial No: VB284a4eaa-33ee Size: 11.04GB <11043422208 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0

cmdk2            Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Model: VBOX HARDDISK   Revision:  Serial No: VB64827fa7-0088 Size: 4.91GB <4908072960 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0

cmdk3            Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Model: VBOX HARDDISK   Revision:  Serial No: VB27aee78a-30fe Size: 1.07GB <1073479680 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0

 

解决方法:

需要用devfsadm命令,该命令对硬盘进行重新定义

 

-bash-3.00# iostat -En

c0d0             Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Model: VBOX HARDDISK   Revision:  Serial No: VB284a4eaa-33ee Size: 11.04GB <11043422208 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0

c1d1             Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Model: VBOX HARDDISK   Revision:  Serial No: VB64827fa7-0088 Size: 4.91GB <4908072960 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0

c1t0d0           Soft Errors: 10 Hard Errors: 0 Transport Errors: 0

Vendor: VBOX     Product: CD-ROM           Revision: 1.0  Serial No: 

Size: 2.56GB <2563440640 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 10 Predictive Failure Analysis: 0

-bash-3.00#

 

问题2

划分区大小

在新添加的硬盘的分区划分空间后,需要用label来进行生效。

 

问题3

通过boot net进行安装时,总提示Timeout waiting for ARP/RARP packet

 

将客户机的原主机名450修改成e450,删除/etc/ethers及/etc/hosts中以前网络安装时残留的信息,然后重新添加client。

bash-3.00# ./rm_install_client 450

removing 450 from bootparams

removing /etc/bootparams, since it is empty

bash-3.00# ./add_install_client -s 192.168.3.120:/export/home/cuug -e 8:0:20:9a:38:8d 450 sun4u

updating /etc/bootparams

copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-1

bash-3.00# ./rm_install_client 450

Error: unknown client "450"

bash-3.00# ./add_install_client -s 192.168.3.120:/export/home/cuug -e 8:0:20:9a:38:8d e450 sun4u

cleaning up preexisting install client "e450"

removing /tftpboot/inetboot.SUN4U.Solaris_10-1

removing /tftpboot

making /tftpboot

updating /etc/bootparams

copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-1

 

问题4

locale不正确

local -a 

echo $LANG

该问题是由于在安装操作系统时,使用的是LANG=zh_CN.UTF-8,而~/.profile设置是export LANG=en_US,当前系统中没有安装该语言包。

涉及到的文件

/etc/TIMEZONE

/etc/profile

~/.profile

/etc/default/init

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值