Guenadi N Jilevski's Oracle BLOG

Oracle RAC, DG, EBS, DR and HA DBA BLOG

Oracle Virtualization – Installing Oracle VM Server 3.0.3, Oracle VM Manager 3.0.3 and Deploying Oracle RAC 11gR2 (11.2.0.3) Oracle VM templates Linux x86 64 bit for test configuration

Oracle Virtualization – Installing Oracle VM Server 3.0.3, Oracle VM Manager 3.0.3 and Deploying Oracle RAC 11gR2 (11.2.0.3) Oracle VM templates Linux x86 64 bit for test configuration

In two posts I will cover Oracle VM server 3.0.3 and 3.1.1 technology; the first (this one) will be dedicated to 3.0.3 and the second (next one)to 3.1.1. Oracle provides virtualization software ranging from bare metal implementations based on Oracle VM Server to a Microsoft Windows/Linux/Mac OS and Solaris deployments based on Oracle Virtual Box. Oracle VM Manager facilitates management of Oracle VM Server. In this article you will look at the installation of Oracle VM server 3.0.3 and Oracle VM Manager 3.0.3 on Oracle VirtualBox and in addition I will provide guidelines for deploying Oracle RAC 11gR2 (11.2.0.3) Oracle VM templates Linux x86 64 bit for test configuration using Oracle VM Manager. For information relating to earlier Oracle VM server 2.2.1 deployment with RAC templates click here. All software can be downloaded from edelivery.oracle.com (Oracle Software Delivery Cloud) and the templates (version 11.2.0.3) can be downloaded as a patch from MOS (patch 12694014). The approach described in the article is applicable on any supported platform although I am using Oracle VirtualBox for testing. Bear in mind that contrary to Oracle VM server 2.2.1 in Oracle VM Server 3.0.3 YOU WILL NOT BE ABLE to have RAC templates deployed in Virtual box environment due to Oracle VM 3.0.3 dmidecode requirement that VirtualBox does not comply. I will show briefly guidelines for a successful RAC template deployment after Oracle VM Server 3.0.3 and Oracle VM Manager are installed. In the next post I will present a detail steps by step guide for RAC templates deployment using Oracle VM server 3.1.1 and Oracle VM Manager 3.1.1.

Software versions used are:

  • Oracle VirtualBox 4.1.16
  • Oracle VM Server 3.0.3
  • Oracle VM Manager 3.0.3
  • OEL 6.2

The article will cover the following:

  • VirtualBox configuration for VM Server machine and VMManager machine
  • Installation of Oracle VM Server
  • Installation of Oracle VM Manager
  • Deployment of Oracle RAC 11gR2 Oracle VM templates Linux x86 64bit for test configuration

In real life Oracle VM server runs on a dedicated set of servers and is installed as a bare metal product without the need of an Operating system. Oracle VM Manager is installed on a Linux box. Oracle VirtualBox can be successfully used for testing and self-study of the new features.

The main components in the architecture are two virtual machines.

Virtual Machine IP Address OS Purpose
OracleVMServer303 192.168.2.21 OEL XEN with Oracle VM Server 3.0.3 Oracle VM Server 3.0.3
OracleVMManager303 192.168.2.31 OEL 6.2 Oracle VM Manager 3.0.3
  1. VirtualBox configuration to run Vmserver303 machine and VMManager303 machine.

    The article assumes that the VirtualBox is downloaded and installed and that both virtual machines are configured as follows.

    VM for Oracle VM Server 3.0.3


VM for Oracle VM Manager 3.0.3


