KVMのvncでマウスポインタを合わせる

KVMで動かしているOSをvncを通してマウスで操作していると、二つのポインタが表示されるが、それぞれ動く速度が違って操作が面倒です。
そこで、こちらのマウス操作を仮想環境側ではタブレットの操作として認識してもらうようにすると快適になります。
以下はCentOS5.5での設定。

  • kvmの起動オプションに -usbdevice tablet を加えて起動
    • Proxmox VEのKVMはデフォルトでついているようです
  • /etc/X11/xorg.confを以下のような感じにする
Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        ModelName    "LCD Panel 1024x768"
 ### Comment all HorizSync and VertSync values to use DDC:
        HorizSync    31.5 - 48.0
        VertRefresh  56.0 - 65.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "cirrus"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "evdev"
        Option      "Device" "/dev/input/event2"
EndSection

/dev/input/event2 の値は、/proc/bus/input/devices を参照して設定してください。