Set Up Input Keyboard For Instance

Problem

Unable to set the Input Keyboard for an Instance.

Environment

  • Platform9 Managed OpenStack - All Versions

  • CentOS 7

  • Ubuntu 18

Procedure

For CentOS 7

  1. Check the Keymaps on the instance using the below command. In this case, it represents for Italian Keymap.

$ localectl list-keymaps | grep -i it
  1. Before setting keymap to Italian, verify the following.

$ localectl System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us
  1. Execute below two commands to set the Keymap.

$ localectl set-keymap it$ localectl set-x11-keymap it
  1. Once the above steps are completed, localectl command output should look like below.

$ localectl System Locale: LANG=en_US.UTF-8 VC Keymap: it X11 Layout: it

For Ubuntu 18

  1. Use the below command to change the keyboard layout to Italian.

$ sudo dpkg-reconfigure keyboard-configuration--> Keep the 'Keyboard Model' to "Generic 101-key PC"--> Change "Country of Origin For the keyboard" to Italian--> Select "Keyboard Layout" to Italian
  1. Once the above steps are completed, localectl command output should look like below.

$ localectlSystem Locale: LANG=en_US.UTF-8VC Keymap: itX11 Layout: it