[OpenIndiana-discuss] Virtualbox USB passthrough

Tony Brian Albers tba at kb.dk
Mon Oct 12 09:13:27 UTC 2020


Hi guys,

I'm having serious issues getting a device to be passed through to a 
Linux VM in Virtualbox.

I've created a USB filter that should make sure that the device (a 
webcam) is grabbed and conencted. However, when I connect the webcam, a 
popup in the VM window says:
Failed to attach the USB device <b>Trust Webcam</b> to the virtual 
machine <b>debian</b>.

When I click the error message:
Details:
Failed to create a proxy device for the USB device. (Error: 
VERR_OPEN_FAILED).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}


After searching logfiles for errors, I finally found something in 
/var/svc/log/application-virtualbox-run-once:default.log:

--PKGINSTALL virtualbox/run-once
Checking for older & partially installed bits...
    - Removed: USB driver
    - Unloaded: USBMonitor module
    - Removed: USBMonitor driver
    - Unloaded: NetFilter (STREAMS) module
    - Removed: NetFilter (STREAMS) driver
    - Unloaded: NetAdapter module
    - Removed: NetAdapter driver
    - Unloaded: Host module
    - Removed: Host driver
Updating the boot archive...
Installing new ones...
Detected Solaris 11 Version 151
Loading VirtualBox kernel modules...
    - Added: Host driver
    - Added: NetAdapter driver
    - Detected: Force-load file //etc/vboxinst_vboxflt.
    - Added: NetFilter (STREAMS) driver
    - Added: USBMonitor driver
    - Added: USB driver
can't load module: Invalid argument
    - Loading: USB module ...FAILED!
## Completed but with errors.
--DONE virtualbox/run-once

So, is the USB module missing or?

There is nothing in /opt/VirtualBox that seems to fit, 
/opt/VirtualBox/amd64 contains:

root at emu:/opt/VirtualBox# ls -l amd64
total 244929
drwxr-xr-x   2 root     bin            7 Oct  8 15:56 components
-r--r--r--   1 root     bin       458440 Oct  8 15:56 DbgPlugInDiggers.so
-r--r--r--   1 root     bin       150008 Oct  8 15:56 libvboxjxpcom.so
-r--r--r--   1 root     bin      38030456 Oct  8 15:56 UICommon.so
-r--r--r--   1 root     bin        10144 Oct  8 15:56 VBoxAuth.so
-r--r--r--   1 root     bin        43296 Oct  8 15:56 VBoxAuthSimple.so
-r-xr-xr-x   1 root     bin       139656 Oct  8 15:56 VBoxAutostart
-r-xr-xr-x   1 root     bin       200712 Oct  8 15:56 VBoxBalloonCtrl
-r-xr-xr-x   1 root     bin       115144 Oct  8 15:56 VBoxBugReport
-r--r--r--   1 root     bin       174864 Oct  8 15:56 VBoxDbg.so
-r--r--r--   1 root     bin      2508536 Oct  8 15:56 VBoxDD.so
-r--r--r--   1 root     bin      8746896 Oct  8 15:56 VBoxDD2.so
-r--r--r--   1 root     bin       367440 Oct  8 15:56 VBoxDDR0.r0
-r--r--r--   1 root     bin       548072 Oct  8 15:56 VBoxDDU.so
-r--r--r--   1 root     bin        46768 Oct  8 15:56 VBoxDragAndDropSvc.so
-r-xr-xr-x   1 root     bin        11840 Oct  8 15:56 VBoxDTrace
-r-xr-xr-x   1 root     bin        61344 Oct  8 15:56 VBoxExtPackHelperApp
-r--r--r--   1 root     bin        35928 Oct  8 15:56 VBoxGuestControlSvc.so
-r--r--r--   1 root     bin        50088 Oct  8 15:56 VBoxGuestPropSvc.so
-r-sr-xr-x   1 root     bin       194088 Oct  8 15:56 VBoxHeadless
-r--r--r--   1 root     bin       133200 Oct  8 15:56 VBoxHeadless.so
-r--r--r--   1 root     bin        19392 Oct  8 15:56 VBoxHostChannel.so
-r--r--r--   1 root     bin        70040 Oct  8 15:56 VBoxKeyboard.so
-r-xr-xr-x   1 root     bin      1388056 Oct  8 15:56 VBoxManage
-r-sr-xr-x   1 root     bin        23288 Oct  8 15:56 VBoxNetAdpCtl
-r-sr-xr-x   1 root     bin       194088 Oct  8 15:56 VBoxNetDHCP
-r--r--r--   1 root     bin       330264 Oct  8 15:56 VBoxNetDHCP.so
-r-sr-xr-x   1 root     bin       194088 Oct  8 15:56 VBoxNetNAT
-r--r--r--   1 root     bin       400760 Oct  8 15:56 VBoxNetNAT.so
-r--r--r--   1 root     bin      4099352 Oct  8 15:56 VBoxRT.so
-r-sr-xr-x   1 root     bin       194056 Oct  8 15:56 VBoxSDL
-r--r--r--   1 root     bin       221680 Oct  8 15:56 VBoxSDL.so
-r--r--r--   1 root     bin        73848 Oct  8 15:56 VBoxSharedClipboard.so
-r--r--r--   1 root     bin        73936 Oct  8 15:56 VBoxSharedFolders.so
-r-xr-xr-x   1 root     bin      7145424 Oct  8 15:56 VBoxSVC
-r--r--r--   1 root     bin      4773144 Oct  8 15:56 VBoxVMM.so
-r-xr-xr-x   1 root     bin      42712232 Oct  8 15:56 vboxwebsrv
-r--r--r--   1 root     bin      1366968 Oct  8 15:56 VBoxXPCOM.so
-r--r--r--   1 root     bin        56600 Oct  8 15:56 VBoxXPCOMC.so
-r-xr-xr-x   1 root     bin        34304 Oct  8 15:56 VBoxXPCOMIPCD
-r-sr-xr-x   1 root     bin         9760 Oct  8 15:56 VBoxZoneAccess
-r-xr-xr-x   1 root     bin      2839672 Oct  8 15:56 VirtualBox
-r-sr-xr-x   1 root     bin       194344 Oct  8 15:56 VirtualBoxVM
-r--r--r--   1 root     bin      2038504 Oct  8 15:56 VirtualBoxVM.so
-r--r--r--   1 root     bin      2717504 Oct  8 15:56 VMMR0.r0
root at emu:/opt/VirtualBox#

vbox version:
root at emu:/opt/VirtualBox# pkg list |grep irtual
system/virtualbox                                 6.1.8-2020.0.1.0 
     i--
root at emu:/opt/VirtualBox#


Any suggestions?

TIA

/tony

-- 
Tony Albers - Systems Architect - IT Development Royal Danish Library, 
Victor Albecks Vej 1, 8000 Aarhus C, Denmark
Tel: +45 2566 2383 - CVR/SE: 2898 8842 - EAN: 5798000792142



More information about the openindiana-discuss mailing list