Linux client - for attach port

I'm trying to make a Z-Wave/Zigbee USB stick available to a Linux virtual machine. I got it set up with both Debian and Ubuntu and with both systems the device would periodically detach/reattach. When doing so, it reattaches to a different port (i.e. it will detach from /dev/ttyUSB0 and reattach to /dev/ttyUSB1). I tried creating a symlink "virtual" port so that it's always attached to the same location based on product id, etc. however this isn't available in my docker containers.

The problem is that I need to reference the device by the attach path. Is there any way to force a device to always attach to the same path (/dev/ttyUSB0)? The VirtualHere software is unfortunately unusable to me if I can't get this to consistently attach in the same location.

Thanks!

#2

Virtualhere doesnt generate any device paths, it doesnt do anything other than present the device to the kernel as if it was directly plugged in. Everything else devpaths/drivers binding etc is done by the kernel. So whatever is creating the /dev/ttyUSBx path is done by the kernel.