Wrong console keyboard layout applied

jehutyy

New Member
Apr 1, 2020
3
0
1
44
hi,

I have an issue concerning console keyboard layout. I've configured datacenter/option to use a 'fr' keyboard layout but it appears, when in vm console, that the keyboard layout resembles something like 'fr-oss'.

It seems that the console doesn't reflect the actual configuration.


--
jehutyy
 
Hi!

Do you mean the noVNC window? If yes, the window that you can open with the button on the top-right or the console that is available in the content view in the center?
 
To know exactly which layouts correspond to which GUI entries, please try the following two commands
Code:
cat /usr/share/pve-manager/js/pvemanagerlib.js | grep French
cat /usr/share/perl5/PVE/Tools.pm | grep fr-be -C3

Setting the keyboard layout specifically for one VM (in this example with ID 100) might be helpful, too. To do so, use
Code:
qm set 100 --keyboard fr-ca

The kvm process should get the layout as parameter which you can verify with
Code:
qm showcmd 100 | egrep "\-k "

I'll have to do some research about french keyboard layouts. Looking at the outputs, do you notice something strange?
 
  • Like
Reactions: masgo
Code:
root@pve:~# cat /usr/share/pve-manager/js/pvemanagerlib.js | grep French
        fr: 'French',
    'fr-be': 'French (Belgium)',
    'fr-ca': 'French (Canada)',
    'fr-ch': 'French (Swiss)',
root@pve:~# cat /usr/share/perl5/PVE/Tools.pm | grep fr-be -C3
    'fi'     => ['Finnish', 'fi', 'qwerty/fi-latin1.kmap.gz', 'fi', 'nodeadkeys'],
    #'fo'     => ['Faroe Islands', 'fo', ???, 'fo', 'nodeadkeys'],
    'fr'     => ['French', 'fr', 'azerty/fr-latin1.kmap.gz', 'fr', 'nodeadkeys'],
    'fr-be'  => ['Belgium-French', 'fr-be', 'azerty/be2-latin1.kmap.gz', 'be', 'nodeadkeys'],
    'fr-ca'  => ['Canada-French', 'fr-ca', 'qwerty/cf.kmap.gz', 'ca', 'fr-legacy'],
    'fr-ch'  => ['Swiss-French', 'fr-ch', 'qwertz/fr_CH-latin1.kmap.gz', 'ch', 'fr_nodeadkeys'],
    #'hr'     => ['Croatia', 'hr', 'qwertz/croat.kmap.gz', 'hr', ??], # latin2?
root@pve:~#

qm set command doesn't seems to apply correctly (i.e when in vm wrong layout is active).
qm showcmd shows that en-us is applied.
 
qm set should write into the the VM configuration. This should later be passed to the KVM/Qemu command.

Does qm set report something like update VM 100: -keyboard fr?
What is the output of
Code:
qm config VMID
after you try to set the keyboard layout using qm set?
 
  • Like
Reactions: Miguelito
qm set should write into the the VM configuration. This should later be passed to the KVM/Qemu command.

Does qm set report something like update VM 100: -keyboard fr?
What is the output of
Code:
qm config VMID
after you try to set the keyboard layout using qm set?
Totally solved it for me, but without the colon:

Code:
qm set 100 -keyboard da

This gave me danish keyboard on the virtual machine with id 100
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!