6.17.2.2. 配置虚拟机的表和鼠标以使用 SPICE
编辑 /etc/X11/xorg.conf 文件,为您的虚拟机的平板设备启用 SPICE。
配置虚拟机的表和鼠标以使用 SPICE
验证 tablet 设备是否在您的客户机中可用:
# /sbin/lsusb -v | grep 'QEMU USB Tablet'If there is no output from the command, do not continue configuring the tablet.备份
/etc/X11/xorg.conf:# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.$$.backup对
/etc/X11/xorg.conf进行以下更改:Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Tablet" "SendCoreEvents" InputDevice "Mouse" "CorePointer" EndSection Section "InputDevice" Identifier "Mouse" Driver "void" #Option "Device" "/dev/input/mice" #Option "Emulate3Buttons" "yes" EndSection Section "InputDevice" Identifier "Tablet" Driver "evdev" Option "Device" "/dev/input/event2" Option "CorePointer" "true" EndSection- 注销,再重新登录虚拟机以重新启动 X-Windows。