Fix grayed-out USB devices *without* being in vboxusers?

Discussions related to using VirtualBox on Linux hosts.
hans.meine
Posts: 7
Joined: 7. May 2009, 13:17
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Re: Fix grayed-out USB devices *without* being in vboxusers?

Post by hans.meine »

Sasquatch wrote:I think the TS can already use VB, else he won't post here with questions on how to get USB working.
Exactly. AFAICS, it is sufficient to modify the group/owner or permissions of all VirtualBox-installed files to run it, with the noted exception of /dev/vboxdrv.

BTW: The latters does not seem to react to my GROUP/MODE fiddlings in /etc/udev/rules.d/60-virtualbox.rules, so I resorted to a chmod in a boot-time script. :?

With USB now, I had additional problems because it does not seem to be enough to just give myself r/w permissions on the relevant /proc/bus/usb entries.

Oh, and BTW: Since I am member of multiple groups already, I could of course just chgrp everything to one of these groups. However, this would defeat the purpose of these groups, and as I tried to make clear above, my question is exactly which other files except the ones I described could need such treatment, since I already have permissions on all relevant files I know of. (AFAICS, it should not matter whether I have permissions because of being the right user, the right group - be it vboxusers or any other - or because the files simply have mode 666/777).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Fix grayed-out USB devices *without* being in vboxusers?

Post by Sasquatch »

Well, I have installed Ubuntu Jaunty (9.04) on both my PC and laptop, and I didn't add any lines for USB in my /etc/fstab file and could use USB without issues. Checking /etc/udev/rules.d/10-vboxdrv.rules, I see two lines that you might need to change. Note that I run the latest version, 2.2.2.

Code: Select all

SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"
So instead of having vboxusers here, you can use a different group. That should have been said here before IIRC. Or at least a different topic.
Good luck with this.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
hans.meine
Posts: 7
Joined: 7. May 2009, 13:17
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Re: Fix grayed-out USB devices *without* being in vboxusers?

Post by hans.meine »

Sasquatch wrote:Well, I have installed Ubuntu Jaunty (9.04) on both my PC and laptop, and I didn't add any lines for USB in my /etc/fstab file and could use USB without issues.
Same here. AFAICS, this is what is called a "newer linux system" in the docs.
Sasquatch wrote:Checking /etc/udev/rules.d/10-vboxdrv.rules, I see two lines that you might need to change. Note that I run the latest version, 2.2.2.

Code: Select all

SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"
So instead of having vboxusers here, you can use a different group. That should have been said here before IIRC. Or at least a different topic.
Good luck with this.
Yeah, but as I wrote above:
hans.meine wrote:... with the noted exception of /dev/vboxdrv.

BTW: The latters does not seem to react to my GROUP/MODE fiddlings in /etc/udev/rules.d/60-virtualbox.rules, ...
IOW, I tried changing GROUP and MODE, but apparently that was overwritten by the module somehow. Anyhow (even if I made a mistake or it was fixed in a newer version), /dev/vboxdrv is not the problem, since I have no problems with general VM usage at all.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Fix grayed-out USB devices *without* being in vboxusers?

Post by Sasquatch »

Wasn't there a topic or post here that mentioned something of adding a new rule in that folder that supersedes the old rules and permissions? It was the rules I posted, in a new file called 11-vboxdrv.rules or something.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply