VMware Cloud Community
DamianN
Contributor
Contributor
Jump to solution

How to set keyboard to Swiss German in ks.cfg

Hi

How can I set the keyboard to swiss german using unattend script ks.cfg (esx5). Regarding to the online doc swiss german is not listet.

Thank you

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

To configure the keyboard layout in ESXi 5, you can use ESXCLI.

To list the available keyboard layout use:

~ # esxcli system settings keyboard layout list
Layout
--------------
Belgian
Brazilian
Croatian
Czech
Danish
Estonian
Finnish
French
German
Greek
Icelandic
Italian
Japanese
Latin American
Norwegian
Polish
Portuguese
Russian
Slovenian
Spanish
Swedish
Swiss French
Swiss German
Turkish
US Default
US Dvorak
Ukrainian
United Kingdom

To set to Swiss German it would be:

~ # esxcli system settings keyboard layout set -l "Swiss German"

You also have the option to not persist to ensure it works by specifying the --no-persist flag (use --help for more details)

View solution in original post

0 Kudos
12 Replies
Mouhamad
Expert
Expert
Jump to solution

keymap=<keymap>

sg — Swiss German
sg-latin1 — Swiss German (latin1)

VCP-DCV, VCP-DT, VCAP-DCD, VSP, VTSP
0 Kudos
DamianN
Contributor
Contributor
Jump to solution

Hi Mouhamad

This command is not recognized by esxi-5:

>unknown command "keymap=sg"

any other suggestions

Thanks

0 Kudos
Mouhamad
Expert
Expert
Jump to solution

Hi,

Is it accepting other languages?

Regards,

VCP-DCV, VCP-DT, VCAP-DCD, VSP, VTSP
0 Kudos
DamianN
Contributor
Contributor
Jump to solution

Hi

as documented in VMware help the keyboard in esx5 ks.cfg will be set with the "keyboard" command.

>keyboard german

... as an example will work fine, but I have to use swiss german

>keyboard sg

.. does I have tryed now, ist not working: "unsupported keyboard type"

thanks

best regards

0 Kudos
Mouhamad
Expert
Expert
Jump to solution

Have you tried

keyboard  swiss-german

or

keyboard swissgerman

?

VCP-DCV, VCP-DT, VCAP-DCD, VSP, VTSP
0 Kudos
DamianN
Contributor
Contributor
Jump to solution

yes, all tested - none going

0 Kudos
Mouhamad
Expert
Expert
Jump to solution

Unfortunetly it looks like the language is not supported.

VCP-DCV, VCP-DT, VCAP-DCD, VSP, VTSP
0 Kudos
DamianN
Contributor
Contributor
Jump to solution

... not supported by unattend only?? after installing its possible to change

so no way?

Thanks

best regards

0 Kudos
peetz
Leadership
Leadership
Jump to solution

Please try

  keyboard de_CH-latin1

(Just a guess, because after installation there is a file named de_CH-latin1.map.gz in the directory /usr/share/keymaps ...

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
0 Kudos
DamianN
Contributor
Contributor
Jump to solution

Hi Andreas

no way, "not supported" again.

Is it possible to add a "first run" script to the deployment to set things like this?

thanks for vour help

Damian

0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

To configure the keyboard layout in ESXi 5, you can use ESXCLI.

To list the available keyboard layout use:

~ # esxcli system settings keyboard layout list
Layout
--------------
Belgian
Brazilian
Croatian
Czech
Danish
Estonian
Finnish
French
German
Greek
Icelandic
Italian
Japanese
Latin American
Norwegian
Polish
Portuguese
Russian
Slovenian
Spanish
Swedish
Swiss French
Swiss German
Turkish
US Default
US Dvorak
Ukrainian
United Kingdom

To set to Swiss German it would be:

~ # esxcli system settings keyboard layout set -l "Swiss German"

You also have the option to not persist to ensure it works by specifying the --no-persist flag (use --help for more details)

0 Kudos
DamianN
Contributor
Contributor
Jump to solution

Hi

This tip is great, you have to add the command @ firstboot. So its possible to modify all of the needed settings. Its also possible to set the hostname and explicit dns server which is also not possible within the standard section.

I added folowing to achieve the keyboard settings:

%firstboot --interpreter=busybox
esxcli system settings keyboard layout set -l "Swiss German"

thank you very much

Best regards

Damian

0 Kudos