USB ports unusable side server (raspberry) but only by client side

Usb devices doesn't mount on my raspberry Pi 4 running Dietpi OS.
I have to reboot to see them.
At first I didn't link the problem to VirtualHere and I opened an issue on GitHub at DietPi support team, but then tried do disinstall it and everything worked as usual.
Btw I paste the link to that long post where, eventually, You can find some usefull informations about the issue.

https://github.com/MichaIng/DietPi/issues/5433

Thanks in advance if someone could help me to solve,

Paolo

#2

VirtualHere suspends access to new USB devices locally on the pi by default when it is running.

You can disable this behavior so the device(s) will be available locally on the pi if its not being used remotely.

You need to do this:

1. Stop the virtualhere server process
2. Edit the config.ini file on the server
3. Add the line
AutoAttachToKernel=1
4. Save the config.ini file and start the server and now the device.

(https://www.virtualhere.com/configuration_faq)