在 SPARC 服务器上安装 OpenSolaris

小编辑 发布于 2010/04/25 16:50
阅读 613
收藏 0

最近opensolaris在SPARC上的EA版本出来了,我尝试安装了一把,现在我的一些经验跟大家分享。
详细的安装步骤可以参考
http://www.opensolaris.org/os/project/caiman/auto_install/AI_install_server_setup.html

我 的AI sevrer IP是10.13.31.29(opensolaris 2008.11) , 另一台是SPARC机器(打算装opensolairs的SPARC版本)
1.准备一台x86并安装opensolaris
2.设置AI server
1)首先安装install-tools
#pkg install SUNWinstalladm-tools
最 新SUNWinstalladm-tools的IPS库是http://pkg.opensolaris.org/dev
你 可以使用下面的命令设置IPS库
# pkg set-authority -O http://ipkg.sfbay/dev opensolaris.org

The correct version is (if you run AI server on build 101b)
# pkg info SUNWinstalladm-tools
Name: SUNWinstalladm-tools
Summary:
State: Installed
Authority: opensolaris.org
Version: 0.5.11
Build Release: 5.11
Branch: 0.101
Packaging Date: Sat Jan 31 22:03:37 2009
Size: 357.68 kB
FMRI: pkg:/SUNWinstalladm-tools@0.5.11,5.11-0.101:20090131T220337Z

or for build 106

# pkg info SUNWinstalladm-tools
Name: SUNWinstalladm-tools
Summary: Automatic Installation Server Setup Tools
Category: System/Administration and Configuration
State: Installed
Authority: opensolaris.org
Version: 0.5.11
Build Release: 5.11
Branch: 0.106
Packaging Date: Sat Jan 31 18:34:55 2009
Size: 414.43 kB
FMRI: pkg:/SUNWinstalladm-tools@0.5.11,5.11-0.106:20090131T183455Z

