はじめに
VMWare上のKaliにマウスカーソルが表示されなくなり、こまった。
環境
動作環境は以下の通り。
Kali
$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2025.4"
VERSION="2025.4"
VERSION_CODENAME=kali-rolling
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"
VMWare
VMware(R) Workstation 17 Pro
17.6.2 build-24409262
解決方法
以下サイトの通り、xorg.confを作成して再起動したら治った。
$ cd /etc/X11
$ sudo nano xorg.conf
$ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
Option "HWcursor" "off" # []
#Option "Xinerama" # []
#Option "StaticXinerama" #
#Option "GuiLayout" #
#Option "AddDefaultMode" # []
#Option "RenderAccel" # []
#Option "DRI" # []
#Option "DirectPresents" # []
#Option "HWPresents" # []
#Option "RenderCheck" # []
Identifier "Card0"
Driver "vmware"
BusID "PCI:0:15:0"
EndSection
$ sudo reboot