Oracle虚拟化产品 Oracle Virtual Machine

1. 说明

这个估计是没有多少人见过的产品。
架构示意图如下:

高可用架构如下:

2. OVS安装过程

1. 服务器设置从虚拟介质启动

直接按Enter键
2. 光盘自检,选skip跳过

3. 选择键盘区域

选us即可
4. 接受协议

5. 警示是否格式化硬盘,选YES

6. 选择硬盘分区和安装方式

7. 再次确认是否格式化

8. 选择boot loader安装位置

9. 选择管理网卡

10. 配置IP

11. 填写网关和DNS


12. 配置主机名

13. 选择时区

14. 设置Oracle VM agent密码,OVM添加和管理ovs使用
ovs-agent口令为:xxxxxxx

15. 设置root密码
Root口令为:xxxxxx

16. 开始安装


17. 系统安装完毕,reboot

18. 系统重启后的画面

19. 检查系统
# xm info

3.OVM安装过程

1. 安装OEL 6.5 x86_64,选用Database Server安装
安装过程略
2. 安装Oracle 11gR2 RAC
安装过程略
3. 挂载V42727-01.iso
/bin/mount -o loop,ro /home/oracle/media/V42727-01.iso /mnt/cdrom
4. 不需要执行createOracle.sh
由于安装Oracle RAC,已建配置好了oracle用户,无需再执行createOracle.sh脚本。只需要手工创建/u01目录

# mkdir /u01
# ls -l / | grep u01
drwxr-xr-x    2 root root      4096 1月  22 15:50 u01

确认权限为755
5. 安装OVM,安装过程如下(整个安装过程为字符模式):

# ./runInstaller.sh

Oracle VM Manager Release 3.2.7 Installer

Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2014-01-22-161550.log

Please select an installation type:
   1: Simple (includes database if necessary)
   2: Custom (using existing Oracle database)
   3: Uninstall
   4: Help

   Select Number (1-4): 2                                       ->选择2,custom模式安装

Starting production installation ...

Verifying installation prerequisites ...

Database Repository
==========================
Use an existing database
Enter the Oracle Database hostname [localhost]: ovm59           -> 数据库主机名
Enter the Oracle Database System ID (SID) [ORCL]: ovm1          -> 数据库SID
Enter the Oracle Database SYSTEM password:                      -> 口令为:xxxxxx
Enter the Oracle Database listener port [1521]:                 -> 数据库监听端口
Enter the Oracle VM Manager database schema [ovs]:              -> 创建默认用户
Enter the Oracle VM Manager database password:                  -> 输入口令:xxxxxx
Enter the Oracle VM Manager database password (confirm):        -> 再次确认

Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:           -> 创建WLS默认用户
Enter the Oracle WebLogic Server 11g user password:             -> 输入口令:xxxxxx
Enter the Oracle WebLogic Server 11g user password (confirm):   -> 再次确认

Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]: ->创建OVM默认管理用户
Enter the admin user password:                          -> 输入口令:xxxxxx
Enter the admin user password (confirm):                        -> 再次确认

Verifying configuration ...

Start installing the configured components:
   1: Continue
   2: Abort

   Select Number (1-2): 1

Step 1 of 9 : Database Software...
Installing Database Software...
Database Software installation skipped ...

Step 2 of 9 : Java ...
Installing Java ...

Step 3 of 9 : Database schema ...
Creating database schema 'ovs' ...

Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...

Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Installing Oracle ADF Patch...

Step 6 of 9 : Oracle VM  ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...

Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...

Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Granting ovm-admin role to user 'admin' ...
Set Log Rotation ...
Disabling HTTP and enabling HTTPS...
Configuring Https Identity and Trust...
Configuring Weblogic parameters...

Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...

Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...

Retrieving Oracle VM Manager CLI tool ...
Extracting Oracle VM Manager CLI tool...
Installing Oracle VM Manager CLI tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Starting Oracle VM Manager instance ...
Waiting for the application to initialize ...
Oracle VM Manager is running ...

Please wait while WebLogic configures the applications... This can take up to 5 minutes.
Oracle VM Manager installed.

Installation Summary
--------------------
Database configuration:
  Database type               : OracleDB
  Database host name          : ovm59
  Database instance name (SID): ovm1
  Database listener port      : 1521
  Application Express port    : None
  Oracle VM Manager schema    : ovs

Weblogic Server configuration:
  Administration username     : weblogic

Oracle VM Manager configuration:
  Username                    : admin
  Core management port        : 54321
  UUID                        : 0004fb00000100004a809159b58248ab

Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Database, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.

Oracle VM Manager UI:
  https://ovm59:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.

Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.

For more information about Oracle Virtualization, please visit:
  http://www.oracle.com/virtualization/

Oracle VM Manager installation complete.

Please remove configuration file /tmp/ovm_configT7TCXw.

