On Thu, Apr 07, 2016 at 08:26:20 -0400, Francesco Romani wrote:
Hi everyone,
If a VM is configured to have a console attached to it, like using
http://libvirt.org/formatdomain.html#elementCharConsole
Libvirt offers access to VM serial console's using the virDomainOpenConsole API[1]
However, I didn't find a way to
1. list the existing connections to the console
2. kill an existing connection - without reconnecting using VIR_DOMAIN_CONSOLE_FORCE[2]
Am I missing something? How can I do that?
Neither of those is possible currently.
Rationale for my request
oVirt [3] offers a management interface for VMs, and we have recently integrated
user-friandly
VM serial console access [4] in the system; in the future release we want to enhance the
administation
capabilities allowing to check existing connections and to terminate them (maybe because
it got stuck).
I think the plan that danpb has in this aspect is to use virlogd to
distribute the console output to almost any number of clients, which
would solve this kind of problem.
Additionally, doesn't oVirt use just one connection from VDSM for this
purpose. In that case it's rather trivial to know which connection
(to libvirt) has currently opened console stream. ;)
Peter