Skip to content

Instantly share code, notes, and snippets.

@brianwoo
Last active January 16, 2026 19:37
Show Gist options
  • Select an option

  • Save brianwoo/557fbf8ac57af66490e466e3b7f3d95c to your computer and use it in GitHub Desktop.

Select an option

Save brianwoo/557fbf8ac57af66490e466e3b7f3d95c to your computer and use it in GitHub Desktop.
KVM Guest Tools

Debian or Kali Linux installed to as KVM (libvirtd) guests do not automatically have qemu-guest-agent or spice-vdagent installed. This will prevent seamless movement of the mouse cursor between the guest and host desktop in Virtual Machine Manager (requiring the use of a Ctrl-Alt to release the cursor from the guest window).

To cure this, install both qemu-guest-agent and spice-vdagent on each guest and reboot (the guests).

sudo apt install qemu-guest-agent
sudo apt install spice-vdagent
sudo apt install xserver-xorg-video-qxl

For Windows https://raphtlw.medium.com/how-to-set-up-a-kvm-qemu-windows-10-vm-ca1789411760

Virtio Drivers: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso

Guest tool: https://www.spice-space.org/download.html

@kchr
Copy link

kchr commented Jan 16, 2026

Currently running Kali GNU/Linux Rolling 2025.4 and it has all three packages installed in the QEMU appliance image.

However, if you install from the generic ISO image it's understandable that these packages are not installed since you could be running it on bare metal or any other hypervisor that would require other agents (VirtualBox, VMWare etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment