French keyboard on Lubuntu VM not working

I’m new to this forum, so hello everyone.
I installed Lubuntu from a French .iso file in an Incus instance on Truenas Scale 25.04 RC1. Everything seems to be working fine. But I’m having a problem with the keyboard. The keyboard is set to French in Lubuntu, but it doesn’t work; the US keyboard remains.

My system specs

-Dell OptiPlex 3060
-Intel Core i5-8500
-32 GB memory
-NVMe SSD 256 GB
-PCIe 9211-8i 6Gbps HBA IT mode card
-200W power supply for the disks
-2 x 4TB Seagate Ironwolf drives Mirror
-1 x SSD 213.19 GiB
-USB 4TB drive for DATA pool backup
-TrueNAS Scale stable latest

Apps

Docker :
  -portainer
  -ddns-updater
  -docker-replay
  -nextcloud
  -wordpress
  -prosftpd
  -nginx-proxy-manager
  -syncthing
  -wg-easy
  -pi-hole
  -uptime-kuma
  -wud

Hello everyone,
I’ve enabled remote desktop (RDP) on the Ubuntu VM.
From Windows 11 and a RDP client, I can access the Lubuntu virtual machine with the French keyboard.
The French keyboard problem probably comes from VNC.

Hi!

It’s not clear how you run the GUI app in the container. What’s likely happening, is that the host captures the keyboard shortcut to switch the keyboard layout, therefore the keyboard layout changes on the host. Can you verify whether that’s the case?

TrueNAS uses VNC rather than SPICE for VM console access which isn’t really something we support in Incus.

I don’t know that if SPICE had been used the problem wouldn’t have been present, but it’s plausible.

In any case, it sounds like you went with running xrdp in the VM instead which should work fine.