Another joystick passthrough question

Hi,
I have recently encountered an error message when I adding a usb joystick. May be can someone enlighten the problem? Here are some informations for the setup.
On the host the device looks like that.

[indiana@fedora ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 03f0:304a HP, Inc Slim Keyboard
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 011: ID 045e:028e Microsoft Corp. Xbox360 Controller
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[indiana@fedora ~]$
[indiana@fedora ~]$ ls -al /dev/input/js0
crw-rw-r--+ 1 root input 13, 0 Mar 16 18:52 /dev/input/js0

I tried with the following command but no way.

[indiana@fedora ~]$ incus config device add retropi js0 unix-char path=/dev/input/js0
Error: Invalid devices: Device validation failed for "js0": Unsupported device type

P.S.
I realized that the unix-char and unix-hotplug are used for the containers and the retropi is vm.
Regards.

Right, for a VM, you’d want to use the usb device type to pass it through.

I added the device, but forgot to load the module. I’ll try and inform you.
Thanks.

incus config device add retropi js usb vendorid=045e productid=028e

Regards.