How to install Oracle Virtualization Manager (OVM) on OEL ?

My Lab set up for OVM x86 Lab.

I installed OEL 6.5 64 bit on VMware workstation.
8 GB RAM
20 GB Disk
1 Processor with 2 cores

After installing above I attached the ISO image of OVM with it for installation of OVM manager on top of OEL 6.5  
Installed two OVS (Oracle Virtual Server) on VMware workstation.
3 GB RAM
12 GB Disk
2 Processor each with 2 cores

Step 1 : I have installed OEL 6.5 bit on vmware workstation. After successful installation I have attached the downloaded image of OVM to OEL 6.5 bit.

Mounted the image of OVM manager at /mnt.

[root@OVM-1 ~]# mount /dev/dvd /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

[root@OVM-1 mnt]# df -h /mnt
Filesystem      Size  Used Avail Use% Mounted on
/dev/sr0        2.3G  2.3G     0 100% /mnt

Step 2 : Now lets see what are the contents present in it.

[root@OVM-1 mnt]# ls
components       oracle-validated.params                OvmSDK_3.3.1.1065.zip
createOracle.sh  ovmcore-console-1.0-36.el5.noarch.rpm  runInstaller.sh
EULA             ovmcore-console-1.0-36.el6.noarch.rpm  TRANS.TBL
LICENSE          ovmm-installer.bsx

Step 3 : Some prerequisites for installation.

Minimum of 8GB RAM is required for installation. Otherwise you will get below warning while installation.
*** WARNING: Recommended memory for the Oracle VM Manager server installation using Local MySql DB is 7680 MB RAM

Must specify the hostname of OEL 6.5 in /etc/hosts file like I did below.
[root@OVM-1 mnt]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.111.110 OVM-1

Step 4 : Before running installer directly we will check whether our OEL 6.5 machine is satisfying the conditions which are require for installation of OVM by running the below script.

[root@OVM-1 mnt]# ./createOracle.sh
Adding group ‘oinstall’ with gid ‘54321’ …
Adding group ‘dba’
Adding user ‘oracle’ with user id ‘54321’, initial login group ‘dba’, supplementary group ‘oinstall’ and  home directory                  ‘/home/oracle’ …
Changing ownership of ‘/home/oracle’ to oracle:dba
Creating user ‘oracle’ succeeded …
For security reasons, no default password was set for user ‘oracle’. If you wish to login as the ‘oracle’ user, you will                  need to set a password for this account.
Verifying user ‘oracle’ OS prerequisites for Oracle VM Manager …
oracle  soft    nofile          8192
oracle  hard    nofile          65536
oracle  soft    nproc           2048
oracle  hard    nproc           16384
oracle  soft    stack           10240
oracle  hard    stack           32768
oracle  soft    core            unlimited
oracle  hard    core            unlimited
Setting  user ‘oracle’ OS limits for Oracle VM Manager …
Altered file /etc/security/limits.conf
Original file backed up at /etc/security/limits.conf.orabackup
Verifying & setting of user limits succeeded …
Creating mountpoint ‘/u01’ …
Modifying iptables for OVM
Adding rules to enable access to:
7002  : Oracle VM Manager https
54322 : Oracle VM Manager core via SSL
123 : NTP
10000 : Oracle VM Manager CLI Tool
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
Rules added.

Step 5 : Everything seems to be okay. Lets proceed further with installation of OVM.

[root@OVM-1 mnt]# ./runInstaller.sh

Oracle VM Manager Release 3.3.1 Installer

Oracle VM Manager Installer log file:
/var/log/ovmm/ovm-manager-3-install-2014-10-12-161041.log

Please select an installation type:
1: Install
2: Upgrade
3: Uninstall
4: Help

Select Number (1-4): 1

Starting production with local database installation …

Verifying installation prerequisites …

One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation:
Enter a password for all logins used during the installation (confirm):

Please enter your fully qualified domain name, e.g. ovs123.us.oracle.com, (or IP address) of your management server for SSL certification generation 192.168.111.110 [OVM-1]: 192.168.111.110

Verifying configuration …

Start installing Oracle VM Manager:
1: Continue
2: Abort

Select Number (1-2): 1