6. 安装VNC插件

# rpm -ivh tightvnc-java-1.3.9-5.noarch.rpm

4.OVM部署HA

4.1 说明

可以通过OVM的备份恢复功能把OVM恢复到另外的主机,但当前OVM的数据库使用Oracle RAC,已经实现高可用,只需要在另外的主机上恢复OVM。
注意:恢复ovm69主机的OVM服务时,ovm59主机的OVM服务需要停止。
安装完OVM HA后,平时只运行ovm59主机的OVM服务,ovm69主机的OVM服务停止。当ovm59主机出现问题,无法提供服务时,手工启动ovm69主机的OVM服务。

4.2 OVM HA的切换过程

由于没有配置操作系统HA软件,需要手工切换
1.停止59的ovmm服务
# service ovmm stop
2.启动69的ovmm服务
# service ovmm start
注意:OVMM服务在一台机器上运行,不要在两台机器上同时运行,OVM69上服务平时是停止状态。

4.3 安装过程

1.停止ovm59主机的OVM服务
# service ovmm stop
2.查看ovm59主机上OVM服务的UUID

# cat /u01/app/oracle/ovm-manager-3/.config
DBTYPE=OracleDB
DBHOST=ovm59
SID=ovm1
LSNR=1521
APEX=None
OVSSCHEMA=ovs
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb00000100004a809159b58248ab
BUILDID=3.2.7.730

3.在ovm69主机上安装OVM服务

# ./runInstaller.sh --uuid 0004fb00000100004a809159b58248ab

Oracle VM Manager Release 3.2.7 Installer

Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2014-01-22-170854.log

Please select an installation type:
   1: Simple (includes database if necessary)
   2: Custom (using existing Oracle database)
   3: Uninstall
   4: Help

   Select Number (1-4): 2                                       ->选择2,custom模式安装

Starting production installation ...

Verifying installation prerequisites ...

Database Repository
==========================
Use an existing database
Enter the Oracle Database hostname [localhost]: ovm69           ->输入数据库主机名
Enter the Oracle Database System ID (SID) [ORCL]: ovm2          ->输入数据库SID
Enter the Oracle Database SYSTEM password:                      ->口令为:xxxxxx
Enter the Oracle Database listener port [1521]:                 -> 数据库监听端口
Enter the Oracle VM Manager database schema [ovs]:              -> 选择数据库用户(与59一致)
Enter the Oracle VM Manager database password:                  -> 输入口令(与59一致)
Enter the Oracle VM Manager database password (confirm):        -> 确认输入

Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:           -> 与59一致
Enter the Oracle WebLogic Server 11g user password:             -> 与59一致
Enter the Oracle WebLogic Server 11g user password (confirm):   -> 与59一致

Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]:       -> 与59一致
Enter the admin user password:                                  -> 与59一致
Enter the admin user password (confirm):                        -> 与59一致

Verifying configuration ...

Start installing the configured components:
   1: Continue
   2: Abort

   Select Number (1-2): 1

Step 1 of 9 : Database Software...
Installing Database Software...
Database Software installation skipped ...

Step 2 of 9 : Java ...
Installing Java ...

Step 3 of 9 : Database schema ...
An existing Oracle VM database schema was found.  How should the install proceed?
   1: Use the existing Oracle VM database schema with the Oracle VM Manager UUID stored in the database
   2: Remove the existing Oracle VM database schema, create a new Oracle VM database schema and use the provided UUID
   3: Abort

   Select Number (1-3): 1
Skip create Oracle VM database schema ...

Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...

Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Installing Oracle ADF Patch...

Step 6 of 9 : Oracle VM  ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...

Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...

Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Granting ovm-admin role to user 'admin' ...
Set Log Rotation ...
Disabling HTTP and enabling HTTPS...
Configuring Https Identity and Trust...
Configuring Weblogic parameters...

Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...

Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...

Retrieving Oracle VM Manager CLI tool ...
Extracting Oracle VM Manager CLI tool...
Installing Oracle VM Manager CLI tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Starting Oracle VM Manager instance ...
Waiting for the application to initialize ...
Oracle VM Manager is running ...

Please wait while WebLogic configures the applications... This can take up to 5 minutes.
Oracle VM Manager installed.

Installation Summary
--------------------
Database configuration:
  Database type               : OracleDB
  Database host name          : ovm69
  Database instance name (SID): ovm2
  Database listener port      : 1521
  Application Express port    : None
  Oracle VM Manager schema    : ovs

Weblogic Server configuration:
  Administration username     : weblogic

Oracle VM Manager configuration:
  Username                    : admin
  Core management port        : 54321
  UUID                        : 0004fb00000100004a809159b58248ab

Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Database, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.

Oracle VM Manager UI:
  https://ovm69:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.

Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.

