I’m having some trouble getting libvirt to accept my evdev devices.
Internal error: process exited while connecting to monitor: qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/event4: Could not open ‘/dev/input/event4’: No such file or directory
I have the device events properly listed in both qemu.conf and my VM settings. at least i think i do lol
GNU nano 4.8 /etc/libvirt/qemu.conf
# Master configuration file for the QEMU driver.
# All settings described here are optional - if omitted, sensible
# defaults are used.
user = "libvirt-qemu"
group = "kvm"
cgroup_device_acl = [
"/dev/kvm",
"/dev/input/by-id/usb-MosArt_USB-2.4G_Keyboard-event-kbd",
"/dev/input/by-id/usb-Logitech_USB_Reciever-event-mouse",
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc","/dev/hpet", "/dev/sev"
]
# Use of TLS requires that x509 certificates be issued. The default is
------------------------------------
</devices>
<qemu:commandline>
<qemu:arg value='-object'/>
<qemu:arg value='input-linux,id=mouse1,evdev=/dev/input/event4'/>
<qemu:arg value='-object'/>
<qemu:arg value='input-linux,id=kbd1,evdev=/dev/input/event9,grab_all=on,repeat=on'/>
</qemu:commandline>
</domain>
I’ve verified that the events match up (it didn’t work doing by-id for both, either), and i even added event permissions in AppArmor
/etc/AppArmor.d/abstractions/libvirt-qemu
...
/dev/input/event4 rw,
/dev/input/event9 rw,
libvirt still can’t find the device upon launching my w10 guest VM, though. any help would be appreciated. specs are an intel i7 4790 (intel hd 4600 host gpu), gtx 1060 (guest gpu), 16gb ram, Asus z97a motherboard.