HPE Morpheus VM Essentials
1847827 Members
6755 Online
104021 Solutions
New Discussion

Console Keyboard Layout Settings

 
shiba9967
Occasional Advisor

Console Keyboard Layout Settings

The terminal used to access the HVM appliance (WebUI) is equipped with a JIS keyboard.
To operate the VM using a JIS keyboard in the console, we have applied the following settings to both the WebUI and the VM:

VM
OS: Ubuntu 24.04
/etc/default/keyboard

XKBMODEL="pc105"
XKBLAYOUT="jp"
XKBVARIANT=""
XKBOPTIONS=""

WebUI
 Navigate to: Compute > Host > [Target VM]
 Under Advanced Options, select Keyboard Layout: Japanese.

Despite these settings, the console does not use the Japanese keyboard layout.
For example, pressing Shift + 2 does not produce ", but instead outputs *.

The workaround was to explicitly specify the keymap in the VM configuration using virsh edit as shown below:

<graphics type='vnc' port='41013' autoport='no' listen='127.0.0.1' keymap='ja'></graphics>

Is this behavior and solution correct?

I apologize if there are any inappropriate expressions due to machine translation

1 REPLY 1
henry78creel
New Member

Re: Console Keyboard Layout Settings

The terminal used to access the HVM appliance (WebUI) is equipped with a JIS keyboard. To operate the VM using a JIS keyboard in the console, we applied Japanese keyboard settings on both the WebUI and the VM. The VM is running Ubuntu 24.04, and /etc/default/keyboard is configured with XKBMODEL="pc105" and XKBLAYOUT="jp". On the WebUI, we navigated to Compute > Host > [Target VM] and selected Japanese under Advanced Options > Keyboard Layout. However, despite these settings, the console does not use the Japanese  e-zpassny keyboard layout; for example, pressing Shift + 2 outputs * instead of ". As a workaround, we explicitly specified the keymap in the VM configuration using virsh edit by adding keymap='ja' to the <graphics type='vnc'> section. Is this behavior expected, and is this the correct solution? I apologize if there are any inappropriate expressions.