Bug 487735
Summary: | virt-manager/virtinst should not set a keymap unless one is explicitly requested | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Klaus-Peter Schrage <kpschrage> |
Component: | python-virtinst | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | berrange, clalance, crobinso, ehabkost, gcosta, hbrock, madko, markmc, mishu, quintela, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-04-09 15:22:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 480594 |
Description
Klaus-Peter Schrage
2009-02-27 17:47:19 UTC
There is a workaround: 1. Change a line in the virtual machines's XML file in /etc/libvirt/qemu/ from <graphics type='vnc' port='-1' autoport='yes' keymap='en_us'/> to <graphics type='vnc' port='-1' autoport='yes' keymap='de'/> 2. Restart the libvirtd daemon. But a bug in virt-manager remains. This tool seems to be made for virtualization newbies like me who usually don't poke around in xml configuration files hidden from ordinary users. It would be preferrable if virt-manager asked for the desired keymap. I still have the AltGr problem mentioned above, but that is another story. QEMU has had a VNC extension added so that the keymap is no longer required - it will use raw scancodes across the wire & into the guest, so the guest has complete control over keymap without needing this setting. This will be in Fedora 11 Thanks, Daniel, that sounds good (as far as I can understand it), and I can wait until Fedora 11 comes up. Danpb, so how will this work? Does qemu just ignore a manually specified keymap, or should libvirt drop the keymap setting for a sufficiently new version? No, if you set a keymap, QEMU will always use that keymap. The raw scancode VNC extension is only activated if no keymap is specified. So I'd recommend that virt-install never set a keymap, unless the user explicitly asks for one with "--keymap fr". For virt-manager we should probably have a globall preference available, which defaults to no keymap at all, but which lets the user override to an explicit one if desired (eg, so it works with VNC clients not supporting the extension) FWIW: If there is no keymap specified in the xml file, i. e. if the above line reads <graphics type='vnc' port='-1' autoport='yes'/> then the host's keymap setting are respected, even the characters accessible by means of the AltGr key are reproduced. It seems as if the key codes are mapped directly to the guest. But you can't set this in virt-manager, you have to make changes in the xml file manually. Okay, fixed python-virtinst-0.400.3-5.fc11 (rawhide). Now the user has to explictly set a keymap via virt-install, or when adding a Graphical device via virt-manager. Closing as RAWHIDE. Please reopen if you still see issues. |