[et-mgmt-tools] [virt-manager] - VNC does not use correct keyboard map
Daniel P. Berrange
berrange at redhat.com
Wed Oct 10 19:33:14 UTC 2007
On Wed, Oct 10, 2007 at 04:28:42PM -0300, Davidson Rodrigues Paulo wrote:
> 2007/10/10, Daniel P. Berrange <berrange at redhat.com>:
> > For Brazilian it supports 'pt-br' - if that is compatible
> > with br-abnt2 I can make sure we setup a mapping for br-abnt2 -> pt-br
>
> Searching on the net I've found that this mapping is stored in a
> Python array in /usr/share/virt-manager/virtManager/keytable.py. I've
> not found any entry for 'br-abnt2' keymap, so I modified the file,
> including the following line:
>
> "br-abnt2":"pt-br",
>
> After that I recompiled the Python file and restarted libvirtd, but
> this not work...
It'll only take effect for guests created in virt-manager after this
change. In the logs /root/.virt-manager/virt-manager.log you ought
to see the XML description of the guest, with a <graphics> tag mentioning
the keymap
> > It has to be configured at the time the guest OS is installed.
>
> And after, there is a way to change this?
virsh dumpxml {NAME|UUID|ID of GUEST} > guest.xml
edit the guest.xml <graphics> tag to set keymap="pt-br"
virsh define guest.xml
(Add --connect qemu:///system if using QEMU/KVM rather than Xen)
Then when you start the guest, it should pick up the new keymap. You can
check by looking at the 'qemu' process that gets run.
ps -axfuww | grep qemu
which should have a -k option with the keymap
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
More information about the et-mgmt-tools
mailing list