For more information about Oracle Virtualization, please visit:
  http://www.oracle.com/virtualization/

Oracle VM Manager installation complete.

Please remove configuration file /tmp/ovm_configOyyG34.

4.安装VNC插件
# rpm -ivh tightvnc-java-1.3.9-5.noarch.rpm

5.OVM配置

5.1 OVM配置过程说明

配置OVM的大体流程如下:

5.2 添加OVS服务器

添加OVS服务器可以通过UI界面完成,也可以通过命令行完成,由于OVS主机较多,当前使用命令行来完成,操作如下:

# ssh -l admin 192.168.151.59 -p 10000
The authenticity of host '[192.168.151.59]:10000 ([192.168.151.59]:10000)' can't be established.
DSA key fingerprint is 22:8b:2c:b0:12:ac:59:d9:95:8f:a8:19:4e:fd:ac:ed.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.151.59]:10000' (DSA) to the list of known hosts.
admin@192.168.151.59's password:
OVM> discoverServer ipAddress=192.168.151.11 port=8899 username=oracle password=xxxxxx takeOwnership=yes
Command: discoverServer ipAddress=192.168.151.11 port=8899 username=oracle password=xxxxxx takeOwnership=yes
Status: Success
Time: 2014-01-22 16:32:31,159 CST

所有发现OVS服务器命令为:
discoverServer ipAddress=192.168.151.11 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.12 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.13 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.21 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.22 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.23 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.31 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.32 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.33 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.41 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.42 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.43 port=8899 username=oracle password=xxxxxx takeOwnership=yes

discoverServer ipAddress=192.168.151.72 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.82 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.92 port=8899 username=oracle password=xxxxxx takeOwnership=yes
discoverServer ipAddress=192.168.151.102 port=8899 username=oracle password=xxxxxx takeOwnership=yes

发现服务器全部完成后结果:

5.3 绑定OVS服务器网卡

根据规划要求,绑定VOS服务器上的网卡

5.4 添加存储

1.添加NFS存储
1.1.配置NFS服务器

# mkdir /nfs69
# vi /etc/exports
/nfs69 *(rw,sync,no_root_squash)
# exportfs
# exportfs -rv
exporting *:/nfs69

1.2.发现并添加NFS存储


设置所有服务器都可以使用nfs69


2.添加FC存储
FC存储添加无需其它操作,只需在存储上做好LUN,映射给相关VOS主机,VOS主机重启后即可认到,如果是多路径,VOS主机自动配置好multipath。

5.6 创建虚拟网络

根据规划,创建虚拟网络如下,并把绑定和未绑定的网卡,根据规划加到相关的网络中。

5.7 创建虚拟网卡

当前创建了300块虚拟网卡。

5.8 创建Cluster Server Pool

注意:只有Clustered Server Pool才可以创建共享文件系统,而非Clustered Server Pool只允许使用NFS。这在官方文档上有说明:

建议Clustered Server Pool中VOS主机,网络配置一致,主机硬件一致。如果虚拟机不需要切换,则Cluster Server Pool的创建策略为:VM Start Policy选取为:Start on current Server,创建虚拟机时不要勾选High Available。这样虚拟机可以在Server Pool中进行手工迁移,但不会进行HA切换。
UnCluster Server Pool只允许使用本地盘或NFS作为虚拟机的虚拟硬盘存储位置。
创建过程如下:

这个存储用于存储server_pool的配置信息,不需要太大,20g就足够了。

5.8 创建存储仓库

1. NFS Repository
NFS Repository可以用于存放ISO镜像资源等。

选择所有VOS服务器都可以使用NFS69Repository

创建 cluster_storage_repository1,这是虚拟机虚拟硬盘实际存放的位置

使用cluster_storage_repository1的VOS主机为:vos33,vos43
cluster_storage_repository1对应的LUN,只映射在这两台机器上

5.9 向存储仓库中添加资源

向存储仓库中添加资源,需要通过FTP服务器,当前在192.168.151.69上配置了FTP服务器,口令为:oracle/oracle。向FTP上传ISO镜象后。通过如下界面操作:

填入:ftp://oracle:oracle@192.168.151.69/iso/Win2003_32bit_cd2.iso,点击OK即可上传ISO到NFS69Repository。

5.10 创建虚拟机



注意:如果需要虚拟高可用,可以勾选Enable High Availability。

确认虚拟机的网络配置,为虚拟机添加虚拟网卡

为虚拟机在cluster_storage_repository1的仓储仓库中,创建虚拟硬盘。

添加虚拟光驱,并选取安装ISO

配置启动顺序

完成虚拟机的创建,按即可启动虚拟机,点击 ,即可启动虚拟终端如下:

关于紫砂壶

感悟技术人生
此条目发表在操作系统分类目录,贴了标签。将固定链接加入收藏夹。