LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   KVM keyboard layout problem (https://www.linuxquestions.org/questions/linux-newbie-8/kvm-keyboard-layout-problem-767545/)

kenneho 11-07-2009 11:25 AM

KVM keyboard layout problem
 
Hi.


I've just installed my first couple of virtual machines (VM's) in Ubuntu using virt-manager running on KVM. I've installed both Fedora 10 and Ubuntu 9.10, and in both I'm having problems setting up the keyboard.

While in Gnome, I click System > Preferences > Keyboard, and choose the same keyboard as my Ubuntu host is set up with, i.e. "Generic 105-key (Intl) PC". But when I type in stuff in the "Type to test settings" box, many of the keys are completely off. For example, in norwegian we have letters such as "æ", "ø" and "å", and typing these keys results in nothing.

So how come the setting is working on my host, but not in my guests (i.e. VMs)? Any ideas where to start debugging this?

Edit: I should add that when I choose english layout in the VMs, the key mappings are different from when I choose the same on the host. So there is obviously something wrong somewhere....

Regards,
kenneho

opaltoad 11-08-2009 05:59 AM

you need to change your language settings, not the amount of keys your keyboard has.
Look for something along the lines of regional settings in your system preferences.

kenneho 11-14-2009 07:17 AM

Quote:

Originally Posted by opaltoad (Post 3749002)
you need to change your language settings, not the amount of keys your keyboard has.
Look for something along the lines of regional settings in your system preferences.

Thanks for your reply.

I don't believe it's my language settings that are causing the symptom, cause I've found that if I boot my virtual machine (VM) from the "virt-manager" application, it get keyboard problems, but booting it like this everything is just perfect:
Code:

sudo kvm -hda virtualdisk.img -cdrom cdrom.iso -m 256 -net nic -net user -soundhw all
So for some reason, booting the VM from "virt-manager" is different from booting via the command line issuing "kvm ...". Do you happen to know what the big difference is?

kenneho 11-14-2009 07:42 AM

I've moved this discussion to the virtualization forum:

http://www.linuxquestions.org/questi...-works-769091/


All times are GMT -5. The time now is 11:35 PM.