Cannot Change VM Keyboard Layout in 4.1

Try asking ChatGPT:

sudo dnf install xkeyboard-config

You could run that in the TemplateVM or, ideally, append the appropriate lines to ~/fs/srv/salt/keyboard.sls if you followed the steps in my linked post exactly:

my-pkgs:
  pkg.installed:
    - pkgs:
      - xkeyboard-config

I imagine getting that installed will solve your issue.

Take everything ChatGPT says with a grain of salt (it can produce very convincing but totally wrong answers), but it is good at coming up with ideas and even exact code to solve your issues.