Bug 371511
| Summary: | Keyboard-keys is wrong in kvm-installation | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Espen Stefansen <libbe> |
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 9 | CC: | andris.pavenis, berrange, crobinso, hbrock |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-12-21 08:27: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: | |||
|
Description
Espen Stefansen
2007-11-08 17:17:38 UTC
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 KEYBOARDTYPE="pc" KEYTABLE="no" /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- manager? 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'>
<name>Slackware-11</name>
<uuid>eaae37fe-077b-fa9c-8718-f14dfcdd2632</uuid>
<memory>512000</memory>
<currentMemory>512000</currentMemory>
<vcpu>1</vcpu>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<source file='/opt/kvm/slackware-11'/>
<target dev='hda'/>
</disk>
<interface type='network'>
<mac address='00:16:3e:7d:de:81'/>
<source network='default'/>
<target dev='vnet0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' listen='127.0.0.1'/>
</devices>
</domain>
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. http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=98cd7845a3b5 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: http://fedoraproject.org/wiki/BugZappers/HouseKeeping virt-manager-0.6.0-0.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/virt-manager-0.6.0-0.fc9 virt-manager-0.6.0-1.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/virt-manager-0.6.0-1.fc9 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. |