Passthrough USB device to freenas VM

leprejohn

Cadet
Joined
Jun 1, 2019
Messages
9
Hello, I was asked by my FIL if he could set up a VM in freenas and have a USB connected for his weather station to monitor it, rather than having a laptop always setup to do this. I've created a windows VM on there (I didn't know he needed an USB to be connected also, I thought it was just an app he was using).

I did see a forum post on how to do it in 11.U2 however I don't have permission to that thread, he is running 11.3-U3.2.

Thanks, leprejohn
 

Tigersharke

BOfH in User's clothing
Administrator
Moderator
Joined
May 18, 2016
Messages
893
Hello, I was asked by my FIL if he could set up a VM in freenas and have a USB connected for his weather station to monitor it, rather than having a laptop always setup to do this. I've created a windows VM on there (I didn't know he needed an USB to be connected also, I thought it was just an app he was using).

I did see a forum post on how to do it in 11.U2 however I don't have permission to that thread, he is running 11.3-U3.2.

Thanks, leprejohn
My guess is that the thread you found was closed because it had no new posts since 2018-12-31. It is better to start fresh with new information, although you could reference the thread with a link or by pasting an applicable bit from it into this thread.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
USB passthrough to bhyve can only be done via CLI (e.g., iohyve). The VM GUI has no ability to provision any sort of passthrough.
 

leprejohn

Cadet
Joined
Jun 1, 2019
Messages
9
My guess is that the thread you found was closed because it had no new posts since 2018-12-31. It is better to start fresh with new information, although you could reference the thread with a link or by pasting an applicable bit from it into this thread.
I'll try and find it but you are right, it will be better to start with new information.

USB passthrough to bhyve can only be done via CLI (e.g., iohyve). The VM GUI has no ability to provision any sort of passthrough.

Would you know which commands I could use? As I've got the PCI devices that I need:

root@freenas[/boot]# pciconf -lv | grep -B2 USB
xhci0@pci0:0:20:0: class=0x0c0330 card=0x50071458 chip=0x1e318086 rev=0x04 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
--
ehci0@pci0:0:26:0: class=0x0c0320 card=0x50061458 chip=0x1e2d8086 rev=0x04 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C216 Chipset Family USB Enhanced Host Controller'
class = serial bus
subclass = USB
--
ehci1@pci0:0:29:0: class=0x0c0320 card=0x50061458 chip=0x1e268086 rev=0x04 hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C216 Chipset Family USB Enhanced Host Controller'
class = serial bus
subclass = USB
root@freenas[/boot]#
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399

Take care you don't pass through the USB controller used for your boot volume.
 
Top