Step 1 of 9 : Database Software…
Installing Database Software…
Retrieving MySQL Database 5.6 …
Unzipping MySQL RPM File …
Installing MySQL 5.6 RPM package …
Configuring MySQL Database 5.6 …
Installing MySQL backup RPM package …

Step 2 of 9 : Java …
Installing Java …

Step 3 of 9 : Database schema …
Creating database ‘ovs’ …
Creating database ‘appfw’
Creating user ‘ovs’ for database ‘ovs’…
Creating user ‘appfw’ for database ‘appfw’

Step 4 of 9 : WebLogic and ADF…
Retrieving Oracle WebLogic Server 12c and ADF …
Installing Oracle WebLogic Server 12c and ADF …
Applying patches to Weblogic …

Step 5 of 9 : Oracle VM  …
Installing Oracle VM Manager Core …
Retrieving Oracle VM Manager Application …
Extracting Oracle VM Manager Application …

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

Step 6 of 9 : Domain creation …
Creating Oracle WebLogic Server domain …
Starting Oracle WebLogic Server 12c …
Creating Oracle VM Manager user ‘admin’ …

Retrieving Oracle VM Manager CLI tool …
Extracting Oracle VM Manager CLI tool…
Installing Oracle VM Manager CLI tool …

Step 7 of 9 : Deploy …
Configuring Https Identity and Trust…
Deploying Oracle VM Manager Core container …
Configuring Client Cert Login…
Deploying Oracle VM Manager UI Console …
Deploying Oracle VM Manager Help …
Disabling HTTP access …

Step 8 of 9 : Oracle VM Tools …

Retrieving Oracle VM Manager Shell & API …
Extracting Oracle VM Manager Shell & API …
Installing Oracle VM Manager Shell & API …

Retrieving Oracle VM Manager Wsh tool …
Extracting Oracle VM Manager Wsh tool …
Installing Oracle VM Manager Wsh tool …

Retrieving Oracle VM Manager Tools …
Extracting Oracle VM Manager Tools …
Installing Oracle VM Manager Tools …
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’ …

Step 9 of 9 : Start OVM Manager …
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…
Oracle VM Manager installed.

Installation Summary
——————–
Database configuration:
Database type               : MySQL
Database host name          : localhost
Database name               : ovs
Database listener port      : 49500
Database user               : ovs

Weblogic Server configuration:
Administration username     : weblogic

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

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://192.168.111.110:7002/ovm/console
Log in with the user ‘admin’, and the password you set during the installation.

Note that you must install the latest ovmcore-console package for your Oracle Linux distribution to gain VNC and serial console access to your Virtual Machines (VMs).
Please refer to the documentation for more information about this package.

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

Oracle VM Manager installation complete.

Please remove configuration file /tmp/ovm_config62pVHA.

Step 6 : I have removed the configuration file as per the previous output.

[root@OVM-1 mnt]# rm /tmp/ovm_config62pVHA
rm: remove regular file `/tmp/ovm_config62pVHA’? y

Step 7 : Now lets try to open the GUI of OVM using below credentials.

https://192.168.111.110:7002/ovm/console

User Name : admin
Password  : POiuytr123

We have to use the password which we used during installation in Step 5.

We can also take the CLI of OVM using below command.

[root@OVM-1 mnt]# ssh -l admin OVM-1 -p 10000
The authenticity of host ‘[ovm-1]:10000 ([192.168.111.110]:10000)’ can’t be established.
DSA key fingerprint is 49:1c:f9:55:83:77:50:8f:79:e1:51:3a:1c:34:72:bc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘[ovm-1]:10000,[192.168.111.110]:10000’ (DSA) to the list of known hosts.
admin@ovm-1’s password:
OVM>

Tip : As the IP tables are on by default. I prefer to disable them until of unless having stringent business requirements.

[root@OVM-1 mnt]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@OVM-1 mnt]# chkconfig iptables off
[root@OVM-1 mnt]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Advertisements

6 thoughts on “How to install Oracle Virtualization Manager (OVM) on OEL ?

  1. raganata

    Doesn’t work on new oel 7?
    I try and give me this
    Retrieving MySQL Database 5.6 …
    And exit without error or any kind of output,on logfile
    nothing.

    Reply
    1. Vikrant Post author

      not sure about this error. I suggest you to check the log files or open a support ticket with Oracle to expedite the resolution.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s