A.14. Missing Characters on Guest Console with Japanese Keyboard

download PDF
On a Red Hat Enterprise Linux 7 host, connecting a Japanese keyboard locally to a machine may result in typed characters such as the underscore (the _ character) not being displayed correctly in guest consoles. This occurs because the required keymap is not set correctly by default.
With Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux  7 guests, there is usually no error message produced when pressing the associated key. However, Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5 guests may display an error similar to the following:
atkdb.c: Unknown key pressed (translated set 2, code 0x0 on isa0060/serio0).
atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.
To fix this issue in virt-manager, perform the following steps:
  • Open the affected guest in virt-manager.
  • Click View Details.
  • Select Display VNC in the list.
  • Change Auto to ja in the Keymap pull-down menu.
  • Click the Apply button.
Alternatively, to fix this issue using the virsh edit command on the target guest:
  • Run virsh edit guestname
  • Add the following attribute to the <graphics> tag: keymap='ja'. For example:
     <graphics type='vnc' port='-1' autoport='yes' keymap='ja'/>
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.