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?

2 Answers 2


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



  • I don't have this setup anymore but I will look into this when I do again.
    – Brady Dean
    May 23, 2019 at 13:42

A KVM (Keyboard Video Mouse) switch with a separate usb cable to a port to be shared to the VM is the best way to go here. There is really no way to do what you are saying when using a headless server with PCI passthrough for the video. Bummer, huh.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.