6.17.2.2. SPICE를 사용하도록 가상 머신의 Tablet 및 mouse 구성

/etc/X11/xorg.conf 파일을 편집하여 가상 머신의 타블릿 장치에 SPICE를 활성화합니다.

SPICE를 사용하도록 가상 머신의 Tablet 및 mouse 구성

  1. 게스트에서 태블릿 장치를 사용할 수 있는지 확인합니다.

    # /sbin/lsusb -v | grep 'QEMU USB Tablet'
    If there is no output from the command, do not continue configuring the tablet.
  2. /etc/X11/xorg.conf 백업:

    # cp /etc/X11/xorg.conf /etc/X11/xorg.conf.$$.backup
  3. /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
  4. 로그아웃한 후 가상 머신에 다시 로그인하여 X-Windows를 다시 시작합니다.