How to install and configure Oracle Virtual Server 3.2 at home (Part 1/2)

As a DBA we do like to play with features and versions a lot, now with the release of Oracle 12c I wanted to take my virtualization system to another level ūüėČ

I have been using VirtualBox on Linux for a while but I know how much power I can get using “real” hyperthreaded virtualization, so I decided to give Oracle Virtual Server a try after seeing small PCs running OVM and hosting three 11g RAC virtual nodes at Oracle university.

Requirements (software, virtual hardware and real hardware)
OVM needs 2 main components, one is the VM server, which will host the Virtual Machines and a Management console (VM Manager), which requires a separate server (can be a virtual machine).

For VM MANAGER I will use a Virtual Box machine as follows.

Oracle Enterprise Linux 6
2GB RAM
25GB Disk space

For the VM server I will be using a quad-core machine with 2 hard drives. The more memory you have the better because OVM does not support memory overcommitment. This means that you can install as many VMs as your memory support.

Yes, we need at least 2 HDD, one used as the installation/boot disk, the other one will be used as local storage for VMs.
Note: the second disk has to be raw, no partitions in it.
Note 2: As an alternative you can use external storage, like those disk boxes that offer iSCSI or NFS (or another server sharing its disk like FreeNAS), if you have external storage the VM server machine needs only 1 HDD.

Installation:


I did an installation from scratch using Oracle Enterprise Linux 6, alternatively you can download the “VirtualBox Template for Oracle VM Manager” from Oracle that includes everything preconfigured (I haven’t tested it).
Follow this link with instructions and details.
This template contains the following software components :

Oracle Linux 5 update 9 with the Unbreakable Enterprise Kernel (2.6.39)
Oracle VM Manager 3.2.4
Oracle WebLogic Server 10.3
OMySQL 5.5

Now back to the installation, go to this link ¬†and download the software, you may need to create an account to access the “Oracle Software Delivery Cloud”.
I downloaded the following packages (always use the latest version):

  • VM SERVER: Oracle VM Server 3.2.6 for x86_64 (64 bit) –BURN a CD with this one.
  • VM MANAGER: Oracle VM Manager 3.2.6

Using Virtual box console we add the VM MANAGER ISO image to the Virtual machine with Linux installed, then configure Oracle Public YUM, see how here.

As root user we mount the ISO image and install some required packages and prepare the system running the createOracle.sh script, which will configure users, permissions, OS limits and firewall.

mount /dev/cdrom /mnt
cd /mnt
yum install libaio 
yum install unzip
cd /mnt
./createOracle.sh
#Wait for this to finish and then proceed with the instaler

./runInstaller

The installation offers 4 options:

Please select an installation type:
1: Simple
2: Standard
3: Uninstall
4: Help

I chose option “1: Simple” it will install everything, including MySQL, this way memory requirements are only 1.5GB of RAM.
By selecting “2: Standard” we can use another database like XE or SE, which needs to be previouslt installed and the machine will require at least 4GB RAM.

During installation you will have to provide passwords to connect via Web Browser, remember them.
Take note as well of the URL provided to access the console later and wait for the installation to complete.

Then lets install VMServer, insert the previously burned CD in your machine and boot it up.
The installation is quite easy and straight forward, just follow the defaults and fill up the blanks. In the disk partitioning section remember to use only one disk, leaving the other(s) untouched – no partitions on it(them).

During installation you will have to provide passwords for the agent and root, remember them and wait for the installation to complete.

All is installed now, but we are not even close to start creating virtual machines.
In the part 2 of this post I’ll explain how to configure VM Manager, with some screenshots prepared.

Links:
Download software and official info: http://www.oracle.com/technetwork/server-storage/vm/downloads/index.html
All Virtualization documentation for version 3.2: http://docs.oracle.com/cd/E35328_01/index.html
Official install guide – VM MANAGER: http://docs.oracle.com/cd/E20065_01/doc.30/e18548/toc.htm

Advertisements
This entry was posted in Oracle Server, Virtualization and tagged , , , , , , . Bookmark the permalink.

3 Responses to How to install and configure Oracle Virtual Server 3.2 at home (Part 1/2)

  1. Jeremy Week says:

    I’m trying to install OVM Manager 3.2.8 and having an issue with step #8. Here is part of the output below.

    Any ideas how to get this working?

    Thanks!

    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 …
    Failed to install Failed to execute ant target ‘deploy’ of ‘/u01/app/oracle/ovm-manager-3/weblogic/build.xml’
    CLASSPATH=/u01/app/oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/java/lib/tools.jar:/u01/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/u01/app/oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:

    PATH=/u01/app/oracle/Middleware/wlserver_10.3/server/bin:/u01/app/oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/java/jre/bin:/u01/app/oracle/java/bin:/u01/app/oracle/java/bin:/bin:/usr/bin:/sbin:/usr/local/bin:/usr/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/ade/bin

    • Hi Jeremy, I never got that message and the output you pasted seem to be incomplete,
      Are you installing using option 1 or 2?
      When I installed it I chose option 1 and it was pretty straight forward.
      Did you install the required packages from the public YUM?
      Alternatively you could also try the VBox template.
      regards
      Carlos

      • Jeremy Week says:

        Hi Carlos

        I found the problem. This failure is caused by having the following environment variables set:

        ORACLE_HOME, ORACLE_SID, ANT_OPTS

        To get past this failure, I unset these variables:

        # unset ORACLE_HOME
        # unset ORACLE_SID
        # unset ANT_OPTS

        There is also a similar failure in step 7 on the OVM Manager install, if JAVA environment variables are set. To work around those, I unset the following variables too:

        # unset JAVA_HOME
        # unset JAVA_VENDOR
        # unset JDK_ROOT
        # unset ALT_BOOTDIR

        The fix for the OVM Manager install scripts is to not look at the user’s settings for all these environment variables.

        Maybe a possible fix is to have the runInstaller.sh script set them to null

        Thanks!

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