#StackBounty: #centos #keyboard-layout #vmware-workstation VM boots with wrong keyboard layout

Bounty: 50

I use VMware Workstation Player to run my Linux VMs. Starting from the boot and during GRUB menu, LUKS password entry, and initial user login screen, the keyboard appears to be set to US. This is source of errors when entering passwords as I have a French Swiss keyboard (QWERTZ). The system uses the correct keyboard layout (CH-FR) only after the user has logged in.

How can I set the correct keyboard locale so that it is applied since the boot?

This is the output of localectl on a CentOS 8 Stream VM:

System Locale: LANG=en_US.UTF-8
    VC Keymap: ch-fr
   X11 Layout: us
    X11 Model: pc105+inet
  X11 Options: terminate:ctrl_alt_bksp

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.