Libvirt、Qemu VMキーボードの問題

Libvirt、Qemu VMキーボードの問題

私はLinux 5.9.18とBusyboxで構成されたシステムを構築しています。

シェルを開くことができます。ところで、キーボードは機能しません。

Qemuでlibvirtを使用します。

My kernel config is configured as the following (allnoconfig, and then the settings below):
[*] 64-bit kernel
-> General setup
  -> Configure standard kernel features
[*] Enable support for printk
-> General setup
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
-> Executable file formats / Emulations
[*] Kernel support for ELF binaries
[*] Kernel support for scripts starting with #!
-> Device Drivers
  -> Character devices
[*] Enable TTY
-> Device Drivers
  -> Character devices
    -> Serial drivers
[*] 8250/16550 and compatible serial support
[*]   Console on 8250/16550 and compatible serial port
-> File systems
  -> Pseudo filesystems
[*] /proc file system support
[*] sysfs file system support
-> Kernel hacking                                                     
    -> Compile-time checks and compiler options 
[*] Debug filesystem
-> Kernel hacking   
[*] Early printk

VMのXMLファイルを次のように編集しました。

<device>
...
    <input type='evdev'>
      <source dev='/dev/input/by-id/usb-Dell_Dell_USB_Keyboard-event-kbd' grab='all' repeat='on'/>
    </input>
...
</device>

キーボードは仮想マシンウィンドウをキャッチしているようですが、任意のキーを押しても何も入力されません。何が問題なのかよく分からない。どんな助けでも大変感謝します!

ありがとうございます!

ベストアンサー1

おすすめ記事