Univention Bugzilla – Bug 37551
VNC uses English keyboard layout by default
Last modified: 2015-04-16 10:51:53 CEST
Setting up a new VM always uses the English-American Layout by default. This is caused by the Debian-installer no longer setting locale/keymap, which is used by 44univention-virtual-machine-manager-daemon.inst: $ grep -n -i -A2 -B2 locale.keymap 44univention-virtual-machine-manager-daemon.inst 75- 76-# determin keyboard layout 77:while [ -n "$locale_keymap" ] 78-do 79- for virttech in kvm qemu 80- do 81: if [ -e "/usr/share/${virttech}/keymaps/${locale_keymap}" ] 82- then 83- break 2 84- fi 85- done 86: if [[ "${locale_keymap}" = *[^a-z][a-z]* ]] 87- then 88: locale_keymap="${locale_keymap%[^a-z][a-z]*}" 89- else 90: locale_keymap= 91- fi 92-done 93:: ${locale_keymap:=en-us} 94- 95-create_hvm_profile() { -- 122- --set rtcoffset="$rtcoffset" \ 123- --set vnc=1 \ 124: --set kblayout="${locale_keymap}" \ 125- --set pvdisk="$pvdisk" \ 126- --set pvcdrom="$pvcdrom" \ Ticket #2014112821000255
Created attachment 6744 [details] use locale_default for locale_keymap By using locale_default with lowercase and replaced underscore by hyphen, the "determin keyboard layout" part will run until an available keymap is found: de_DE.UTF-8:UTF-8 --> de fr_BE.UTF-8 --> fr-be foo --> en-us
This was also noticed during a technical training last week and a UCS@school workshop this week. Although I mentioned to check the keyboard layout, the majority of attendees overlooked the setting (or ignored my advice) and ended up with a US Layout when accessing their VMs via VNC.
Package: univention-virtual-machine-manager-daemon Version: 4.0.24-9.600.201504131629 Branch: ucs_4.0-0 Scope: errata4.0-1 r59738 Fix default keyboard layout of profiles in join script. r59739 YAML
OK: r59738 OK: r59739 OK: aptitude install '?source-package(univention-virtual-machine-manager-daemon)~i' OK: ucr get locale/default # en_US.UTF-8:UTF-8 udm uvmm/profile list | grep kblayout # en-us OK: ucr get locale/default # de_DE.UTF-8:UTF-8 udm uvmm/profile list | grep kblayout # de-de OK: ucr get locale/default # zh_CN.UTF-8:UTF-8 udm uvmm/profile list | grep kblayout # en-us OK: 2015-03-29-univention-virtual-machine-manager-daemon.yaml OK: errata-announce -V 2015-03-29-univention-virtual-machine-manager-daemon.yaml
<http://errata.univention.de/ucs/4.0/147.html>