OEL 6.2 is installed as a base OS for the OracleVMManager303 while Oracle VM Server is used for the OracleVM303 machine. Note that in case of OracleVMManager303 machine Guest additions are installed and the shared folder feature is enabled by placing in the guest /etc/rc.local the following command’ mount -t vboxsf OracleVMServer /media/windows’. Both machines also have multiple NIC defined. Bridged interfaces are required for the OracleVM and OracleVMManager setup. NAP is for access to the Internet and the host-only adapters are for access from the host OS (Microsoft Windows in my case). All iso images are in the shared folder and the OEL or Oracle VM server iso is specified for the initial OEL and Oracle VM Server installation. For additional information related to OEL 5.X installation click here.

  1. Installing OEL 6.2 in OracleVMManager303 virtual machine

    OEL 6.2 will be used to host the Oracle VM Manager 3.0.3. Install OEL 6.2 as shown below. Insert the bootable ISO and start the OracleVMManager303 virtual machine. Skip the media test.


    Press Next.


    Select Language.


    Select keyboard.


    Select storage device type.


    Acknowledge.


    Name the computer.


    Specify IP addresses for each interface.





    Get back to the network configuration screen and press Next to continue.


    Configure geographic location


    Enter root password.


    Select an installation type.


    Select Next to continue.


    Select Next to continue.


    Select Basic server.


    Press Reboot.


    Press Forward.


    Acknowledge and press Forward.


    Press Forward.


    Enter user credentials and ress Forward.


    Select NTP


    Press Finish.


    Select a user.


    Run installation of the latest guest additions (GE). Here the screenshot is for illustrative purpose only and uses older GE. Wait for the installation to complete and reboot at the end.



    Modify /etc/hosts as show below. You are ready to install Oracle VM Manager 3.0.3 or later.


    Reboot the VM.

  2. Installing Oracle VM Server 3.0.3 in OracleVMServer303 virtual machine

    Start the OracleVMServer303 virtual machine.


    Press Next after identifying the location of the ISO image of the VM Server 3.0.3.

    Locate the VM Server iso image for initial installation.


    Verify and start the installation.


    Press Enter.


    Press Skip.


    Select keyboard.


    Accept license agreement.


    Acknowledge.


    Select the options for a fresh install (remove all partitions and create default layout).


    Press Yes.


    Press Yes.


    Press Ok.


    Press OK.


    Select a network interface and press OK.


    Enter IP address and netmask.


    Enter gateway and DNS.


    Enter hostname


    Enter time zone.


    Enter a password.


    Press OK.


    Wait for the installation to complete and press Reboot.


    Press Oracle VM Server-ovs.


    Examine the screen and press Alt-F2 to login.


    Now you can login.


  3. Install and configure Oracle VM Manager 3.0.3

    You can access Oracle VM 3.0.3 and Oracle VM Manager 3.0.3 documentation from here. Detail information related to the prerequisites and installation of Oracle VM Manager 3.0.3 is available here.

    4.1 Ensure that prerequisites for Oracle VM Manager are met

    Transfer the image VMManager303.iso into the OEL 6.2. Loop mount the ISO.

    mkdir -p /u02/stage

    mount -o loop /u02/VMManager303.iso /u02/stage

    Make sure that prerequisites for installation are met. Run Oracle supplied ./createOracle.sh in order to configure the environment for Oracle VM Manager 3.0.3 installation.

    [root@vmmgr stage]# ./createOracle.sh

    Adding group ‘oinstall’ with gid ‘54323’ …

    groupadd: group ‘oinstall’ already exists

    Adding group ‘dba’

    groupadd: group ‘dba’ already exists

    Adding user ‘oracle’ with user id ‘54322’, initial login group ‘dba’, supplementary group ‘oinstall’ and home directory ‘/home/oracle’ …

    User ‘oracle’ already exists …

    uid=54321(oracle) gid=54322(dba) groups=54322(dba),54321(oinstall)

    Creating user ‘oracle’ succeeded …

    Verifying user ‘oracle’ OS prerequisites for Oracle VM Manager …

    oracle    soft    nofile        8192

    oracle    hard    nofile        8192

    oracle    soft    nproc        4096

    oracle    hard    nproc        4096

    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 …

    Modifying iptables for rule RH-Firewall-1-INPUT(default)

    Adding rules to enable access to :

    7001 : Oracle VM Manager http

     7002 : Oracle VM Manager https

    15901 : Oracle VM Manager VM console proxy

    54321 : Oracle VM Manager core

    Firewall rule RH-Firewall-1-INPUT does not exist, please configure iptables manually.

    [root@vmmgr stage]#

    4.2.    Run the Oracle VM Manager 3.0.3 installation.

    [root@vmmgr stage]# ./runInstaller.sh

    Oracle VM Manager Release 3.0.3 Installer

    Oracle VM Manager Installer log file:

     /tmp/ovmm-installer.selfextract_oGc3Mp/install-2012-05-03-092103.log

    Please select an installation type:

    1: Demo

    2: Production

    3: Uninstall

    4: Help

    Select Number (1-4): 2

    Starting standard installation …

    Verifying installation prerequisites …

    Oracle Database Repository

    ==========================

    Would you like to install Oracle Database 11g Express Edition (XE) or connect to an existing Oracle database?

     1: Install Oracle Database 11g XE

    2: Use an existing Oracle database

    Select Number (1-2): 1

    Enter the Oracle Database SYSTEM password:

    Invalid password.

    Passwords need to be between 8 and 16 characters in length.

    Passwords must contain at least 1 lower case and 1 upper case letter.

    Passwords must contain at least 1 numeric value.

    Enter the Oracle Database SYSTEM password:

    Enter the Oracle Database SYSTEM password (confirm):

    Enter the Oracle Application Express (APEX) port [8080]:

    Enter the Oracle Database listener port [1521]:

    Enter the Oracle VM Manager database schema [ovs]:

    Enter the Oracle VM Manager database schema password:

    Enter the Oracle VM Manager database schema password (confirm):

    Oracle Weblogic Server 11g

    ==========================

    Enter the Oracle WebLogic Server 11g user [weblogic]:

    Enter the Oracle WebLogic Server 11g user password:

    Enter the Oracle WebLogic Server 11g user password (confirm):

    Oracle VM Manager application

    =============================

    Enter the username for the Oracle VM Manager administration user [admin]:

    Enter the admin user password:

    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 …

    Installing Database …

    Retrieving Oracle Database 11g XE …

    Installing Oracle Database 11g XE …

    Configuring Oracle Database 11g XE …

    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 …

    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 …

    Enabling HTTPS …

    Granting ovm-admin role to user ‘admin’ …

    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 …

    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 …

    Restarting Oracle VM Manager instance …

    Waiting 15 seconds for the application to initialize …

    Oracle VM Manager is running …

    Oracle VM Manager installed.

    Please wait while WebLogic configures the applications… This can take up to 5 minutes.

    Installation Summary

    ——————–

    Database configuration:

     Database host name : localhost

    Database instance name (SID): XE

    Database listener port : 1521

    Application Express port : 8080

     Oracle VM Manager schema : ovs

    Weblogic Server configuration:

     Administration username : weblogic

    Oracle VM Manager configuration:

    Username : admin

    Core management port : 54321

     UUID : 0004fb0000010000f8a01f5a1718ffd9

    Passwords:

    There are no default passwords for any users. The passwords to use for Oracle VM Manager, Oracle Database 11g XE, 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:

    http://vmmgr.gj.com:7001/ovm/console

    https://vmmgr.gj.com: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_configFJjACX.

    [root@vmmgr stage]#

    4.3    Login into Oracle VM Manager 3.0.3


  4. Guidelines for Installing two nodes RAC using VM templates

    Oracle VM Server 3.0.3 relies on dmidecode for some hardware detection capabilities and this is not exposed to VirtualBox guests. Thus, discovery from VM Manager fails. VM Server 3.1.1 is supposed to drop the dmidecode requirement(See my next post with Oracle VM Server 3.1.1 and Oracle VM Manager 3.1.1).

    The templates installation is described in great details for Oracle VM server 2.1. Although conceptually nothing has changed there a couple of turning points that needs to be carefully observed.

    I successfully got RAC templates running on a bare metal installation and the major stumble blocks are summarized below.

    5.1 Follow carefully the Getting Started Guide for Release 3.0.3

    5.2 Upload the template by using ftp

    5.2.1 Enable ftp

    5.2.2 Place the template files in the home directory for the user. For example /home/gjilevski

    5.2.3 Define FTP URL as follows

    ftp://gjilevski:password@192.168.2.31/OVM_OL5U7_X86_64_11203RAC_PVM-2of2.tgz

    ftp://gjilevski:password@192.168.2.31/OVM_OL5U7_X86_64_11203RAC_PVM-1of2.tgz

    Where the *.tgz are in /home/gjilevski

    5.3 Create shared files ASM1,ASM2,ASM3,ASM4,ASM4 each of 2GB for RAC template deployment

    5.4 Follow the template deployment documentation having in mind menus has changed.

  5. Conclusion

