Red Hat Bugzilla – Bug 371511
Keyboard-keys is wrong in kvm-installation
Last modified: 2008-12-21 03:27:38 EST
Description of problem:
I installed a virtual F8 in on my F8-installation. And then changed the
keyboard and text to Norwegian Bokmål. Now most of the keys are wrong. Only a-
z, A-z and 0-9 is working as it should. Every other key is wrong. I can't even
be root, since i can't find '-'. I also tried Swedish keyboard-settings, and
that one seems wrong as well.
Version-Release number of selected component (if applicable):
Both installations are a fresh F8.
Steps to Reproduce:
1. Install f8 in libvirt
2. Boot and change keyboard
Only the following keys a-z, A-z and 0-9 works as it should
All keys should work
What is the keyboard layout set to in the host and the guest? Also, can you see
what the qemu-kvm command line is?
The keyboard layout is set to 'no' on both the host and the guest.
[root@itse68482 misc]# cat /etc/sysconfig/keyboard
/usr/bin/qemu-kvm -M pc -m 500 -smp 1 -monitor pty -boot c -hda /mnt/misc/
virtual/rawhide.img -net nic,macaddr=00:16:3e:10:33:ee,vlan=0 -net
tap,fd=11,script=,vlan=0 -usb -vnc 127.0.0.1:0
You need to pass '-k no' to KVM to tell it to use 'no' keylayout too.
But isn't this something that should be taken care of automatically? In virt-
Or at least to be able to specify keyboard layout in settings of virt-manager.
Hi, do you still see this issue with current rawhide or f8 packages? If so,
after the install can you do a 'virsh --connect qemu:///system dumpxml
<domname>' from the command line and post that here. Also,
~/.virt-manager/virt-manager.log as well. Thanks.
I'm getting it on x86_64 with qemu-0.9.0-7.fc8, virt-manager-0.5.3-1.fc8,
keyboard layout: fi.
[root@ap ~]# virsh --connect qemu:/system dumpxml Slackware-11
<domain type='kvm' id='1'>
<disk type='file' device='disk'>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' listen='127.0.0.1'/>
yes this is a bug on the virt-manager side. virt-manager should be able to set
up most keymaps to automatically work, but in the 'fi' case we didn't have a
mapping set up correctly. Current upstream has the option of setting the keymap
manually for the guest, but only after the initial install phase.
As a quick fix, edit /usr/share/virt-manager/virtManager/keytable.py and replace
the line "":"fi" with "fi":"fi" and guests should set up a keymap correctly when
created. Also, current upstream has the ability to manually set the keymap for a
guest after the initial install phase.
This should now be fixed upstream, also with some better logging.
If that fix I suggested doesn't work, can you report that here?
Does not seem to work in Fedora 8 (x86_64). I didn't patch virt-manager yet.
only patched keytable.py ("se_FI":"fi" to "fi":"fi").
Just to clarify, this won't fix an existing guest. It will only fix the mapping
for newly created guests. Did you try and create a new guest?
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
virt-manager-0.6.0-0.fc9 has been submitted as an update for Fedora 9.
virt-manager-0.6.0-1.fc9 has been submitted as an update for Fedora 9.
virt-manager-0.6.0-1.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing-newkey update virt-manager'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-10705
virt-manager-0.6.0-1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.