I know it’s more a OS topic, but I can’t find the solution on google.
I’ve installed Ubuntu with KVM as hypervisor and openhab in a VM, also on Ubuntu.
then I run “lsusb” to see:
lsusb Bus 003 Device 006: ID 0658:0200 Sigma Designs, Inc.
I add the device with “sudo virsh edit openHAB” somewhere within “devices”:
<hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x0658'/> <product id='0x0200'/> </source> </hostdev>
strange, I do not see the USB stick when I start openHAB. so I manually attach the USB stick via the virsh-manager GUI and can then see the stick in openhab. I can include zwave devices, works fine for some time.
but somewhen I receive the following message and zwave stops to work:
2019-01-14 17:22:01.171 [ERROR] [ing.zwave.handler.ZWaveSerialHandler] - Got I/O exception Input/output error in writeArray during sending. exiting thread.
I figured out that the device ID on the hypervisor for the USB Stick changed:
Bus 003 Device 007: ID 0658:0200 Sigma Designs, Inc.
how can I make the device ID persistent for the virtual machine?