VirtualBox USB support

Status
Not open for further replies.

rosabox

Explorer
Joined
Jun 8, 2016
Messages
77
I'm trying to use USB devices (weather stations) in a VM running in VirtualBox.

When I enable USB support, the VM doesn't start with this message: "Implementation of the USB 2.0 controller not found! Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND)"

I've downloaded the extension pack but I get this when installing:
Code:
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/media/Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack"
VBoxManage: error: Failed to locate the main module ('VBoxPuelMain')
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManager, interface IExtPackManager
VBoxManage: error: Context: "int handleExtPack(HandlerArg*)" at line 1143 of file VBoxManageMisc.cpp


I've found this post: https://forums.freenas.org/index.ph...in-a-jail-in-freenas.20185/page-3#post-125272 - it's 2 years old, still no solution for this?

I've also found this: https://forums.freebsd.org/threads/38988/ which explains, why the extension pack installation fails and suggest installing this: http://www.freshports.org/emulators/virtualbox-ose-additions but it seems to be for a different version of VirtualBox (5.0.26)

I've also tried this https://wiki.freebsd.org/VirtualBox#USB_support and it looks like I'm almost there but:

usbconfig in the VirtualBox jail:
Code:
ugen0.1: <EHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.2: <product 0x07db vendor 0x8087> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <Virtual Hub American Megatrends Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.4: <Virtual Keyboard and Mouse American Megatrends Inc.> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (0mA)
ugen0.5: <product 0x6801 vendor 0x1130> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
ugen0.6: <ELV USB-WDE1 Wetterdatenempfnger Silicon Labs> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)


lsusb in the VM (linux):
Code:
Bus 001 Device 001: ID 0000:0000


So now I'm stuck and I don't know how to proceed.
I got this, when doing /etc/rc.d/devfs restart

Code:
devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted
/etc/rc.d/devfs: WARNING: devfs_init_rulesets: could not read rules from /etc/defaults/devfs.rules
/etc/rc.d/devfs: WARNING: devfs_set_ruleset: you must specify a ruleset number
/etc/rc.d/devfs: WARNING: devfs_apply_ruleset: you must specify a ruleset


I've also tried instead of creating /etc/devfs.rules edit the /etc/defaults/devfs.rules but the messages were the same.

Thank you for reading my long post, I've tried to be as precise as posssible and any help will be very appreciated.

FreeNAS-9.10-STABLE-201606270534 (dd17351)
VirtualBox 4.3.12_OSE(93733)
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
As I understand it, there is no USB support in the VirtualBox jail, because VirtualBox technically is not running on the FreeNAS base, it's in a jail. Jail's do not have access to system hardware a normal machine would have.

If you're on 9.10, you could try bhyve (look up iohyve in the docs) where it would have access to USB devices.
 
Status
Not open for further replies.
Top