Setup, run and access a VNC session built from script

Hi, Some months ago, I think I read something like that here, but I can not find it... We have several oVirt setups, and we can not change that. We have several VMs on each of them, and sometimes, we have to access their oVirt VNC console, but it is painful to know on which oVirt they are running. At present, I either have to remember on which one it lies, or to web-connect on every oVirt web GUI and crawl. I thought I would be possible to have a DNS cname made like this : c-myServerName, pointing to something leading to the VNC oVirt console of the myServerName VM. That ( <- ? ) would lead to asking oVirt to create a VNC session for the correct VM, create the passwd, then run a noVNC session with the correct credentials. I'm used to play with simple oVirt shell commands, but I guess that many things will happen in a HTML and WWW context, so I've started to play with REST. Does anybody knows if someone took the time to do similar things, or if someone remembers having seen such a workflow? Regards -- Nicolas Ecarnot

On 19/12/14 10:58, Nicolas Ecarnot wrote:
Hi,
Some months ago, I think I read something like that here, but I can not find it...
We have several oVirt setups, and we can not change that. We have several VMs on each of them, and sometimes, we have to access their oVirt VNC console, but it is painful to know on which oVirt they are running. At present, I either have to remember on which one it lies, or to web-connect on every oVirt web GUI and crawl.
you can script that using REST or python sdk. short algo (might miss some steps!): 1. crawl all engines for your vms 2. save the engine which is managing this specific vm 3. connect to the vm through novnc/whatever via ticket to this engine this should take not that much time :) hth -- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

On 12/19/2014 12:52 PM, Sven Kieske wrote:
On 19/12/14 10:58, Nicolas Ecarnot wrote:
Hi,
Some months ago, I think I read something like that here, but I can not find it...
We have several oVirt setups, and we can not change that. We have several VMs on each of them, and sometimes, we have to access their oVirt VNC console, but it is painful to know on which oVirt they are running. At present, I either have to remember on which one it lies, or to web-connect on every oVirt web GUI and crawl.
you can script that using REST or python sdk.
short algo (might miss some steps!): 1. crawl all engines for your vms 2. save the engine which is managing this specific vm 3. connect to the vm through novnc/whatever via ticket to this engine
this should take not that much time :)
hth
or look at manageiq which can be used to manage VMs across multiple ovirt (or other) environments

Le 20/12/2014 22:28, Itamar Heim a écrit :
or look at manageiq which can be used to manage VMs across multiple ovirt (or other) environments
Thank you Sven and Itamar for your answers. I took the time to read, install and test manageIQ, and this tool looks so great. I'm sure I'll have to spend many days playing with it before discovering every bits, but as far as I know, there does not seem to be a way to run a VNC session onto a specific VM in manageIQ. Anyway, Sven's answer is a good beginning. I'll work on it. -- Nicolas Ecarnot
participants (3)
-
Itamar Heim
-
Nicolas Ecarnot
-
Sven Kieske