In a VM of the KVM host of "ubuntu 18.04 LTS", 'Muhenkan' key has become ineffective(it doesn't fire event).
* current status
I have built KVM host of "ubuntu 18.04 LTS" to execute the guest of "ubuntu desktop 18.04 LTS" or "ubuntu desktop 16.04 LTS".
But in every guest "Muhenkan" key has become ineffective and it doesn't fire event.
'Muhenkan' key has the keycode 102 and the keysym 0xfff22(Muhenkan).
for example, 'xev' results for 'Muhenkan' key is the below.
>KeyRelease event, serial 37, synthetic NO, window 0x2400001,
> root 0x15c, subw 0x0, time 68172883, (876,515), root:(943,572),
> state 0x0, keycode 102 (keysym 0xff22, Muhenkan), same_screen YES,
> XLookupString gives 0 bytes:
> XFilterEvent returns: False
* circumstances & background
I have used "ubuntu 16.04 LTS" as KVM host. But the hard disk of PC crashed.
Therefore I installed "ubuntu 18.04 LTS" to get a KVM environment again. The guest definition files (.xml) and VM entity files (.qcow2), I restored them from the backups.
After execution of some guests I have noticed that 'Muhenkan' key became ineffective in the VM and the actions corresponding to this key was not performed.
* verification
Now this KVM environment has the new version 'kvm/qemu' for "ubuntu 18.04 LTS". But guest difinition files are described in the old version for "ubuntu 16.04 LTS". There is the probability of discordance between them.
I have built the VM guests like as the below by using 'virt-manager'
-The new guest that is re-configed using the existing VM entity files of "ubuntu 16.04 LTS" as it is.
-The new guest that is installed initially from "ubuntu 18.04 LTS" DVD media.
I have verified in various way to get the detail information.
1) 'xev' tool & 'evtest' tool
In the host, 'Muhenkan' key is effective and does fire event. In the Both case of 'xev' and 'evtest'(*1) the key is effective.
In the guest, 'Muhenkan' key is ineffective and doesn't fire event. In the Both case of 'xev' and 'evtest'(*1) the key is ineffective.
*1: the target of 'evtest' is the input device "AT Translated Set 2 keyboard".
(I guess that this device corresponds to "Virtual Input Device: Generic PS/2 Keyboard" in 'virt-manager'.)
By 'virt-manager' corresponding to "ubuntu 18.04 LTS", we can specify the devices named "Generic USB Keyboard" and "Virtio Keyboard". I guess that each of these devices coresponds to "QEMU QEMU USB Keyboard" and "QEMU QEMU virtio Keyboard" in guests.
After I specifed these devices, in the verification by using 'evtest' for them, the 'Muhenkan' key didn't fire event and it was still ineffective. Addtionally the other keys, 'Henkan' and 'KatakanaHiragana', 'ZenkakuHankaku' were ineffective also.
* consideration & comment
-In the host, 'Muhenkan' key is effective and does fire event. This suggests that the host has no problem and no cause.
-Does it suggests that there is some fault in the route to deliver events between the host and the guest?
-Does it suggests that there is a problem with the part to virtualize keyboard of 'qemu'?
-In non-English speaking countries, it is necessary that 'Muhenkan' key perfomrs well for kana-kanji conversion.
-In the case using Roman inputting not but Kana inputting to do kana-kanji conversion, it is especially necessary.
* environments
1) KVM host
-- linux --
Linux xxxxxx 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-- libvirt & qeumu --
Compiled against library: libvirt 4.0.0
Using library: libvirt 4.0.0
Using API: QEMU 4.0.0
Running hypervisor: QEMU 2.11.1
2) guest
Linux xxxxx 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
* requested items
Of course, I would like to know "How could I resolve? Are there workrounds". But I have other items like the following.
-What should I do in further investigation? What should I survey?
-Is there a probability that a cause exits in the configuration of xkb(X KeyBoard extension)?
-Does the using IME cause this trouble ? (I use 'ibus-anthy' in Kana-Kanji conversion.)
-Is there a probability that bug causes this trouble?
I would appreciate your guidance.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu qemu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: