How to send mouse and keyboard to Virt-Manager guest

kvmqemuvirt-manager

I have a Windows guest in virt-manager running headless (no spice server) because video is output through a GPU (pci passthrough). But my question now is how to send the keyboard and mouse to the guest. I would like to seamlessly share the mouse and keyboard with the guest if possible like how it works with the spice server viewer. I've also heard of KVM switches. Would one of those work better for this setup?

Best Answer

QEMU’s evdev passthrough support allows a user to redirect evdev events to a guest. These events can include mouse movements and key presses. By hitting both Ctrl keys at the same time, QEMU can toggle the input recipient. QEMU’s evdev passthrough also features almost no latency, making it perfect for gaming

Checkout:

https://passthroughpo.st/using-evdev-passthrough-seamless-vm-input/

Related Question