三.在T4-2和T5240上安装 Oracle Solaris 11 系统
我们需要在T4-2和T5240上安装物理系统Oracle Solaris 11作为虚拟平台,安装步骤如下:
1.开机后显示器有输出时,同时按下Solaris键盘上的stop和a键,把安装光盘放入吸入式光驱。
2.ok> boot cdrom 回车
3.按照提示选择相应的选项来完成安装。
注意事项:在配制网络时请不要配制ipv6
资源:sol-11_1-text-SPARC.iso
四.升级系统到Oracle Solaris 11.1
1.在升级系统之前首先要确认系统的当前版本,目的是验证所安装系统和升级包的正确性。查看当前系统版本命令:
# pkg info entire
Name: entire
Summary: Incorporation to lock all system packages to the same build
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.0.0.24.2
Packaging Date: September 19, 2012 07:01:35 PM
Size: 5.46 kB
FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.1.0.0.24.2:20120919T190135Z
2.挂载升级包到/mnt上
#mount -F hsfs /home/itaas/soft/sol-11_1-repo-full.iso /mnt
3.将升级包的文件拷贝到新创建的目录publisher下
#cp -R /mnt/* /publisher
4.挂载补充升级包到/mnt1上
#mount -F hsfs /home/itaas/soft/sol-11_1-sru3-05_1-incr-repo.iso /mnt1
5.整合两个升级包
#pkgrecv -s /mnt1/repo -d file:///publisher/repo -m all-versions '*'
6.重新生成升级包
#pkgrepo rebuild -s /publisher/repo
步骤7-12为制作publisher的过程,在此不做详细说明。
7.#svccfg -s application/pkg/server setprop pkg/inst_root=/publisher/repo
8.#svccfg -s application/pkg/server setprop pkg/readonly=true
9.#svcadm refresh application/pkg/server
10.#svcadm enable application/pkg/server
11.#pkg unset-publisher solaris
12.#pkg set-publisher –g file:///publisher/repo solaris
13.执行升级
#pkg update
14.Reboot
15.验证升级后的系统版本
# pkg info entire
Name: entire
Summary: entire incorporation including Support Repository Update (Oracle Solaris 11.1 SRU 3.5.1).
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system. For
more information see https://support.oracle.com/CSP/main/article
?cmd=show&type=NOT&doctype=REFERENCE&id=1501435.1.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11 (Oracle Solaris 11.1 SRU 3.5.1)
Build Release: 5.11
Branch: 0.175.1.3.0.5.1
Packaging Date: January 18, 2013 01:40:08 AM
Size: 5.46 kB
FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.1.3.0.5.1:20130118T014008Z
五.升级 firmware
我们需要从oracle官网下载最新的firmware,实现SPARC服务器对外设驱动的加载。
1. 使用root用户在主机上执行如下步骤:
a) # cd /tmp
b) # ls 148823-05_FIRMWARE_SPARC_T4-2_S_8.2.2.c_64bit.zip
c) # mkdir /tmp/patch
d) # chmod 777 /tmp/patch
e) # mv ./148823-05_FIRMWARE_SPARC_T4-2_S_8.2.2.c_64bit.zip /tmp/patch
f) # cd /tmp/patch
g) # /usr/bin/unzip 148823-05_FIRMWARE_SPARC_T4-2_S_8.2.2.c_64bit.zip
h) # cd ./148823-05
I) # ls *.pkg
2. 下载升级包到Service Processor(SP 是一种管理服务器硬件管理模块,独立于操作系统,可以监控系统的软硬件状态并进行远程开关机。
a) # pwd <- should be /tmp/patch/148823-05
b) # ./sysfwdownload Sun_System_Firmware-8_2_2_c-SPARC_T4-2.pkg
3. 关机
# shutdown -i0 -g0 -y
4. 通过串口连接SP
5. 使用root登陆到Service Processor
6. 在Service Processor内,执行 stop /SYS
7. 验证升级包版本:
-> show /SP/firmware/localimage
/SP/firmware/localimage
Targets:
Properties:
upload_date = Thu Nov 11 12:46:08 2010
version = 3.0.12.2
Commands:
cd
show
8. 执行安装:
-> load -source /SP/firmware/localimage
六.配置控制域
最初,系统把所有的资源都分配给控制域。在第一章介绍过,SPARC上的Oracle Solaris物理系统充当primary domain角色(Dom0),为了创建更多的虚拟机(DomU),实现虚拟化,我们要创建和配置Oracle VM Server控制域,步骤如下:
1.Configure the control domain
a.# ldm add-vds primary-vds0 primary
b.# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
c.# ldm set-vcpu 8 primary
d.# ldm start-reconf primary
e.# ldm set-mem 4g primary
f.# ldm add-spconfig ovm-initial
2.Restart the control domain
# shutdown -y -g0 -i6
3.Enable the logical domains and virtual network terminal (console) daemon services
a.# svcadm enable ldmd
b.# svcadm enable vntsd
七.安装 Oracle VM Agent
为了实现Oracle VM Manager和Oracle VM Server之间的通信,我们需要在Oracle VM Server上安装和配置Oracle VM Agent。
安装步骤如下:
1. 解压缩 Oracle VM Agent 安装包
# tar xzf ovs-ldoms-xx.tar.gz
2. 执行安装
# cd ovs-ldoms-xx
# ./install
说明:Oracle VM Agent 默认端口:8899 (可通过命令#netstat -an|grep 8899 来验证端口是否打开)