1.19 Virtual Keyboards

When a virtual machine is started, the host creates a virtual keyboard that matches the keymap entry according to the virtual machine’s settings. If there is no keymap entry in the virtual machine’s settings, the host uses the keymap entry specified in host’s xend file ( xend-config.sxp). If there is no keymap entry in either the host’s xend file or the virtual machine’s settings the virtual machine’s keyboard defaults to English (US).

Unless you manually specify it, a keymap entry is not specified in the host’s xend file or for any virtual machine. Therefore, by default, all virtual machine settings use the English (US) virtual keyboard. It is recommended that you specify a keymap setting for xend and for each virtual machine, especially if you want to migrate virtual machines to different hosts

To view a virtual machine’s current keymap entry (if any), enter the following command on the host desktop:

xm list -l vm_name | grep keymap

You can specify a keymap entry to be used for all virtual machines and keymap entries for specific machines.

In the device > vfb section, add the desired keymap entry to the file. For example, to specify a German keyboard, add a (keymap de)entry. Make sure the virtual machine’s operating system is set to use the specified keyboard. After you specify the host’s keymap setting, all virtual machines created by using the Create Virtual Machine Wizard on the host add the host’s keymap entry to their virtual machine settings.

Virtual machines created before a host’s keymap entry is specified are not automatically updated. These virtual machines start with the keyboard specified by the host, but the keymap entry is not a permanent part of the virtual machine’s settings. For the entry to be permanent, it must be explicitly stated in the virtual machine’s settings.

Table 1-5 Language and Keymap Settings

Language

Keymap Setting

Danish

da

German

de

Swiss-German

de-ch

English (UK)

en-gb

English (US)

en-us

Spanish

es

Finnish

fi

French

fr

French - Belgium

fr-be

French - Canada

fr-ca

French - Switzerland

fr-ch

Hungarian

hu

Icelandic

is

Italian

it

Japanese

ja

Dutch

nl

Dutch - Belgium

nl-be

Norwiegen

no

Polish

pl

Portuguese

pt

Portuguese - Brazil

pt-br

Russian

ru

Swedish

sv