Libvirt、Qemu VM 键盘问题

Libvirt、Qemu VM 键盘问题

我正在构建一个由 Linux 5.9.18 和 Busybox 组成的系统。

我能够打开外壳。但是,我的键盘不能用。

我将 libvirt 与 Qemu 一起使用。

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>

键盘似乎抓住了虚拟机窗口,但当我按任何键时它不会输入任何内容。不确定问题是什么。任何帮助将不胜感激!

谢谢你!

相关内容