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.
Bug 638523 - virt-install sets keymap, breaks keyboards
Summary: virt-install sets keymap, breaks keyboards
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 704471
TreeView+ depends on / blocked
 
Reported: 2010-09-29 09:07 UTC by Marko Myllynen
Modified: 2012-03-02 11:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
* virt-install would put keymap into the generated xml file causing qemu internal keymaps to be used resulting in the possiblity of broken keyboards. This update fixes the default keymap for qemu and ensures correct operation of the -k option. (BZ#638523)
Clone Of:
: 704471 (view as bug list)
Environment:
Last Closed: 2011-05-19 13:42:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0636 0 normal SHIPPED_LIVE python-virtinst bug fix and enhancement update 2011-05-18 17:55:48 UTC

Description Marko Myllynen 2010-09-29 09:07:17 UTC
Description of problem:
When installation a new VM with virt-install /without/ the -k option virt-install still puts "keymap" in the generated XML file. This causes QEMU internal keymaps to be used and several keyboards are broken then (e.g., with Finnish keyboard one can't get <>| chars). Manually removing the keymap definition from the XML file fixes the issue.

virt-install should add keymap=.. only if -k option is used.

Version-Release number of selected component (if applicable):
RHEL 6.0 RC 1 / python-virtinst-0.500.3-7.el6

Comment 3 Cole Robinson 2010-11-04 18:35:33 UTC
Fixed upstream now:

http://hg.fedorahosted.org/hg/python-virtinst/rev/2bde513dcd9e

Latest QEMU works best when no keymap is specified, since gtk-vnc supports a QEMU extension which makes manual keymap unnecessary. This also fixes -k none brokenness.

Comment 4 Cole Robinson 2011-01-14 22:11:03 UTC
Fix built in python-virtinst-0.500.5-1.el6

Comment 6 koka xiong 2011-01-20 10:02:11 UTC
Verified with libvirt-0.8.7-1.el6.x86_64 and python-virtinst-0.500.5-1.el6
1.Run /usr/bin/virt-install --connect qemu:///system --name m2-test-3 --ram 768  --cdrom /root/Downloads/RHEL5.5-Server-20100322.0-i386-DVD.iso --os-type linux --disk path=/root/test1,size=8 --vnc --noreboot --debug
2.
Look at the output log
Wed, 19 Jan 2011 16:42:47 DEBUG    Generated install XML: 
....
 <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1'/>
    <console type='pty'/>
...
Wed, 19 Jan 2011 16:42:47 DEBUG    Generated install XML: 
....
 <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1'/>
    <console type='pty'/>

No keymap is generated when not setting -k option.

Verification is passed.

Comment 7 zhe peng 2011-04-18 02:33:41 UTC
verified this bug with:
Linux localhost.localdomain 2.6.32-130.el6.x86_64 #1 SMP Tue Apr 5 19:58:31 EDT
2011 x86_64 x86_64 x86_64 GNU/Linux

python-virtinst-0.500.5-3.el6.noarch
libvirt-0.8.7-17.el6.x86_64

passed.

Comment 9 Michael Hideo 2011-05-16 02:55:04 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
* virt-install would put keymap into the generated xml file causing qemu internal keymaps to be used resulting in the possiblity of broken keyboards. This update fixes the default keymap for qemu and ensures correct operation of the -k option. (BZ#638523)

Comment 10 errata-xmlrpc 2011-05-19 13:42:57 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0636.html


Note You need to log in before you can comment on or make changes to this bug.