---
title: Share an input device with a guest using evdev
description:
published: true
date: 2022-08-25T20:26:02.610Z
tags:
editor: markdown
dateCreated: 2022-08-13T00:26:02.801Z
---
# Share an input device
> *Input grabbing on Wayland doesn't currently work as expected. Destkop environments based on the X session manager may work better in this regard*
{.is-warning}
There are multiple ways to share an input device with a virtual machine.
## Event device
Event device or simply `evdev` is a generic input event interface that is part of the Linux kernel.
The following is an XML snippet example for sharing a mouse and a keyboard.
```