I am trying to use evdev to pass through my keyboard and mouse to a VM but all the guides I’ve followed don’t seem to work. If I edit /etc/libvirtd/qemu.conf and add the following…
cgroup_device_acl = [
“/dev/null”, “/dev/full”, “/dev/zero”,
“/dev/random”, “/dev/urandom”,
“/dev/ptmx”, “/dev/kvm”, “/dev/kqemu”,
“/dev/rtc”,"/dev/hpet",
“/dev/input/by-id/KEYBOARD_NAME”,
“/dev/input/by-id/MOUSE_NAME”
]
QEMU/virt-manager won’t start libvirtd service and I won’t be able to use my VMs. If I remove it and just add the following to my VMs XML file I get permission denied.
qemu:commandline
<qemu:arg value=’-object’/>
<qemu:arg value=‘input-linux,id=mouse1,evdev=/dev/input/by-id/ckb-CORSAIR_M65_RGB_ELITE_Gaming_Mouse_vM_-event’/>
<qemu:arg value=’-object’/>
<qemu:arg value=‘input-linux,id=kbd1,evdev=/dev/input/by-id/ckb-Corsair_Gaming_K70_LUX_RGB_Keyboard_vKB_-event,grab_all=on,repeat=on’/>
</qemu:commandline>
With this in place I can’t start the VM either.
Anyone know what the issue is?
Also my user is added to the kvm and input groups.