OVH Community, your new community space.

vKVM concole in Ubuntu/linux


Thelen
20-10-2012, 10:23
Thanks, I had similar troubles with windows, it only likes 7r6 apparently, any of the new ones complain/crash/etc. Seems to be consistent with supermicro stuff as well, although it would still work, just complain that java wasn't installed.

lubko
19-10-2012, 12:04
Hello, im very new to the ovh "profesional use" feature set.
I had a small fight last night with the vKVM console, and i thought i woudl share some experience.

The console would not work with any of my browsers, i kept downloading "kvm.jnlp" files.
And javaws would not sucessfully start them either.
Not to mention, i was not overly excited about installing java plugin to my browser, or the advice to download java from oracle.

So here is a way i found to connect.

Download "JViewer.jar", once. I saved it into /opt/ovh/

Code:
mkdir /opt/ovh
cd /opt/ovh
wget --no-check-certificate "https://178.32.242.0/Java/release/JViewer.jar"
This exactly the referenced in the jnlp file.


Log into the ovh manager and download "kvm.jnlp"


Run script.sh /path/to/jnlp.file
Code:
#!/bin/bash

java='/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'
jar='/opt/ovh/JViewer.jar'

jnlp=$HOME'/Downloads/kvm.jnlp'

if [ $# -eq 1 ]
  then
    jnlp=$1
fi

jargs=`sed -n 's|[^<]*\([^<]*\)[^<]*| \\ \1|gp' $jnlp`
$java -jar $jar $jargs
rm $jnlp


It seems to work with both jre6 and jre7, I saw more useful error messages while fiddling with 7, so i kept using it.
The script deletes the kvm.jnlp file afterwards, as it expires anyway. I did no proper testing, but it felt as if it was good for about 10 minutes.

Todo:
1) download "kvm.jnlp" from bash.
2) check if supermicro has newer & compatible version of "JViewer.jar"
3) figure out what the other option "Serial Over LAN - IPMI" is good for / how to use it.


I'll be glad for comments, i am not sure if im not doing something completely unnecessary.