<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Evdev Passthrough Explained &#8212; Cheap, Seamless VM Input	</title>
	<atom:link href="/using-evdev-passthrough-seamless-vm-input/feed/" rel="self" type="application/rss+xml" />
	<link>/using-evdev-passthrough-seamless-vm-input/</link>
	<description>Your baremetal source for virtual news</description>
	<lastBuildDate>Mon, 29 Aug 2022 15:40:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>
		By: txirrindulari		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-159</link>

		<dc:creator><![CDATA[txirrindulari]]></dc:creator>
		<pubDate>Wed, 17 Feb 2021 01:25:14 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-159</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;/using-evdev-passthrough-seamless-vm-input/#comment-107&quot;&gt;Vortex&lt;/a&gt;.

make sure you uncomment the acl lines in qemu.conf.
Delete any # in this part.

If it still does not work, try to add /dev/input/* rw, in /etc/apparmor.d/abstractions/libvirt-qemu]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="/using-evdev-passthrough-seamless-vm-input/#comment-107">Vortex</a>.</p>
<p>make sure you uncomment the acl lines in qemu.conf.<br />
Delete any # in this part.</p>
<p>If it still does not work, try to add /dev/input/* rw, in /etc/apparmor.d/abstractions/libvirt-qemu</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Roburt		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-135</link>

		<dc:creator><![CDATA[Roburt]]></dc:creator>
		<pubDate>Tue, 13 Oct 2020 07:39:17 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-135</guid>

					<description><![CDATA[I could only get round the permission issues by setting &quot;user = 
myusername group=kvm&quot; in qemu config - so I can boot my vm, however 
pressing both ctrl keys does absolutely nothing so something still isn&#039;t
 right. Why can&#039;t anything just work?]]></description>
			<content:encoded><![CDATA[<p>I could only get round the permission issues by setting &#8220;user =<br />
myusername group=kvm&#8221; in qemu config &#8211; so I can boot my vm, however<br />
pressing both ctrl keys does absolutely nothing so something still isn&#8217;t<br />
 right. Why can&#8217;t anything just work?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tarick Karkache		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-130</link>

		<dc:creator><![CDATA[Tarick Karkache]]></dc:creator>
		<pubDate>Tue, 01 Sep 2020 20:19:47 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-130</guid>

					<description><![CDATA[Thank you good sir for this article!   Huge help!  I had to make changes to the apparmor config and ensure that my devices had the word event in them and everything went from there!]]></description>
			<content:encoded><![CDATA[<p>Thank you good sir for this article!   Huge help!  I had to make changes to the apparmor config and ensure that my devices had the word event in them and everything went from there!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oli		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-129</link>

		<dc:creator><![CDATA[Oli]]></dc:creator>
		<pubDate>Sat, 22 Aug 2020 17:25:11 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-129</guid>

					<description><![CDATA[I seem to be getting a permissions issue regardless of what I do! 


libvirt.libvirtError: internal error: process exited while connecting to monitor: 2020-08-22T17:51:47.619425Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Corsair: Could not open &#039;/dev/input/by-id/usb-Corsair&#039;: Permission denied




I&#039;ve tried everything I can find and it always throws the same permission issue. Tried qemu.conf with user &#038; group as root, tried with clear_emulator_capablities set, tried by-id, by-path and with events. Also had a go with /etc/apparmor.d/abstractions/libvirt-qemu giving rw on /dev/input/, disabling apparmor,  with custom udev rules set &quot;SUBSYSTEM==&quot;usb&quot;, ATTRS{idVendor}==&quot;1ea7&quot;, ATTRS{idProduct}==&quot;0907&quot;, MODE=&quot;0666&quot;&quot;


Could there be something else messing with permissions / preventing it from working?]]></description>
			<content:encoded><![CDATA[<p>I seem to be getting a permissions issue regardless of what I do! </p>
<p>libvirt.libvirtError: internal error: process exited while connecting to monitor: 2020-08-22T17:51:47.619425Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Corsair: Could not open &#8216;/dev/input/by-id/usb-Corsair&#8217;: Permission denied</p>
<p>I&#8217;ve tried everything I can find and it always throws the same permission issue. Tried qemu.conf with user &amp; group as root, tried with clear_emulator_capablities set, tried by-id, by-path and with events. Also had a go with /etc/apparmor.d/abstractions/libvirt-qemu giving rw on /dev/input/, disabling apparmor,  with custom udev rules set &#8220;SUBSYSTEM==&#8221;usb&#8221;, ATTRS{idVendor}==&#8221;1ea7&#8243;, ATTRS{idProduct}==&#8221;0907&#8243;, MODE=&#8221;0666&#8243;&#8221;</p>
<p>Could there be something else messing with permissions / preventing it from working?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ivan Dimitrov		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-112</link>

		<dc:creator><![CDATA[Ivan Dimitrov]]></dc:creator>
		<pubDate>Sun, 31 May 2020 14:29:18 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-112</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;/using-evdev-passthrough-seamless-vm-input/#comment-107&quot;&gt;Vortex&lt;/a&gt;.

In a Redit thread I found a workaround for the permission issue - instead of passing the events by &quot;by-id&quot; pass &quot;/dev/input/event3&quot;. 
This is less flexible and it will break if you move your mouse and KB but I have no will left to figure out the permissions.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="/using-evdev-passthrough-seamless-vm-input/#comment-107">Vortex</a>.</p>
<p>In a Redit thread I found a workaround for the permission issue &#8211; instead of passing the events by &#8220;by-id&#8221; pass &#8220;/dev/input/event3&#8221;.<br />
This is less flexible and it will break if you move your mouse and KB but I have no will left to figure out the permissions.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Max		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-111</link>

		<dc:creator><![CDATA[Max]]></dc:creator>
		<pubDate>Wed, 20 May 2020 17:00:48 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-111</guid>

					<description><![CDATA[I&#039;m confused, does this work with a macOS guest? Do you need VirtIO drivers for the guest for the passthrough to function?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m confused, does this work with a macOS guest? Do you need VirtIO drivers for the guest for the passthrough to function?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastiaan Meijer		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-108</link>

		<dc:creator><![CDATA[Sebastiaan Meijer]]></dc:creator>
		<pubDate>Sat, 16 May 2020 09:52:51 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-108</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;/using-evdev-passthrough-seamless-vm-input/#comment-107&quot;&gt;Vortex&lt;/a&gt;.

You&#039;re probably running into an Apparmor (if you&#039;re on a Debian/Ubuntu based distro) or SELinux (if you&#039;re on a CentOS/Fedora based distro) problem.  
In case of AppArmor, &lt;code&gt;/etc/apparmor.d/abstractions/libvirt-qemu&lt;/code&gt; contains the file to add additional permissions such as /dev/input and /dev/shm (needed for LookingGlass) which is parsed on VM startup. You&#039;ll want to add the line &lt;code&gt;/dev/input/* rw,&lt;/code&gt; and then restart AppArmor (or reboot).  

In case of SELinux, you can refer to &lt;a href=&quot;https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux-fixing_problems-allowing_access_audit2allow&quot;&gt;this document&lt;/a&gt; on how to whitelist your input devices.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="/using-evdev-passthrough-seamless-vm-input/#comment-107">Vortex</a>.</p>
<p>You&#8217;re probably running into an Apparmor (if you&#8217;re on a Debian/Ubuntu based distro) or SELinux (if you&#8217;re on a CentOS/Fedora based distro) problem.<br />
In case of AppArmor, <code>/etc/apparmor.d/abstractions/libvirt-qemu</code> contains the file to add additional permissions such as /dev/input and /dev/shm (needed for LookingGlass) which is parsed on VM startup. You&#8217;ll want to add the line <code>/dev/input/* rw,</code> and then restart AppArmor (or reboot).  </p>
<p>In case of SELinux, you can refer to <a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux-fixing_problems-allowing_access_audit2allow">this document</a> on how to whitelist your input devices.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vortex		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-107</link>

		<dc:creator><![CDATA[Vortex]]></dc:creator>
		<pubDate>Sat, 16 May 2020 09:40:46 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-107</guid>

					<description><![CDATA[I have an issue with evdev and it&#039;s been bugging me for days. When I put the correct /dev/by-id/...... id in the xml. When i try to launch the vm on virt-manager it says this :

Error starting domain: internal error: process exited while connecting to monitor: 2020-05-16T13:26:14.566504Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse: Could not open &#039;/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse&#039;: No such file or directory

Traceback (most recent call last):
  File &quot;/usr/share/virt-manager/virtManager/asyncjob.py&quot;, line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File &quot;/usr/share/virt-manager/virtManager/asyncjob.py&quot;, line 111, in tmpcb
    callback(*args, **kwargs)
  File &quot;/usr/share/virt-manager/virtManager/object/libvirtobject.py&quot;, line 66, in newfn
    ret = fn(self, *args, **kwargs)
  File &quot;/usr/share/virt-manager/virtManager/object/domain.py&quot;, line 1279, in startup
    self._backend.create()
  File &quot;/usr/lib/python3/dist-packages/libvirt.py&quot;, line 1234, in create
    if ret == -1: raise libvirtError (&#039;virDomainCreate() failed&#039;, dom=self)
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2020-05-16T13:26:14.566504Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse: Could not open &#039;/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse&#039;: No such file or directory

It constantly says no such file or directory and, before you ask i have added my user to the input and kvm group. I&#039;ve tried removing all sandboxing as the guide suggested and i&#039;ve also added my user to qemu.conf along with the id&#039;s of the mouse and keyboard. I looked on reddit and I tried the things that they suggested there and to no avail. Can someone please suggest something to fix this?? I tried reddit and they suggested what i already tried.

I also checked /dev/input/by-id/ multiple times and this is the correct id, it just doesn&#039;t seem to work?]]></description>
			<content:encoded><![CDATA[<p>I have an issue with evdev and it&#8217;s been bugging me for days. When I put the correct /dev/by-id/&#8230;&#8230; id in the xml. When i try to launch the vm on virt-manager it says this :</p>
<p>Error starting domain: internal error: process exited while connecting to monitor: 2020-05-16T13:26:14.566504Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse: Could not open &#8216;/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse&#8217;: No such file or directory</p>
<p>Traceback (most recent call last):<br />
  File &#8220;/usr/share/virt-manager/virtManager/asyncjob.py&#8221;, line 75, in cb_wrapper<br />
    callback(asyncjob, *args, **kwargs)<br />
  File &#8220;/usr/share/virt-manager/virtManager/asyncjob.py&#8221;, line 111, in tmpcb<br />
    callback(*args, **kwargs)<br />
  File &#8220;/usr/share/virt-manager/virtManager/object/libvirtobject.py&#8221;, line 66, in newfn<br />
    ret = fn(self, *args, **kwargs)<br />
  File &#8220;/usr/share/virt-manager/virtManager/object/domain.py&#8221;, line 1279, in startup<br />
    self._backend.create()<br />
  File &#8220;/usr/lib/python3/dist-packages/libvirt.py&#8221;, line 1234, in create<br />
    if ret == -1: raise libvirtError (&#8216;virDomainCreate() failed&#8217;, dom=self)<br />
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2020-05-16T13:26:14.566504Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse: Could not open &#8216;/dev/input/by-id/usb-Logitech_Gaming_Mouse_G502_0E60386B3638-event-mouse&#8217;: No such file or directory</p>
<p>It constantly says no such file or directory and, before you ask i have added my user to the input and kvm group. I&#8217;ve tried removing all sandboxing as the guide suggested and i&#8217;ve also added my user to qemu.conf along with the id&#8217;s of the mouse and keyboard. I looked on reddit and I tried the things that they suggested there and to no avail. Can someone please suggest something to fix this?? I tried reddit and they suggested what i already tried.</p>
<p>I also checked /dev/input/by-id/ multiple times and this is the correct id, it just doesn&#8217;t seem to work?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: AMD Ryzen VFIO GPU pass-through &#8211; gaming VM on new hardware &#8211; valo.at		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-55</link>

		<dc:creator><![CDATA[AMD Ryzen VFIO GPU pass-through &#8211; gaming VM on new hardware &#8211; valo.at]]></dc:creator>
		<pubDate>Thu, 23 Jan 2020 00:00:17 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-55</guid>

					<description><![CDATA[[&#8230;] For input devices like keyboard and mouse there is a latency free alternative to passing-through an usb controller: EVDEV [5]. This is a seamless event pass-through method build into the windows kernel and there are even virtio drivers for windows.[5] Evdev Passthrough Explained — Cheap, Seamless VM Input [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] For input devices like keyboard and mouse there is a latency free alternative to passing-through an usb controller: EVDEV [5]. This is a seamless event pass-through method build into the windows kernel and there are even virtio drivers for windows.[5] Evdev Passthrough Explained — Cheap, Seamless VM Input [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JB		</title>
		<link>/using-evdev-passthrough-seamless-vm-input/#comment-35</link>

		<dc:creator><![CDATA[JB]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 04:24:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=896#comment-35</guid>

					<description><![CDATA[Awesome! Worked like a charm]]></description>
			<content:encoded><![CDATA[<p>Awesome! Worked like a charm</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 22/71 objects using disk
Page Caching using disk 
Minified using disk

Served from: passthroughpo.st @ 2023-05-24 22:15:09 by W3 Total Cache
-->