Description of problem:
Hi I created 3VMs on my host server. Using virt-manager and virt-viewer through a usb keyboard on my host server it works fine with spice.
When I use SSH remotely launch virt-manager and virt-viewer, keyboad input are not registed but mouse works alrite.
Here is the error when I tried use keyboard
(virt-viewer:623): GSpice-CRITICAL **: send_key: assertion 'scancode != 0' failed
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Connect host using SSH
3.keyboard stroke not recognised
no thing happens
So based on this bug 1170509 it doesn't seem to be virt-manager or virt-viewer issue.
What is your system from which you are connecting to the host via SSH? If your system uses Wayland instead of Xorg the bug will be probably in Spice.
I was not able to reproduce it when connecting from system with Xorg, then I've tried Fedora 25 (where Wayland is the default) and I was able to reproduce it.
Based on this bug https://bugzilla.redhat.com/show_bug.cgi?id=1170509 moving to spice-gtk component.
thanks for the bug report
if client does not know what keymap is used (can be seen in debug "vnc-keymap-WARNING **: Unknown keycode mapping '(unnamed)'") then no keymap is used...
Anyway I don't think this (ssh from wayland to run a spice client) is supported, it has to be solved upstream first - i opened a bug https://bugs.freedesktop.org/show_bug.cgi?id=99714 for it.