You are not logged in.
Hi all,
Just run into a USB issue in VirtualBox, I tried everything I can find on internet, but nothing fixes it.
It used to work fine before, I don't know when was it broken. Here's some information:
I'm running VirtualBox 4.2.6 on Linux 3.6.11-1-ARCH.
I added myself to vboxusers, and I have
export VBOX_USB=usbfs
in ~/.xinitrc
I also have VirtualBox extension pack installed.
Now the weird part is, I can access USB devices if I run VirtualBox with root privilege, while with my own account, it shows the following error message once I click "Settings" button:
Failed to access USB subsystem.
Could not load the Host USB Proxy service: VERR_NOT_FOUND.
Anyone has any idea what's going on?
Offline
Works fine here:
ewaller@odin:~ 1004 %uname -a
Linux odin 3.7.2-1-ARCH #1 SMP PREEMPT Fri Jan 11 20:38:55 CET 2013 x86_64 GNU/Linux
ewaller@odin:~ 1005 %
What is the output of lsmod | grep vbox ??
I added myself to vboxusers
Did you log out and log back in after adding yourself?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
thanks for the help.
out put of "lsmod | grep vbox" here:
vboxdrv 1823470 0
I even remove myself from vboxusers and add it back again, and after that reboot my system. still doesn't work.
as it works with root privilege, I assume it's a permission issue. I can't find out where though.
Offline
Anyone has any idea what's going on?
Yep. Arch-specific issue with VirtualBox. You need to install the virtualbox-bin package from AUR in stead, should fix this.
“Great art is horseshit, buy tacos.” - Charles Bukowski
freenode/archlinux: nl-trisk
Offline
But it used to work fine before, just suddenly goes wrong.
Anyway I'm downloading the package now, will try it later.
Thanks for the help.
Offline
No luck. I still get the same error. Any other ideas?
Offline
Hummm.. do you have:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE:="0664"
in /etc/udev/rules.d/10-vboxdrv.rules?
“Great art is horseshit, buy tacos.” - Charles Bukowski
freenode/archlinux: nl-trisk
Offline
I tried this before but it doesn't seem to work. And according to the following thread:
https://bbs.archlinux.org/viewtopic.php?id=149110
I think it has been moved to
/usr/lib/udev/rules.d/10-boxdrv.rule
and I have that file in /usr/lib.
This reminds me that maybe the rule is overridden by later rules. I'll try figure it out.
Offline
Here's my 10-vboxdrv.rule
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", ACTION=="add", RUN="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="VBoxCreateUSBNode.sh --remove $major $minor"
It's different from what I can find on internet. Maybe Oracle's doing some change recently.
However, I can't find VBoxCreateUSBNode.sh anywhere. Do you think this could be the problem?
EDIT: after re-installation I can find VBoxCreateUSBNode.sh now. But I still get the same error running with non-root accounts.
Last edited by flockyrocky (2013-01-18 04:01:31)
Offline
That's still not the same as what you should have, e.g.:
RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh ...
Edit: Isn't there a missing comma here?
MODE="0600" ENV{ACL_MANAGE}="1"
Last edited by brebs (2013-01-18 04:39:36)
Offline
well mine is from virtualbox-bin package from AUR.
just tried the package from community, and add back the missing comma, still the same error.
PS: I actually don't know the exact difference between virtualbox and virtualbox-bin. both packages seem the same to me except some UI differences. I guess maybe virtualbox-bin has been merged to virtualbox?
Offline
some more information:
permission of /dev/vboxusb and all it's sub directories has been correctly set to root:vboxusers. does it mean udev has been working as expected?
however as I mentioned in the first post, if I run it with root permission everything works alright. I assume it's still a permission issue.
here's the log from virtualbox:
VirtualBox XPCOM Server 4.2.6_OSE r82870 linux.amd64 (Dec 24 2012 14:36:10) release log
00:00:00.001521 main Log opened 2013-01-18T07:31:11.655063000Z
00:00:00.001527 main OS Product: Linux
00:00:00.001529 main OS Release: 3.6.11-1-ARCH
00:00:00.001530 main OS Version: #1 SMP PREEMPT Tue Dec 18 08:57:15 CET 2012
00:00:00.001556 main DMI Product Name: 4173RY5
00:00:00.001564 main DMI Product Version: ThinkPad T420s
00:00:00.001570 main Host RAM: 7876MB total, 6587MB available
00:00:00.001574 main Executable: /usr/lib/virtualbox/VBoxSVC
00:00:00.001575 main Process ID: 1323
00:00:00.001576 main Package type: LINUX_64BITS_GENERIC (OSE)
00:00:00.112011 nspr-2 Loading settings file "/home/yaoxing/.VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.114745 nspr-2 Default USB access method set to "usbfs" from environment
00:00:00.155510 nspr-2 VDInit finished
00:00:00.156270 nspr-2 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={1d7aca29-97f0-4287-9874-a60ec4f80ea6} aComponent={SystemProperties} aText={Cannot determine default Guest Additions ISO location. Most likely they are not available}, preserve=false
00:00:00.166231 nspr-2 Loading settings file "/mnt/aca9ea96-3c74-4a96-a475-96a81b873514/VirtualBox/Win7/Win7.vbox" with version "1.13-linux"
00:00:00.360513 nspr-3 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={30678943-32df-4830-b413-931b25ac86a0} aComponent={Host} aText={Could not load the Host USB Proxy service: VERR_NOT_FOUND}, preserve=true
00:00:00.577497 nspr-2 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={30678943-32df-4830-b413-931b25ac86a0} aComponent={Host} aText={Could not load the Host USB Proxy service: VERR_NOT_FOUND}, preserve=true
00:00:01.944881 nspr-2 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={30678943-32df-4830-b413-931b25ac86a0} aComponent={Host} aText={Could not load the Host USB Proxy service: VERR_NOT_FOUND}, preserve=true
00:00:02.064954 nspr-2 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={30678943-32df-4830-b413-931b25ac86a0} aComponent={Host} aText={Could not load the Host USB Proxy service: VERR_NOT_FOUND}, preserve=true
00:00:04.060687 nspr-2 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={30678943-32df-4830-b413-931b25ac86a0} aComponent={Host} aText={Could not load the Host USB Proxy service: VERR_NOT_FOUND}, preserve=true
00:00:04.636696 nspr-3 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={30678943-32df-4830-b413-931b25ac86a0} aComponent={Host} aText={Could not load the Host USB Proxy service: VERR_NOT_FOUND}, preserve=true
I also tried to rollback to earlier versions which I'm sure works before, still the same error. then I guess it's not a software reason, either.
Last edited by flockyrocky (2013-01-18 07:52:14)
Offline
My knowledge related to virtualbox may not be accurate, haven't used it in a while. But, I found this in a fedora forum:
The problem was that my user wasn't fully part of the vboxusers group. There was an entry in /etc/group, but not in the shadow files. After adding the user using system-config-user the USB devices appeared and the error message dissapeared.
Maybe you should check your /etc/*shadow* files. So, as far as I remember, system-config-users is some kind of GUI interface for user management. Maybe you can find out how to get your username into the shadow files?
“Great art is horseshit, buy tacos.” - Charles Bukowski
freenode/archlinux: nl-trisk
Offline
yes, I saw that thread, too. the problem is I don't know how to modify this file
what I'm thinking is, if it's just a permission problem of /dev/vboxusb, I can simply resolve it by manually changing the owner and owner group to my current user/group. so I tried but it doesn't work. I think there must be something else that requires permission, too. I don't know what though.
Offline
flockyrocky, I have faced with the same problem today and finally at least USB 1.0 is working (have no extention pack for USB 2.0 support).
First - I had some problem with my user assignment to 'vboxusers' group. All seemed to be ok, but I can't make "cd /dev/vboxusb" (permission denied). Don't found true reason, but after reboot all is ok.
Second - I got this error after "export VBOX_USB=usbfs". Without this statement all is working fine for me.
I have:
[root@xx ~]# pacman -Q | grep virtual
virtualbox 4.2.6-1
virtualbox-host-modules 4.2.6-3
[root@xx ~]# uname -a
Linux xx 3.6.11-1-ARCH #1 SMP PREEMPT Tue Dec 18 08:57:15 CET 2012 x86_64 GNU/Linux
[root@xx ~]#
Last edited by FuzzySPb (2013-01-21 10:56:35)
Offline
well to the first question I can explain. according to the wiki, after adding yourself to vboxusers group, you should logout or reboot before it works.
and for the 2nd issue, I think I always have this setting from the beginning. if it's the reason, virtualbox must have changed something recently. I'll try it, thanks for your help.
EDIT: this way doesn't seem to work for me. did you do anything else to fix it?
Last edited by flockyrocky (2013-01-22 05:14:34)
Offline
this way doesn't seem to work for me. did you do anything else to fix it?
No. I had installed VirtualBox a couple of weeks ago. But there was no need for USB support for me at that time. Yesterday I decided to connect USB device to VirtualBox and read wiki about it. I have added my user to vboxusers group, then assigned VBOX_USB variable. Then I got an error described at start of this topic. I have tried to change rights on /dev/vboxusb from 750 to 770 without success. Then I have rebooted and successfully started VirtualBox without VBOX_USB with USB. Not sure that /dev/vboxusb right have matter, because I assume these files are created automatically by udev and no I see there again 750 on folders and 660 on files.
Last edited by FuzzySPb (2013-01-22 05:43:07)
Offline
well to the first question I can explain. according to the wiki, after adding yourself to vboxusers group, you should logout or reboot before it works.
and for the 2nd issue, I think I always have this setting from the beginning. if it's the reason, virtualbox must have changed something recently. I'll try it, thanks for your help.EDIT: this way doesn't seem to work for me. did you do anything else to fix it?
http://linux.about.com/library/cmd/blcmdl8_pwconv.htm
?
“Great art is horseshit, buy tacos.” - Charles Bukowski
freenode/archlinux: nl-trisk
Offline
Guys.
Was there a solution found?
I get the same error on current (fully updated) install.
Could not load the Host USB Proxy service: VERR_NOT_FOUND
Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
Host
Interface:
IHost {30678943-32df-4830-b413-931b25ac86a0}
Callee:
IMachine {22781af3-1c96-4126-9edf-67a020e0e858}
No testing packages installed.
I tried the repo version, now I have installed AUR version. No go.
Kernel:
[root@wishmacer andrzejl]# uname -r
3.8.5-1-ARCH
[root@wishmacer andrzejl]#
I am the member of the vboxusers group:
[root@wishmacer andrzejl]# cat /etc/group | grep vbox
vboxusers:x:108:andrzejl
[root@wishmacer andrzejl]# cat /etc/gshadow | grep vbox
vboxusers:!::andrzejl
Modules are loaded:
[root@wishmacer andrzejl]# lsmod | grep vbox
vboxpci 14705 0
vboxnetflt 16464 0
vboxnetadp 19175 0
vboxdrv 221515 3 vboxnetadp,vboxnetflt,vboxpci
[root@wishmacer andrzejl]#
Extension is installed:
[root@wishmacer andrzejl]# locate ExtensionPacks
/opt/VirtualBox/ExtensionPacks
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.html
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.rtf
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.txt[...]Prunned longish output...[...]
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/win.x86/VBoxUsbCardReaderR3.dll
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/win.x86/VBoxUsbWebcamR3.dll
/opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/win.x86/VBoxVRDP.dll
[root@wishmacer andrzejl]#
I was rebooting many times today.
I have tried adding this:
VBOX_USB=usbfs
and this:
export VBOX_USB=usbfs
to the
~/.bashrc
Found this page and I see these two commands:
VBoxManage list usbhost
ls -lR /dev/vboxusb
The results are:
[andrzejl@wishmacer ~]$ VBoxManage list usbhost
Host USB Devices:<none>
[andrzejl@wishmacer ~]$ ls -lR /dev/vboxusb
ls: cannot access /dev/vboxusb: No such file or directory
[andrzejl@wishmacer ~]$
Then I have found another page which said:
Add this:
usbfs /proc/bus/usb usbfs defaults,devmode=666 0 0
to the
/etc/fstab
and reboot...
BUT I double checked before adding it...
[root@wishmacer andrzejl]# ls /proc/bus/usb
ls: cannot access /proc/bus/usb: No such file or directory
[root@wishmacer andrzejl]#
SO... There is no such folder - the mount would fail...
Here I can see the info:
Have:
- VirtualBox v. 4.1.18r78361
- Extension Pack v. 4.1.18r78361
- user is added in vboxusers group
- Could not load the Host USB Proxy service: VERR_NOT_FOUND (NS_ERROR_FAILURE (0x00004005))/proc/bus/usb is removed from kernel 3.5.0. That is the problem?
Basically I have spent the last 3 or 4 hours (maybe more) trying to figure this out on my own - I thought it would be a good idea to report this here as this thread is similar (to say the least) to my case and then keep searching for a solution to this annoyance.
Regards.
Andrzej
Last edited by AndrzejL (2013-04-04 20:58:34)
The worst thing about censorship is ██████ ██ ████ ████████████ and ██████ ███████ ███ ███████████.
Offline
Reboot the host if you have upgraded the linux package (the Linux kernel) earlier today. Always do that. Then USB devices will start working again. Because I bet they don't work on the host either, let alone VirtualBox... So reboot the host and try again.
Oh, and remove any weird VirtualBox stuff from ~/.bashrc or ~/.xinitrc. You don't need that. No one did. Ever.
After physically plugging in the USB device you need to also "plug in" the device in VirtualBox (from Devices), or create a USB filter that "plugs it in" automatically. Make sure that the USB support checkbox from the VM's settings is checked.
Last edited by DSpider (2013-04-04 21:46:45)
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
Guys.
Was there a solution found?
Yeah, a solution was found.
Then I have rebooted and successfully started VirtualBox without VBOX_USB with USB.
But you probably flew right past it... So remove any crazy shit you may have added to ~/.bashrc or ~/.xinitrc, such as "export VBOX_USB=usbfs" or just "VBOX_USB=usbfs" (without any "export" in front). Seriously, wtf.
Last edited by DSpider (2013-05-17 20:24:49)
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
Reboot the host if you have upgraded the linux package (the Linux kernel) earlier today. Always do that.
I did rebooted several times today - still no go.
Then USB devices will start working again. Because I bet they don't work on the host either, let alone VirtualBox... So reboot the host and try again.
I did it once again for the peace of mind. Still no go. USB devices on Host machine work fine.
[andrzejl@wishmacer ~]$ lsusb
Bus 004 Device 002: ID 13fd:1040 Initio Corporation
Bus 004 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 004 Device 004: ID 13fd:1040 Initio Corporation
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 005: ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
Bus 004 Device 006: ID 1bcf:053a Sunplus Innovation Technology Inc. Targa Silvercrest OMC807-C optische Funkmaus
Bus 004 Device 007: ID 13fd:1040 Initio Corporation
[andrzejl@wishmacer ~]$
Oh, and remove any weird VirtualBox stuff from ~/.bashrc or ~/.xinitrc. You don't need that. No one did. Ever.
No weird stuff added:
[andrzejl@wishmacer ~]$ cat ~/.bashrc
# .bashrc
# export http_proxy='http://192.168.0.1:3129/'
# export $(dbus-launch)
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fialias konq='konqueror --profile filemanagement&'
# export GTK2_RC_FILES=$HOME/.gtkrc-2.0
export INTEL_BATCH=1
[andrzejl@wishmacer ~]$ cat ~/.xinitc
cat: /home/andrzejl/.xinitc: No such file or directory
[andrzejl@wishmacer ~]$
After physically plugging in the USB device you need to also "plug in" the device in VirtualBox (from Devices), or create a USB filter that "plugs it in" automatically. Make sure that the USB support checkbox from the VM's settings is checked.
There are no devices to be "Plugged in" in the VirtualBox. That's the problem... Host is not sharing USB devices with Guest. Hence the error message...
Regards and thanks for all the suggestions.
Andrzej
Last edited by AndrzejL (2013-04-04 22:15:24)
The worst thing about censorship is ██████ ██ ████ ████████████ and ██████ ███████ ███ ███████████.
Offline
Right click the VM - USB - Enable USB controller. Maybe you have it checked off.
Are you in the "storage" group? Post the output of:
$ groups andrzejl
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
Right click the VM - USB - Enable USB controller. Maybe you have it checked off.
Are you in the "storage" group? Post the output of:
$ groups andrzejl
It worked before - now it's not I changed nothing - just kept upgrading.
And here is the output You asked for:
[andrzejl@wishmacer ~]$ groups andrzejl
wheel optical storage power users andrzejl wireshark vboxusers
[andrzejl@wishmacer ~]$
Also there is no "VM - USB - Enable USB controller." click.
Regards. Thanks for Your replies and ideas.
Andrzej
The worst thing about censorship is ██████ ██ ████ ████████████ and ██████ ███████ ███ ███████████.
Offline
Sorry, I skipped a step by mistake... I meant to right click the VM - Settings - USB - Enable USB Controller, but yours is already checked by the looks of this screenshot: http://postimg.org/image/5kjhc7uh9/
This is odd... Which OS are you running as guest? Because you may need to install the Guest Additions (on the guest OS, obviously, it's why they're called guest additions). And, umm, "Test"? Test as in what? If it's a Windows guest then you probably shouldn't select "Other" as type.
Anyway. USB devices should at least show up in the list (http://postimg.org/image/g9x64h6a5/). You're saying that they show up on the host, but VirtualBox doesn't see them. Ok... I would probably remove VirtualBox entirely, reboot, reinstall VirtualBox and the extension pack following the wiki, and reboot again - speaking of which, please don't use anything else but 'makepkg -s' to compile the extension pack. If you're going to use the AUR, use it properly. You can install VirtualBox itself from the official repositories (using just pacman). The AUR version ("virtualbox-bin") is compiled by Oracle, kept mainly for comparison against the one in the official repositories.
Last edited by DSpider (2013-04-05 22:39:26)
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