Table of Contents

Setting/correcting keymap in Virt-Manager

The keymap is part of the VNC configuration.
Can be set manually or through virt-manager.

Set it from Virt-Manager

Details → Display VNC 1) → Remove
Add hardware → Graphics → Keymap = Same as host

Set it manually

Edit XML config for guest

e.g. /etc/libvirt/qemu/GuestOS.xml and add/change keymap field in graphics element, i.e.:

Before:

<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us'/>

After:

<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='es'/>

Reload libvirt service configuration, e.g. on debian:

# /etc/init.d/libvirt-bin force-reload
1) See keymap field