I added the webcam in virtman
and now I get the error:
Error starting the domain: internal error: qemu unexpectedly closed the monitor: DATETIME qemu-system-x86_64: -device {"driver":"usb-host","hostdevice":"/dev/bus/usb/00?/00?","id":"hostdev?","bus":"usb.?","port":"?"}: failed to open /dev/bus/usb/00?/00?: Permission denied
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 1373, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: DATETIME qemu-system-x86_64: -device {"driver":"usb-host","hostdevice":"/dev/bus/usb/00?/00?","id":"hostdev?","bus":"usb.?","port":"?"}: failed to open /dev/bus/usb/00?/00?: Permission denied
I tried:
lsusb
cd /etc/udev/rules.d
nano rule-file
#added line
#SUBSYSTEM=="usb", ATTR{idVendor}=="????", ATTR{idProduct}=="????" OWNER="root", GROUP="kvm"
#SUBSYSTEM=="usb", ATTR{idVendor}=="????", ATTR{idProduct}=="????" OWNER="root", GROUP="libvirt"
#without the #
udevadm control --reload-rules
Still getting the error.
What do I have to do to make it work?