noVNC with CT - keyboard problem

krzykacz

Member
Nov 14, 2018
8
0
6
44
I have problem with keyboard when using noVNC console with LXC containers. I'm not able to type any of specific to my locale characters. Function keys and arrows doesn't work also (for example in 'mc').

This behavior is specific to noVNC connected to CT only. With xterm.js everything works as expected. What is interesting noVNC console with QEMU type VMs works perfectly also.

With SPICE console connected to CT I am able to type my regional characters but function keys and arrows still doesn't work. I have to use ESC codes to emulate it.

On Datacenter options keyboard layout is set Polish(pl)
On Guest OS locale is set to pl_PL.UTF-8 (notice that with xterm.js console, ssh connection or lxc-attach - keyboard works OK). I have this problem with every CT. Problem exists on many browsers (chrome,firefox,edge).

Does anyone know how to fix this issue?

====
proxmox-ve: 5.2-2 (running kernel: 4.15.18-9-pve)
pve-manager: 5.2-11 (running version: 5.2-11/13c2da63)
pve-kernel-4.15: 5.2-12
pve-kernel-4.15.18-9-pve: 4.15.18-30
pve-kernel-4.15.17-1-pve: 4.15.17-9
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-1
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-41
libpve-guest-common-perl: 2.0-18
libpve-http-server-perl: 2.0-11
libpve-storage-perl: 5.0-30
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.0.2+pve1-3
lxcfs: 3.0.2-2
novnc-pve: 1.0.0-2
proxmox-widget-toolkit: 1.0-20
pve-cluster: 5.0-30
pve-container: 2.0-29
pve-docs: 5.2-10
pve-edk2-firmware: 1.20181023-1
pve-firewall: 3.0-14
pve-firmware: 2.0-6
pve-ha-manager: 2.0-5
pve-i18n: 1.0-6
pve-libspice-server1: 0.14.1-1
pve-qemu-kvm: 2.12.1-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-40
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.12-pve1~bpo1
 
Last edited:
you do not mention what locale you use, please add this information.
 
Sorry I forgot. I'm using pl_PL.UTF-8.

Maybe this will be some hint: After switching locales to default / en_US function keys and arrows still seems to doesn't work. For example in vi when I press down arrow letter B shows up. When I press up, letter A shows up. Same thing in for example Midnight Commander.
When I switch to xterm.js everything works perfectly.
 
Last edited:
you probably did not set the TERM variable (default is 'linux') try to set it to 'xterm', 'screen', 'vt220' or something similar (should work with any of them)
 
Thank you Dominic for suggestion. Setting TERM variable to screen/xterm helped with arrows and function keys problem. So one problem solved! :-)
At this moment still I have problem with characters specific to my locale (pl_PL.UTF8). They are displayable, but I can't type any of them. In this area TERM variable changed nothing. With xterm.js console everything is OK all the time.
Any ideas where to look?
 
is the client set to the same locale ?
 
is the client set to the same locale ?
Yes.

Node has locale set to: pl_PL.UTF-8 (via dpkg-reconfigure locales)
Datacenter->options->keyboard layout is set to: pl
CT Guest has pl_PL.UTF-8 locale
CT is from Debian 9 tempate
 

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!