2) 编辑 /etc/hosts
10.13.31.29 pae-x4200-1 loghost
10.13.31.32 pae-t2000-2
把AI server的ip和主机名放进去(10.13.31.29 pae-x4200-1)
3) 配置AI client
在/etc/resolv.conf配置正确的DNS服务器信息
cp /etc/nsswitch.dns /etc/nsswitch.conf.
svcadm enable /network/dns/client:default
确认默认 路由在AI client的配置是正确的
4)下载SPARC AI image
http://dlc.sun.com/torrents/info/osol-0906-106a-ai-sparc.iso.torrent
5) 创建AI server的服务
root@pae-x4200-1:/var# /usr/sbin/installadm create-service -n test1 -i 127.0.0.1 -c 3 -s /osol-0906-106a-ai-sparc.iso /target
/usr/lib/installadm/setup-image: line 225: [: 504572: unary operator expected
Setting up the target image at /target ...
Registering the service test1._OSInstall._tcp.local
dhcpconfig: Error - creating network macro. 127.0.0.0 already exists.
Creating SPARC configuration file

这 有一个报错,但是至少AI的服务是正常启动的
http://10.13.31.29:5555
http://10.13.31.29:46501/
/tftpboot/I86PC.OpenSolaris-4 is mounted on /target/boot
3.创建AI client
shasha@pae-x4200-1:/var/ai/46501/AI_data# installadm create-client -e 0:3🇧🇦d8🇧🇪de -n test1 -t /target
Setting up SPARC client...
Creating SPARC configuration file
Enabled network boot by adding a macro named 010003BAD8BEDE
to DHCP server with:
Boot server IP (BootSrvA) : 10.13.31.29
Boot file (BootFile) : http://10.13.31.29:5555/cgi-bin/wanboot-cgi
Root path (Rootpath) : http://10.13.31.29:5555/target
4. 检查AI的配置文件
shasha@pae-x4200-1:/var/ai/46501/AI_data# pwd
/var/ai/46501/AI_data
shasha@pae-x4200-1:/var/ai/46501/AI_data# more default.xml
5.使SPARC进入ok状态
sc>break
sc>console –f
{1} ok
{1} ok
{1} ok boot net:dhcp

SC Alert: Host System has Reset

SC Alert: Host system has shut down.
/

Sun Fire T200, No Keyboard
Copyright 2006 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.20.6, 16376 MB memory available, Serial #64536286.
Ethernet address 0:3🇧🇦d8🇧🇪de, Host ID: 83d8bede.



Rebooting with command: boot net:dhcp
Boot device: /pci@780/pci@0/pci@1/network@0:dhcp File and args:
1000 Mbps full duplex Link up
Timed out waiting for BOOTP/DHCP reply
Timed out waiting for BOOTP/DHCP reply
Timed out waiting for BOOTP/DHCP reply
Timed out waiting for BOOTP/DHCP reply
1000 Mbps full duplex Link up
<time unavailable> wanboot info: WAN boot messages->console
<time unavailable> wanboot info: Starting DHCP configuration
<time unavailable> wanboot info: DHCP configuration succeeded
<time unavailable> wanboot progress: wanbootfs: Read 366 of 366 kB (100%)
<time unavailable> wanboot info: wanbootfs: Download complete
Mon Feb 16 03:40:20 wanboot progress: miniroot: Read 171484 of 171484 kB (100%)
Mon Feb 16 03:40:20 wanboot info: miniroot: Download complete
SunOS Release 5.11 Version snv_106 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
NOTICE: Disabling watchdog as watchdog services are not available

Hostname: opensolaris
Remounting root read/write
Probing for device nodes ...
Preparing automated install image for use
Downloading solaris.zlib archive
--19:40:16-- http://10.13.31.29:5555/target/solaris.zlib
=> `/tmp/solaris.zlib'
Connecting to 10.13.31.29:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 324,173,824 (309M) [text/plain]

9% [==> ] 30,945,008 38.63M/s

19:40:17 (38.53 MB/s) - Read error at byte 30945008/324173824 (Connection reset by peer). Retrying.

--19:40:18-- http://10.13.31.29:5555/target/solaris.zlib
(try: 2) => `/tmp/solaris.zlib'
Connecting to 10.13.31.29:5555... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 324,173,824 (309M), 293,228,816 (280M) remaining [text/plain]

13% [+++> ] 43,118,320 37.10M/s

19:40:18 (37.06 MB/s) - Read error at byte 43118320/324173824 (Connection reset by peer). Retrying.

--19:40:20-- http://10.13.31.29:5555/target/solaris.zlib
(try: 3) => `/tmp/solaris.zlib'
Connecting to 10.13.31.29:5555... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 324,173,824 (309M), 281,055,504 (268M) remaining [text/plain]

100%[++++================================>] 324,173,824 18.75M/s ETA 00:00

19:40:52 (8.32 MB/s) - `/tmp/solaris.zlib' saved [324173824/324173824]

Downloading solarismisc.zlib archive
--19:40:53-- http://10.13.31.29:5555/target/solarismisc.zlib
=> `/tmp/solarismisc.zlib'
Connecting to 10.13.31.29:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 931,840 (910K) [text/plain]

100%[====================================>] 931,840 --.--K/s

19:40:53 (29.37 MB/s) - `/tmp/solarismisc.zlib' saved [931840/931840]

--19:40:53-- http://10.13.31.29:5555/target/install.conf
=> `/tmp/install.conf'
Connecting to 10.13.31.29:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22 [text/plain]

100%[====================================>] 22 --.--K/s

19:40:53 (494.48 KB/s) - `/tmp/install.conf' saved [22/22]

Done mounting automated install image
Configuring devices.
Reading ZFS config: done.

opensolaris console login:
Automated Installation started
The progress of the Automated Installation can be followed by viewing the logfile at /tmp/install_log
Automated Installation finished successfully
The system can be rebooted now
Please refer to /tmp/install_log file for details
After reboot it will be located at /var/sadm/system/logs/install_log
6.安装完成,重起系统,然后登陆系统,默认的登陆帐户和密码为 jack/jack,root的密码为opensolaris. (这些信息都可以在default.xml里面看到)

加载中
返回顶部
顶部