You are not logged in.

#1 2012-05-31 10:56:57

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

[Solved] Cannot access USB device from Virtualbox

I tried

virtualbox 4.1.16-1

Which has the same problem.

But I use

virtualbox-bin 4.1.16-1

Because USB 2.0 works here.

And could not acce USB devices. I had and error message

Failed to access the USB subsystem. Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might not be installed on the host computer.

So, found the tip in ArchWiki

Adding an entry in /etc/fstab should resolve this issue:
none  /proc/bus/usb  usbfs  auto,busgid=108,busmode=0775,devgid=108,devmode=664  0  0


After reboot, I get the other vicious message

Failed to access the USB subsystem.
VirtualBox is not currently allowed to access USB devices. You can change this by adding your user to the 'vboxusers' group. Please see the user manual for a more detailed explanation.

Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
Host
Interface:
IHost {dab4a2b8-c735-4f08-94fc-9bec84182e2f}
Callee:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}


Of course, my user is in vboxusers group

[doctor@doctor ~]$ cat /etc/group | grep vboxusers
vboxusers:x:108:doctor

What should I do?

Last edited by Doctor Drive (2012-05-31 18:07:14)

Offline

#2 2012-05-31 11:07:48

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Cannot access USB device from Virtualbox

For USB support you need the virtualbox-ext-oracle package from the AUR. And apparently you don't need virtualbox-bin anymore... That's the Oracle-compiled binary, in case something is wrong with the one from [extra]. There used to be an OSE (open source edition) and a PUEL version (virtualbox-bin). But for some months now, VirtualBox has been open source and only the extension pack closed. So you might as well install:

# pacman -S virtualbox

And don't forget to add "vboxdrv" in the MODULES section from /etc/rc.conf.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-05-31 11:21:26

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

Re: [Solved] Cannot access USB device from Virtualbox

DSpider wrote:

For USB support you need the virtualbox-ext-oracle package from the AUR. And apparently you don't need virtualbox-bin anymore... That's the Oracle-compiled binary, in case something is wrong with the one from [extra]. There used to be an OSE (open source edition) and a PUEL version (virtualbox-bin). But for some months now, VirtualBox has been open source and only the extension pack closed. So you might as well install:

# pacman -S virtualbox

And don't forget to add "vboxdrv" in the MODULES section from /etc/rc.conf.


I tried it just half an hour before. virtualbox from repos not only does not support USB 2.0, but when I have virtualbox-ext-oracle installed, it says that I haven't.
So I switched to virtualbox-bin which does no argue about USB 2.0 and has no problems with virtualbox-ext-oracle package.
The modules are loaded.

Offline

#4 2012-05-31 12:42:27

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Cannot access USB device from Virtualbox

Ok, first of all, run lsusb and see if the host detects it:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 002 Device 002: ID 046d:c045 Logitech, Inc. Optical Mouse
Bus 002 Device 003: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 001 Device 005: ID 05ac:1293 Apple, Inc. iPod Touch 2.Gen

If it doesn't, you may have problems with the USB port, USB hub, oily contacts, a piece of lint stuck in there, the cat chewed on the cable, etc.

Get rid of virtualbox-bin and compile virtualbox-ext-oracle using "makepkg -s" instead of some AUR helper:

sudo pacman -Rnsd virtualbox-ext-oracle virtualbox-bin
sudo pacman -S virtualbox

mkdir ~/builds
cd ~/builds
wget -q https://aur.archlinux.org/packages/vi/virtualbox-ext-oracle/virtualbox-ext-oracle.tar.gz
tar xf virtualbox-ext-oracle.tar.gz
rm virtualbox-ext-oracle.tar.gz
cd virtualbox-ext-oracle
makepkg -s

sudo pacman -U ~/builds/virtualbox-ext-oracle/virtualbox-ext-oracle-4.1.16-1-any.pkg.tar.xz

Add yourself to the "vboxusers":

$ sudo gpasswd -a $USER vboxusers

To test it you can either run:

$ sudo modprobe vboxdrv

...which will only be valid until the next reboot. Or, (recommended) if you haven't done so already, edit /etc/rc.conf and add "vboxdrv" to the MODULES section so that it runs at startup:

MODULES=(vboxdrv)

Restart X or reboot for the group changes to apply and that's it.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-05-31 18:06:19

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

Re: [Solved] Cannot access USB device from Virtualbox

DSpider wrote:

Get rid of virtualbox-bin and compile virtualbox-ext-oracle using "makepkg -s" instead of some AUR helper:

sudo pacman -Rnsd virtualbox-ext-oracle virtualbox-bin
sudo pacman -S virtualbox

mkdir ~/builds
cd ~/builds
wget -q https://aur.archlinux.org/packages/vi/virtualbox-ext-oracle/virtualbox-ext-oracle.tar.gz
tar xf virtualbox-ext-oracle.tar.gz
rm virtualbox-ext-oracle.tar.gz
cd virtualbox-ext-oracle
makepkg -s

sudo pacman -U ~/builds/virtualbox-ext-oracle/virtualbox-ext-oracle-4.1.16-1-any.pkg.tar.xz

Strange, but this way virtualbox-ext-oracle really works with ArchRepo virtualbox.

DSpider wrote:

Add yourself to the "vboxusers":

$ sudo gpasswd -a $USER vboxusers

Restart X or reboot for the group changes to apply and that's it.

Thanks, seems I made a mistke that I did not relogin.

Last edited by Doctor Drive (2012-05-31 18:06:46)

Offline

Board footer

Powered by FluxBB