bhyve, FreeNAS VM USB/serial passthrough

simp

Cadet
Joined
Jan 28, 2018
Messages
5
I'm trying to get a USB serial adapter working within a VM.

Having gone through a search, most of the threads related go back to Coral and the rest end with 'bhyve support is existing, but freenas hasn't implemented it yet'. I'm wondering if this has changed or maybe there's some CLI action that can be taken to map a USB Serial device to a VM?

I can see the the main OS detecting it from `dmesg` once I hook the device up.

Code:
ugen0.4: <vendor 0x0658 product 0x0200> at usbus0
umodem0 on uhub0
umodem0: <vendor 0x0658 product 0x0200, class 2/0, rev 2.00/0.00, addr 3> on usbus0
umodem0: data interface 1, has no CM over data, has no break

So this part seems to work. I thought I could map it as a file to the VM, but the RAW file mapping requires it to be under a volume mount point.

Is there anything to be done at this point, or should I document this use-case in a ticket and hope for the best?
 

blanchet

Guru
Joined
Apr 17, 2018
Messages
516
If you have the appropriate hardware, you may consider using VMware ESXi + virtualized FreeNAS,
because VMware ESXi works better than bhyve in particular for the VM USB/passthrough.
 
Top