Skip to content

Instantly share code, notes, and snippets.

View mierzejk's full-sized avatar

Krzysztof Mierzejewski mierzejk

  • Military University of Technology
  • Warsaw, Poland
  • 23:17 (UTC +01:00)
View GitHub Profile
@plembo
plembo / you-need-spice-vdagent.md
Last active October 22, 2024 20:17
You need spice-vdagent

You need spice-vdagent

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
@dant3
dant3 / nullable.kt
Created August 4, 2017 12:38
Check if kotlin generic is nullable type
inline fun <reified T> isNullable(): Boolean = null is T