You are not logged in.

#1 2012-07-19 20:49:13

Hrafnahnef
Member
Registered: 2010-09-02
Posts: 15

[SOLVED] (Yet another) USB does not work in VirtualBox

In short: When I start Virtual Box and open "Settings", it will produce the error message

VERR_FILE_NOT_FOUND

and

NS_ERROR_FAILURE (0x00004005)

Naturally, none of my USB devices will be found in the USB settings. However, if I start VirtualBox as root (with kdesu VirtualBox), there will be no error and the USB devices will plop up in the device list. This makes me believe it is a permission issue. But I don't know where.

----

To make it a fresh start, i removed all previous VirtualBox, then re-installed virtualbox and the virtualbox-ext-oracle AUR:

$ sudo pacman -R virtualbox-ext-oracle virtualbox virtualbox-modules virtualbox-additions
$ sudo pacman -S virtualbox virtualbox-modules virtualbox-additions
$ sudo pacman -U tmp/virtualbox-ext-oracle/virtualbox-ext-oracle-4.1.18-1-any.pkg.tar.xz
$ modprobe vboxdrv
$ sudo gpasswd -a ac vboxusers
<logout>
<login as ac>
$ groups
http network video audio users vboxusers
$ cat /etc/group | grep vboxusers
vboxusers:x:108:ac
$ lsusb | grep 0b0c:003f
Bus 005 Device 004: ID 0b0c:003f Todos AB Todos C400 smartcard controller (Handelsbanken card reader)
$ cat /etc/fstab | grep usb
none     /proc/bus/usb  usbfs   auto,busgid=108,busmode=0775,devgid=108,devmode=664  0  0
$ cat /etc/passwd | grep vboxusers
<empty response>

So far so good, at least up until that last line. I'm not sure, but I kinda expected vboxusers to show up in /etc/passwd.
Edit: Nothing to worry about that last line with /etc/passwd, it seems

Anyway, running VirtualBox produces the exact same error, but running it with

kdesu VirtualBox

will work just fine.

Any suggestions on what my problem can be?

(I have already browsed through all similiar threads, but they all tend to bottle down to adding the user to the vboxusers group and logging out and in. Maybe I am lousy at googling up the solution, but at least I have tried to the best of my ability to solve it myself.)

(Edit) Solution: Add the user running virtualbox to the storage and wheel groups. And remember to logout and login!

$ sudo gpasswd -a $USER storage
$ sudo gpasswd -a $USER wheel
<logout>
<login>

Last edited by Hrafnahnef (2012-07-19 22:57:17)

Offline

#2 2012-07-19 21:37:06

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

Re: [SOLVED] (Yet another) USB does not work in VirtualBox

Instead of modprobing vboxdrv, add it to the MODULES line in rc.conf and reboot.

...
MODULES=(vboxdrv)
DAEMONS=(...)

I don't see any mention of "vboxusers" in my /etc/passwd and VirtualBox works fine here.

You're not in the storage group either. You sure you followed the Beginner's Guide? Or are you running a pre-built Arch system like ArchBang or some other derivative?


"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-07-19 21:54:19

Hrafnahnef
Member
Registered: 2010-09-02
Posts: 15

Re: [SOLVED] (Yet another) USB does not work in VirtualBox

$ cat /etc/rc.conf | grep MODULES
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
MODULES=(vboxdrv radeon)

Nope, I am running the same "pacman -Syu":ed plain vanilla arch since 2010. Can't say whether I followed the beginners guide to the letter back then, I but I think I mostly followed it, with some additional tweakings to my liking and some hints from fellow Arch users at work.

Offline

#4 2012-07-19 22:28:16

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

Re: [SOLVED] (Yet another) USB does not work in VirtualBox

Add yourself to the "wheel" and "storage" group, re-log in (or reboot) and see if it works. If it doesn't, comment out that usbfs-whatever line from fstab, reboot and try again.

You mentioned something about "pacman -U /tmp/blablabla". Yaourt? No. I said this before – compile virtualbox-ext-oracle using "makepkg -s" instead of some shitty AUR helper: https://bbs.archlinux.org/viewtopic.php … 6#p1108856


By the way, "pacman -S virtualbox" will pull in "virtualbox-modules" automatically. It's listed as a dependency.


"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-07-19 22:48:11

Hrafnahnef
Member
Registered: 2010-09-02
Posts: 15

Re: [SOLVED] (Yet another) USB does not work in VirtualBox

Nope, no Yaourt will ever come near my system. :-) I compiled it with:

$ cd tmp
$ wget http-to-somewhere
$ tar zxvf virtualbox-ext-oracle.tar.gz
$ cd virtualbox-ext-oracle
$ makepkg -s

Yeah, I know about the dependencies. It was just my paranoia to make sure everthing was forced to be installed. Silly, I know...

I'm adding myself to wheel and storage now and relogin. If it doesn't work, I'll remove the fstab entry and reboot.

Offline

#6 2012-07-19 22:53:48

Hrafnahnef
Member
Registered: 2010-09-02
Posts: 15

Re: [SOLVED] (Yet another) USB does not work in VirtualBox

Oh, yes!

adding my user to the storage and wheel groups did the trick. :-)

Thanks for the help. And for the record, here is what made my day:

$ sudo gpasswd -a $USER storage
$ sudo gpasswd -a $USER wheel
<logout>
<login>

Offline

Board footer

Powered by FluxBB