You looked at how to Install Oracle VM Server 3.0.3 and Oracle VM Manager 3.0.3. Guidelines were provided for installing Oracle RAC 11.2 from templates for VM. In the next post you will have a look at how to perform an upgrade to Oracle VM 3.1.1 and Oracle VM Manager 3.1.1 and step by step guide for Oracle RAC deployment using templates on Oracle VM 3.1.1 technology.


Download  Oracle Virtualization – Installing Oracle VM Server 3.0.3, Oracle VM Manager 3.0.3 and Deploying Oracle RAC 11gR2 (11.2.0.2) Oracle VM templates Linux x86 64 bit for test configuration

June 19, 2012 - Posted by | oracle

4 Comments »

  1. […] the second post, first is here, for Oracle VM 3.1.1 technology you will look at how to upgrade the existing Oracle VM server and […]

    Pingback by Oracle Virtualization – Installing Oracle VM Server 3.1.1, Oracle VM Manager 3.1.1 and Deploying Oracle RAC 11gR2 (11.2.0.3) Oracle VM templates Linux x86 64 bit for test configuration « Guenadi N Jilevski's Oracle BLOG | June 20, 2012 | Reply

  2. Thanks for a very helpful post. Would be nice to have a printer friendly version though 🙂 But nonetheless all your posts are very helpful.

    Comment by newbie01oracle | July 19, 2012 | Reply

    • Hi,

      I started providing a pdf along with the blog posts. I will upload a pdf later.

      Regards,

      Comment by gjilevski | July 20, 2012 | Reply

  3. Why people still use to read news papers when in this technological globe the whole thing is
    presented on web?

    Comment by dedicated to the dedicated | July 20, 2012 | Reply


Leave a comment