It works great for me except, as soon as I try to connect a USB stick via Spice using the dedicated button in the upper left corner of the window:
I receive the following error in the UI:
“USB redirection error: Could not redirect Kingston NAME_OF_MY_USB_STICK: Error Libusb_open: Access denied (insufficient permissions)[-3]”
In the terminal, where I started the VM following errors appear:
libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/003, errno=13
libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes
I guess I have messed up the permissions somewhere but am rather new to linux containers. Any idea what I might have messed up? My configuration currently looks like this:
Right after writing this post, even though I had tried before for a considerable amount of time, I found the solution… I will not delete this thread, just in case someone else encounters the same issue:
I have checked my USB devices via lsusb and checked bus and device number, which in my case were
In fact that was the first option I tried for hours for my iPhone but it always yielded errors. However, I see that they are really iPhone specific – it works like a charm when I do the same thing for a simple USB stick (without modifying any firewall rules as above):
For anyone interested:
lsusb
will give you something like
Bus 002 Device 002: ID 0101:0202 My USB Device
with 0101 being the vendor ID and 0202 being the product ID. With that you can connect the USB device directly via
lxc config device add win11 foo usb vendorid=0101 productid=0202
From what I read this has better performance than Spice. Hence, I will use this for things that require low latency (webcam, mic etc.).
@tomp Thanks a lot for pointing this out, much appreciated, that helped me!