Bug 223763 - emulators/virtualbox-ose: USB Support
Summary: emulators/virtualbox-ose: USB Support
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-20 09:42 UTC by Slawomir Wojciech Wojtczak
Modified: 2018-05-24 08:59 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments
filter (51.75 KB, image/png)
2017-11-20 09:42 UTC, Slawomir Wojciech Wojtczak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2017-11-20 09:42:32 UTC
Created attachment 188136 [details]
filter

According to the FreeBSD Handbook Virtualbox USB Support should work:

> 21.6.2. VirtualBox™ USB Support
> 
> VirtualBox™ can be configured to pass USB devices through
> to the guest operating system. The host controller of the
> OSE version is limited to emulating USB 1.1 devices until
> the extension pack supporting USB 2.0 and 3.0 devices
> becomes available on FreeBSD.
> 
> For VirtualBox™ to be aware of USB devices attached to the
> machine, the user needs to be a member of the operator group.
> 
> # pw groupmod operator -m yourusername
> 
> Restart the login session and VirtualBox™ for these changes
> to take effect, and create USB filters as necessary.

My user is in 'operator' group:

% id vermaden
uid=1000(vermaden) gid=1000(vermaden) groups=1000(vermaden),0(wheel),5(operator),44(video),920(vboxusers)

Here are versions of kernel, userspace and packages:

% pkg info -a|grep virtu
virtualbox-ose-5.2.0_1         General-purpose full virtualizer for x86 hardware
virtualbox-ose-kmod-5.2.0_1    VirtualBox kernel module for FreeBSD

% uname -a
FreeBSD t420s.local 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug  9 11:55:48 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

% freebsd-version -k
11.1-RELEASE-p1

% freebsd-version -u
11.1-RELEASE-p3


The problem is I am not able to pass an USB device from Host to Guest.

An USB device that is attached to Host generated this messages in dmesg(8):

ugen2.4: <vendor 0x13fe USB DISK 3.0> at usbus2
umass0 on uhub4
umass0: <vendor 0x13fe USB DISK 3.0, class 0/0, rev 2.10/1.10, addr 4> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:4:0: Attached to scbus4
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: < USB DISK 3.0 PMAP> Removable Direct Access SPC-4 SCSI device
da0: Serial Number EC0068F1F89A7D02
da0: 40.000MB/s transfers
da0: 14786MB (30283008 512 byte sectors)
da0: quirks=0x3<NO_SYNC_CACHE,NO_6_BYTE>


And its available on usbconfig(8) as:

ugen2.4: <vendor 0x13fe USB DISK 3.0> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (498mA)

Its not possible to select that device in Devices > USB.

I have even created a 'filter' with vendor = '13fe' for this device but that does not help.

Either I am creating this filter wrong or this does not work because of some other reason.

Regards,
vermaden
Comment 1 Slawomir Wojciech Wojtczak 2018-05-24 08:59:06 UTC
This just does not work and never will again, use BHYVE for USB passthru.