1.1.2. Installing Oracle VM Utilities on Oracle Linux

When installing Oracle VM Utilities on an Oracle Linux server or desktop computer, you may put them in the installation directory of your choice; for example: /usr/local/bin. The Oracle VM Utilities are bundled in a .zip archive. To install, simply download the archive, copy and extract in the appropriate directory.

# cp ovm_utils_archive.zip /usr/local/bin/oracle/
# cd /usr/local/bin/oracle
# unzip ovm_utils_archive.zip
Caution

Oracle VM Utilities do not work with the Open JDK or GNU Compiler for Java (GCJ). You must install a standard Java VM, version 1.6.x, and make sure it is defined as the default Java VM by the JAVA_HOME environment variable or included in the PATH variable on your system.

The command line scripts in Oracle VM Utilities execute a Java program and use the default Java VM on the host computer. To verify the exact path to the Java executable and the active Java version, use the following commands:

# which java
/usr/java
# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java(TM) Server VM (build 20.1-b02, mixed mode)

If a standard Java VM, version 1.6.x, is not available on your system, download and install the version suited for your platform from http://java.com/en/download/.To ensure that the appropriate Java VM version is used, set the JAVA_HOME and PATH variables as follows:

  1. Edit the Oracle Linux shell profile.

    # vi /etc/profile
    - OR -
    # vi /etc/bashrc
  2. Add the lines below to the profile. If your Java path does not match /usr/java, replace with the actual path on your system.

    JAVA_HOME=/usr/java
    export JAVA_HOME
    PATH=$PATH:$JAVA_HOME/bin
    export PATH
  3. Save the file. Log out and log back in to activate your changes.

  4. Verify the Java path and version again, to make sure that the correct Java VM is used.

    # which java
    /usr/java
    # java -version
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java(TM) Server VM (build 20.1-b02, mixed mode)

At this point, the command line scripts are ready to use.