Scenario:
In Linux Mint 18 -Cinnamon (Ubuntu 16) host, started CentOS7 VM in KVM via virt-manager.
then I clicked "Open" icon to show virtual machine (graphical) console and details. This would be the display for QEMU / KVM console.
and I got this error in
Quote:
"Error connecting to graphical console:
Error opening spice console, SpiceClientGtk missing"
|
On VM CentOS 7 side,I found this log messages when I connect using virt-viewer instead of failed connection using Spice console:
Quote:
[root@localhost ~]# cat /var/log/messages | grep avc
...
type=AVC msg=audit(1471235537.999:359): avc: denied { getattr } for pid=2302 comm="spice-vdagent" path="/dev/vport0p2" dev="devtmpfs" ino=432 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u: object_r:virtio_device_t:s0 tclass=chr_file
...
|
So I fixed the error above related to SELinux.
meaning it no longer shows up in the CentOs7 (VM) log messages
But I still am not able to connect using Spice console and still get this error on Linux Mint
host side:
Quote:
"Error connecting to graphical console:
Error opening spice console, SpiceClientGtk missing"
|
On Linux Mint host side, I also already have the missing SpiceClientGtk:
Quote:
$ apt-file find SpiceClientGtk
gir1.2-spice-client-gtk-2.0: /usr/lib/girepository-1.0/SpiceClientGtk-2.0.typelib
gir1.2-spice-client-gtk-3.0: /usr/lib/girepository-1.0/SpiceClientGtk-3.0.typelib
libspice-client-gtk-2.0-dev: /usr/share/gir-1.0/SpiceClientGtk-2.0.gir
libspice-client-gtk-3.0-dev: /usr/share/gir-1.0/SpiceClientGtk-3.0.gir
python-spice-client-gtk: /usr/lib/python2.7/dist-packages/SpiceClientGtk.so
|
Note that the setting for display on virt-manager's "virtual hardware details tab" (click "Open" then in new window click "i" icon) for display are:
Display: type = Spice Server, Address = Localhost only, Port=5900 (Auto)
Video: Model= QXL
What is causing this problem on host side?
Thank you.