Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
libvirt should check the setting keymap of spice device.If set it using any characters and numbers , the guest still can be started.
Version-Release number of selected component (if applicable):
libvirt-0.10.2-4.el6.x86_64
qemu-kvm-0.12.1.2-2.329.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1.# virsh dumpxml rhel6.3-new
<domain>
......
<graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1' keymap='fdshjlf78970'>
<listen type='address' address='127.0.0.1'/>
</graphics>
......
</domain>
2.# virsh start rhel6.3-new
Domain rhel6.3-new started
3.# ps -ef|grep qemu-kvm
qemu 10532 1 55 17:26 ? 00:00:04 /usr/libexec/qemu-kvm -name
.......
serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -k fdshjlf78970 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
......
Actual results:
If set keymap of spice using any characters and numbers , the guest still can be started.
Expected results:
libvirt should check the setting keymap of spice device.
Additional info:
libvirt has no idea what keymaps are supported by QEMU. QEMU itself should fail if it is asked to use a keymap which it doesn't support. Since qemu-kvm -k sadfdsfsdf fails as expected, it's likely that the error is somewhere in spice code, in which case qemu-kvm may not be the right component...
Comment 3Markus Armbruster
2012-10-29 06:43:13 UTC
Quick check shows qemu-kvm fails as expected:
$ qemu-system-x86_64 -nodefaults --enable-kvm -S -vnc :0 -monitor stdio -k fdshjlf78970
Could not read keymap file: 'fdshjlf78970'
Reporter, please provide the full qemu-kvm command line. You should be able to find it in libvirt logs.
Markus, the important part seems to be -spice option. If you try without it, qemu reports an error. However, with -spice, no error is reported and qemu starts just fine.
Comment 6Markus Armbruster
2013-02-11 12:57:45 UTC
As far as I can tell, we completely ignore -k with -spice. Spice has no use for it, because it works with AT key codes.
We could reject use of -k together with -spice instead of ignoring it silently.
Description of problem: libvirt should check the setting keymap of spice device.If set it using any characters and numbers , the guest still can be started. Version-Release number of selected component (if applicable): libvirt-0.10.2-4.el6.x86_64 qemu-kvm-0.12.1.2-2.329.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.# virsh dumpxml rhel6.3-new <domain> ...... <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1' keymap='fdshjlf78970'> <listen type='address' address='127.0.0.1'/> </graphics> ...... </domain> 2.# virsh start rhel6.3-new Domain rhel6.3-new started 3.# ps -ef|grep qemu-kvm qemu 10532 1 55 17:26 ? 00:00:04 /usr/libexec/qemu-kvm -name ....... serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -k fdshjlf78970 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device ...... Actual results: If set keymap of spice using any characters and numbers , the guest still can be started. Expected results: libvirt should check the setting keymap of spice device. Additional info: