在libvirtxml中,可以使用以下方式设置Domain结构体的键盘布局:

  1. 使用keyboard标签设置键盘布局,例如:
<devices>
  <input type='keyboard' bus='usb'>
    <layout>us</layout>
  </input>
</devices>
  1. 使用input标签设置键盘布局,例如:
<devices>
  <input type='keyboard' bus='usb'>
    <inputtype type='keyboard'>
      <layout>us</layout>
    </inputtype>
  </input>
</devices>

其中,layout标签用于设置键盘布局,可以使用ISO 639-1语言代码或XKB键盘布局名称。例如,us表示美式键盘布局,fr表示法式键盘布局。

libvirtxml中的Domain结构体如何设置键盘布局

原文地址: http://www.cveoy.top/t/topic/htNg 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录