0

I've created a CentOS 7 (KDE) VM on a Centos 7 KVM server without X or GUI, and there's only one guest on this server. I see two cursors in the virt-manager VM console: the host cursor and the guest cursor, and the moves of the guest cursor are restricted by the host cursor because it can't leave the screen boundaries. Kind of asynchronized cursors. The useful "EvTouch USB Graphics Tablet" trick fixed this issue for any VM hosted on other servers but not on this one.

Anyway my tests makes more questions rise than giving a way :

  1. I'm the only guy here with a Linux workstation in addition to my Windows one. So if I connect directly the virt-manager of my Linux Workstation to the KVM server with ssh key, and if I open the VM console, there's only one mouse cursor.
  2. On Windows, if I try to connect directly with ssh to the KVM server with MobaXterm, then to start virt-manager from there, I have two unusable mouse cursors.
  3. Best of all, if I connect my Windows PC to my Linux workstation with ssh and start its virt-manager, I also get two mouse cursors (seems really illogical to me as it worked fine when physically in front of the Linux workstation)

I even can't determine if the issue is server's side, guest's side or even Windows PC's side. Knowing that Windows PCs here have no problem with other CentOS VMs on similar KVM servers (similar = same OS version, virt-manager version and config).

Could you please help me to search in the right direction?

Fenyx
  • 1
  • 3
  • Have you installed Guest Extensions / Tools in the KVM Guest? You normally need to do this in (say) VMware Workstation for the mouse to work correctly (guest or host but not both). https://askubuntu.com/questions/858649/how-can-i-copypaste-from-the-host-to-a-kvm-guest – John Aug 11 '21 at 18:24
  • Thanks @John , but it's a KVM virtual machine as described in title, not a VMWare VM. – Fenyx Aug 11 '21 at 21:24
  • I know it is not VMware but the article should be helpful. Ask KVM support about "tools" for it. – John Aug 11 '21 at 21:26
  • You're right, spice-vdagent exists in CentOS repository too. The weird thing is that we've never needed such a guest tool to fix it in tens of other CentOS VMs. But of course I will try. Thanks for your help. Will tell you how it works tomorrow (it's late night here). Will also check virt-manager versions, and also screen resolution as seen [here](https://www.linuxquestions.org/questions/slackware-14/mouse-cursor-in-kvm-guest-4175575243/). – Fenyx Aug 11 '21 at 21:50
  • Hi @John, sorry but devs had some issues to resolve with their app and needed to use this machine today in TTY. Will let you know as soon as I can test. – Fenyx Aug 12 '21 at 17:14
  • Finally, it did the trick : installing spice-vdagent on guest VM and in the VM config on KVM server I set "spice vmc" and "unix" (org.qemu.guest-agent.0) modules to "connected" through virsh edit commands. Thanks a lot for your help @John. Could you please write your advice as an answer so I could vote for it as a solution? – Fenyx Aug 17 '21 at 13:06

0 Answers0