Can I forward USB devices to a VM?


Recommended Posts

1 hour ago, Dennusb said:

Hi,

 

Very interested in unRAID, next to the storage part I want to run a VM on there that runs home-assistant. So I need to use my Zwave USB stick in that VM. Is it possible to forward a USB device to a VM?

Yes you can forward USB devices to a VM.

 

Some people forward a complete USB host controller for maximum functionality, but in most situatuations it will work well to just forward individual devices.

Link to comment

I run home assistant in a docker with my USB stick passed to it No need for a VM. My stick is a z-wave/zigbee one so I pass 2 devices to it.

In the docker configuration I set up two devices ttyUSB0 = /dev/ttyUSB0 and ttyUSB1 =  /dev/ttyUSB1. In HA I have the usb_paths setup to the passed through devices. 

 

So far it runs awesome. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.