Chinaunix首页 | 论坛 | 博客
  • 博客访问: 277737
  • 博文数量: 81
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 35
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-19 15:16
文章分类

全部博文(81)

文章存档

2021年(1)

2016年(3)

2015年(6)

2014年(6)

2013年(33)

2012年(32)

分类: 系统运维

2012-03-23 13:15:20

安装到系统33上(服务器是32, 客户机是33)

 

一,  查看ISO 文件内容(32上)

a.       如果在CD中,则创建一个目录放置映像:

[root@solaris /]#mkdir /jump_sol/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 / jump_sol/install

----------------------------------------------------------

b.       如果已知iso文件在/目录下, 则:

[32 /] # mkdir a

[32 /] # lofiadm –a /sol-10-u10-ga2-sparc-dvd.iso

[32/] # mount -F hsfs /dev/lofi/1 /a

[32/] # mkdir -p /jump_sol/install

[32/] # mkdir -p /jump_sol/config

 

二,  iso安装到建立的/sol10_u10/install 目录下

[32Tools] # ./setup_install_server /jump_sol/install

Verifying target directory...

Calculating the required disk space for the Solaris_10 product

 

三, 配置客户机的主机名和IP地址对应关系

[32/] # vi /etc/hosts

"/etc/hosts" [Read only] 8 lines, 165 characters

#

# Internet host table

#

::1     localhost

127.0.0.1       localhost

192.168.200.32  server_name    loghost

192.168.6.81    psvr

192.168.200.33  client_name 

四,配置客户机的网卡和主机名对应关系

[32 /] # vi /etc/ethers

"/etc/ethers" [New file]

0:14:4f:81:f6:0 client_name

五, 编辑标识文件。Root密码是/etc/shadow文件经过加密的密码字符串或者密码原文:

[32 /] #cd /jump_sol/config

[32/] #vi sysidconfig

network_interface=e1000g0 {hostname=fcasun45                          

default_route=192.168.200.1                                                                  

ip_address=192.168.200.33                                                                    

netmask=255.255.255.0                                                                       

protocol_ipv6=no}                                                                                

timezone=US/Pacific                                                                    

timeserver=192.168.*.*                                                                     

name_service=DNS{nameserver=192.168.*.*         

domain_name=****.org}

security_policy=NONE                                                                       

root_password=67u89hffIh9zY (/etc/shadow)                                                                         

system_locale=en_US                                                                           

keyboard=US-English  

 

六,编辑规则文件(rules):

[32/] #vi rules
hostname 33_client_name- profile –

 

七,编辑特征文件,文件名随便叫:

[32/] #vi profiles

install_type    initial_install

system_type     standalone

partitioning    explicit

cluster         SUNWCXall

filesys  c0t2d0s1  20480  swap

filesys  c0t2d0s3  16384  /var

filesys  c0t2d0s7  512

filesys  c0t2d0s0  free  /                            

 

七,检查规则文件及特征文件,生成rules.ok文件:

[32/]#

cp /jump_sol/install/Solaris_10/Misc/jumpstart_sample/check /jump_sol/config

[32/]#./check

Validating rules...
Validating profile profile...
The custom JumpStart configuration is ok.

 

八,添加客户机、并指定客户机使用的安装服务、配置服务及标识服务的位置:

[32/]#

./add_install_client -s 192.168.200.32:/jump_sol/install -c 192.168.200.32:/jump_sol/config -p 192.168.200.32:/jump_sol/config/ client_name sun4u   

 

九,检查参数设置是否正确

[32/] #cat /etc/bootparams

[32/] #cat /etc/ethers

[32/] # ls –l /tftpboot/

 

十,设置NFS服务器,共享/jump_sol/install/jump_sol/config目录

[32tftpboot] # showmount -e

export list for FCA-QAD-PROD:

/jump_sol/install/Solaris_10/Tools/Boot  (everyone)

/a/Solaris_10/Tools/Boot                 (everyone)

[32tftpboot] # unshare /sol10_u10/install/Solaris_10/Tools/Boot

[32tftpboot] # share -F nfs /jump_sol/install/

[32tftpboot] # share -F nfs /jump_sol/config/

 

十一,关闭客户机33, 登录SC 进行客户端安装

[ T148/DB /] # init 0

 

Server 安装好后, 需要做的事情

1.       root shell b-shell

cat /etc/passwd

root:x:0:0:Super-User:/:/bin/bash

cat /etc/shadow

root:$1$av8hmVmd$x4dqgJ7BNKJqWEknTj.nx/:14748::::::

2.       root可以ssh登录 ,默认是不允许的。

/etc/ssh/sshd.conf文件中,将PermitRootLogin no改为PermitRootLogin yes

重启Solaris或者sshd服务;  svcadm restart svc:/network/ssh:default

3.       sendmail 有没有问题,能不能发邮件

4.       检查下etc/reslov.conf 文件

-bash-3.2# cat /etc/resolv.conf

domain domain_name

nameserver 192.168.*.*

nameserver 192.168.*.*

search domain_name 

 

 

 

 

阅读(1985) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:添加和删除磁盘到linux 虚拟机上

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