Oracle VM: Using Oracle VM Manager 3 from Ubuntu Linux

Oracle VM: Using Oracle VM Manager 3 from Ubuntu Linux

In my initial work with Oracle VM, I have run into a few fringe cases, which are not well documented, but actually have rather simple solutions.  This one actually cropped up over the weekend for me.  Over the weekend I decided to rebuild my company-issued laptop with Ubuntu Linux (12.04 amd64) to be specific.  I did this for a number of reasons…

1)  I am far more effective with Linux, due to the nature of the shell, and tools which I am familiar with (vim, dd, really take your pick they are everywhere).
2)  I personally prefer Ubuntu 12.04 (though they nearly lost me with some of the early iterations of Ubuntu – 12.04 has it mostly sorted), my primary reason for liking Ubuntu is because of the apt package manager.

But I digress.  When I jumped into this I ran into a rather serious issue for me.  I was unable to launch the console of my VMs on Oracle VM Manager (3.1.1).  Initially it seemed that all I might need was the appropriate version of a Java JRE.  Although it turned out to be a bit more complicated than that.

Install OpenJDK 6 JRE

This is the core of what we need to do.  Basically we are trying to launch a Java application, and without it we are unable to carry on.

# apt-get install openjdk-6-jre

However this gets us to a point where we can launch the Java applications, but not actually get console to our system.  For that there is another little bit of software that Oracle has, the Oracle VM Console application.

Download Oracle VM Console Application

Here we have a 64 bit and 32 bit rpm files, download whichever one fits your architecture.

So in my case

# wget

Also it might be wise to check the parent directory to see if newer versions are released.

Now of course we still have to deal with the fact that we are running Ubuntu which doesn’t know what to do with RPMs.  Enter Alien.

Install RPM Conversion Tools

Alien will convert a RPM into a deb file which can be used via dpkg (the underlying system to apt).  So basically we put in an .rpm and get back a .deb.  Simple enough?

# apt-get install alien dpkg-dev debhelper build-essential

Perform Conversion and Installation

So now we just need to feed alien our .rpm and it couldn’t be easier…

# alien ovm-console-1.0.0-2.x86_64.rpm
Warning: Skipping conversion of scripts in package ovm-console: postinst
Warning: Use the --scripts parameter to include the scripts.
ovm-console_1.0.0-3_amd64.deb generated

And now to install our .deb…

# dpkg -i ovm-console_1.0.0-3_amd64.deb
Selecting previously unselected package ovm-console.
(Reading database ... 175033 files and directories currently installed.)
Unpacking ovm-console (from ovm-console_1.0.0-3_amd64.deb) ...
Setting up ovm-console (1.0.0-3) ...

Now just try and launch the console and see what happens.

Displaying Successful OVM Console Connection from Ubuntu 12.04

The same steps allowed it to work on both Firefox and Chromium.