Using OBIEE SampleApp 305 in VM Fusion

Published by in OBIEE, Linux at https://preview.rmoff.net/2013/06/12/using-obiee-sampleapp-305-in-vm-fusion/

Table of Contents
OBIEELinux
This post originally appeared on the Rittman Mead blog.

Oracle distribute the new OBIEE SampleApp as a VirtualBox image, but it is dead easy to run it on VM Fusion instead. Here’s how:

  1. Unzip the SampleApp archive files, and import the OVF to VM

  2. Add and amend network adaptors if required. I always use three:

    • a host-only network private to my Mac and any other VMs running

    • NAT

    • Bridged

  3. The first means I can always work with the VM from my Mac (SSH, web, etc) regardless of external network changes. The second two, NAT and Bridged, cover internet access out from the VM (software updates, etc) for 95% of situations.

    06699sa 01
  4. Boot up. Expect to get X server error (because VMWare has a different video driver to VirtualBox). Keep selecting No, until you get to the console

    06697sa 02
  5. Login as root/root

    06696sa 03
  6. Remove the VirtualBox additions services:

  7. List the VirtualBox additions services

    chkconfig --list|grep vbox
  8. Disable VirtualBox additions, as root:

    chkconfig --list|grep vbox|awk '{print $1}'|xargs -I'{}' chkconfig --del {}
  9. Confirm they’ve been removed:

    chkconfig --list|grep vbox

    + image::/images/2013/06/06695sa_04.png[]

  10. Install VM Tools

  11. Select “Update VMWare Tools” from VM Fusion menu

  12. Mount the CD image on the guest

    mkdir /media/cdrom
    mount /dev/cdrom /media/cdrom
  13. Copy the installer to the guest

    cp /media/cdrom/VMwareTools*.tar.gz /tmp
  14. Unpack the installer

    cd /tmp
    tar xf VMwareTools*.tar.gz
  15. Run the installer. Go with all the defaults given.

    cd vmware-tools-distrib/
    ./vmware-install.pl
  16. Reboot the VM.

    reboot
  17. On reboot, the VM should startup to the graphical (GNOME) Desktop

    06698sa 06

Pimp my server 🔗

This is all optional, but steps I run on a new server instance to get it how I like it:

  1. Open a terminal window and run setup

    sudo setup

    From here you can amend setting for things such as the keyboard layout, timezone, and networking. You can also use the desktop GUI tools to do this if you prefer

    06691sa 05
  2. Add your public SSH key to ~/.ssh/authorized_keys to enable connecting over SSH without entering a password each time

  3. Create ~/.screenrc (screen is already installed on SampleApp. See this post for details of what screen is and why it is so useful).

    hardstatus alwayslastline "%{= RY}%H %{kG}%{G} Screen(s): %{c}%w %=%{kG}%c  %D, %M %d %Y  LD:%l"
    startup_message off
    msgwait 1
    defscrollback 100000
    nethack on
    06690sa 07
  4. Add EPEL yum repository:

    wget http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    sudo rpm -i epel*.rpm
  5. Update all packages

    sudo yum update -y
  6. Set the OBIEE and DB instances to start automagically at bootup, using init.d script such as these

This post originally appeared on the Rittman Mead blog.