kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.12k stars 364 forks source link

[feature request] console support for file sockets #1237

Open zingmars opened 6 years ago

zingmars commented 6 years ago

In some situations it is desirable to run console through a file socket (which by default located in /var/lib/libvirt/qemu/domain-(...)/) as opposed to tcp sockets (i.e. 127.0.0.1:5900). An example of a situation is when using virgl acceleration which does not support sending data over a socket.

Right now trying to open a console of a vm that is configured to use file socket display will return http code 500 and write this in the logs - KCHVM0010E: Unable to connect to powered off virtual machine <vm-name>. (which is misleading, because the vm is clearly marked as running, and is in fact, running). 20180609-150301

The socket however, works just fine when forwarded and connected through ssh - 20180609-150039