Fedora Linux Support Community & Resources Center
  #1  
Old 27th July 2007, 07:08 PM
lemaymd Offline
Registered User
 
Join Date: Jun 2006
Posts: 19
VirtualBox USB permissions

Hello,

I've been using VirtualBox on Fedora 7 running a Windows XP guest quite successfully for a little while now. However, I can't get any USB devices to connect to it unless I manually do a chmod -R 777 /proc/bus/usb beforehand. Otherwise, I get the following:

Not permitted to open the USB device, check usbfs options.

Result Code: 0x80004005
Component: Console
Interface: IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

I've tried modifying /etc/udev/rules.d/50-udev.rules so it contains the following line:

Code:
ACTION=="add", SUBSYSTEM=="usb_device", \
        PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $$
{K%%%%.*} $${K#*.}'", \
        NAME="%c", MODE="0666"
in place of the following:

Code:
ACTION=="add", SUBSYSTEM=="usb_device", \
        PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $$
{K%%%%.*} $${K#*.}'", \
        NAME="%c", MODE="0644"
No success, unfortunately. I also added the following to /etc/fstab:

Code:
none /proc/bus/usb usbfs devgid=508,devmode=664 0 0
and added my user to the vboxusers group, but that didn't help either.
Reply With Quote
  #2  
Old 27th July 2007, 07:45 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,048
www.virtual-box.com - need free version
read forums - documetation, help
www.windows.com
is virtual guest fully updated with SP2 +

yum update --enablerepo-updates-testing
Needs lot of bug fixes.

Plug the usb into usb port 1 or 2 before booting.

read many threads on usb not mounting.

wait for more kernel with usb fixes.

That's the status in a nutshell.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 10th August 2007, 11:14 PM
b_chris Offline
Registered User
 
Join Date: Aug 2007
Posts: 27
You should Log your USB problems with VirtualBox, I'm having the same problem.... Damn it....

regards.
Reply With Quote
  #4  
Old 15th August 2007, 10:47 PM
zaog Offline
Registered User
 
Join Date: Aug 2007
Location: Italy
Age: 49
Posts: 28
Hi,

problem solved today (I hope can help you, too).

Since changing /etc/fstab like many people and user's manual suggest to do don't solve the problem, I tried this way:

1 - create a new group called "usb";
2 - locate file usbfs: in my case is /sys/bus/usb/drivers (I suggest to find the file with a usb device inserted;
3 - modify file /etc/fstab inserting a line containing the right path and the number corresponding the "usb" group :
none /sys/bus/usb/drivers usbfs devgid=503,devmode=664 0 0
4 - command mount -a;
5 - start VB and try...;

I can't believe it, but now it works!!!

Please let me know if this way effectively fix the problem or I drunk too much!

Bye!
__________________
Regards,
mario
Registered user: #449152
Reply With Quote
  #5  
Old 19th August 2007, 02:02 AM
b_chris Offline
Registered User
 
Join Date: Aug 2007
Posts: 27
Hey zaog,

Seems to work well, the only two things I had to do were assign myself to the newly created usb group and reboot.

Thanks for that....

regards.
Reply With Quote
  #6  
Old 21st December 2007, 12:46 AM
jaevans Offline
Registered User
 
Join Date: Nov 2005
Posts: 7
Works great on two installations here. By the way, if anyone finds an easy process for "fixing" virtualbox after a kernel upgrade, I'd appreciate the info.

john
Reply With Quote
  #7  
Old 28th January 2008, 01:53 AM
BKJ1 Offline
Registered User
 
Join Date: Sep 2007
Posts: 89
For fixing virtualbox after kernel upgrade simply run:

Code:
sudo /etc/init.d/vboxdrv setup
Reply With Quote
  #8  
Old 28th January 2008, 02:39 AM
jaevans Offline
Registered User
 
Join Date: Nov 2005
Posts: 7
Quote:
Originally Posted by BKJ1
For fixing virtualbox after kernel upgrade simply run:

Code:
sudo /etc/init.d/vboxdrv setup
Indeed, this worked great and I had located this weeks ago, but I am not sure why I didn't post the correct solution. Thanks for pointing this out to me.

john
Reply With Quote
  #9  
Old 23rd May 2008, 10:29 PM
barf Offline
Registered User
 
Join Date: Dec 2004
Location: UK
Age: 59
Posts: 274
Yes this solution allows you to attach usb devices to guest system. Unfortunately once you do they become permanently unavailable to the host system (at least in the case of my usb printer) until you reboot the host. Need a better solution.
__________________
Stop making excuses, start making progress.
Reply With Quote
  #10  
Old 27th May 2008, 10:14 PM
citojaso Offline
Registered User
 
Join Date: Oct 2007
Location: Northwest Arkansas
Age: 66
Posts: 55
Thanks zaog, for the short lesson....it works ! Only thing i would like to add is I had to re-boot my host machine after adding your fix. And barf, after reading the VirtualBox User Manual i found paragraph 3.7.6.2 which states that V'Box can only proxy to virtual machines USB devices which are not claimed by a Linux host USB driver.
Reply With Quote
  #11  
Old 27th May 2008, 10:23 PM
citojaso Offline
Registered User
 
Join Date: Oct 2007
Location: Northwest Arkansas
Age: 66
Posts: 55
Thanks zaog, for the short lesson....it works ! Only thing i would like to add is I had to re-boot my host machine after adding your fix. And barf, after reading the VirtualBox User Manual i found paragraph 3.7.6.2 which states that V'Box can only proxy to virtual machines USB devices which are not claimed by a Linux host USB driver.
If you are using V'Box to run Windows you should stop the usb device using one of several ways available in Windows. This will make the device available to your host machine.
Reply With Quote
  #12  
Old 28th May 2008, 09:47 AM
barf Offline
Registered User
 
Join Date: Dec 2004
Location: UK
Age: 59
Posts: 274
Quote:
Originally Posted by citojaso
And barf, after reading the VirtualBox User Manual i found paragraph 3.7.6.2 which states that V'Box can only proxy to virtual machines USB devices which are not claimed by a Linux host USB driver.
Yeah, read that myself, what the f* does it actually mean.
Quote:
If you are using V'Box to run Windows you should stop the usb device using one of several ways available in Windows. This will make the device available to your host machine.
Mate, I've shut down the whole VM and it still wont let CUPS print anything without a reboot.
__________________
Stop making excuses, start making progress.
Reply With Quote
  #13  
Old 31st May 2008, 12:27 AM
yelserp87 Offline
Registered User
 
Join Date: Apr 2008
Posts: 35
Quote:
Originally Posted by zaog
Hi,

problem solved today (I hope can help you, too).

Since changing /etc/fstab like many people and user's manual suggest to do don't solve the problem, I tried this way:

1 - create a new group called "usb";
2 - locate file usbfs: in my case is /sys/bus/usb/drivers (I suggest to find the file with a usb device inserted;
3 - modify file /etc/fstab inserting a line containing the right path and the number corresponding the "usb" group :
none /sys/bus/usb/drivers usbfs devgid=503,devmode=664 0 0
4 - command mount -a;
5 - start VB and try...;

I can't believe it, but now it works!!!

Please let me know if this way effectively fix the problem or I drunk too much!

Bye!
Bah. I cant get this to work. I am running Fed 8 and its still a no go. I tried it once using "none /proc/bus/usb usbfs devgid=501,devmode=664 0 0" and it worked once...but now it does not work anymore. I have tried to do it over again but its still a no go. Any help?
Reply With Quote
  #14  
Old 15th June 2008, 09:13 AM
marklf Offline
Registered User
 
Join Date: Feb 2007
Location: China
Posts: 128
Thanks, I works for me!
But I can not use my USB pointer on the host of F8 any more, it is only availble in VirtualBox. My USB storage dosen't come up either.
Anything I can do? Thanks.
Reply With Quote
  #15  
Old 15th June 2008, 08:05 PM
yelserp87 Offline
Registered User
 
Join Date: Apr 2008
Posts: 35
I was able to resolve my issue with usb. The only thing I can't get to work is usb externall hdd.
Reply With Quote
Reply

Tags
permissions, usb, virtualbox

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
virtualbox or virtualbox ose manuleka Using Fedora 8 11th June 2009 08:51 PM
virtualbox and 3D bee Using Fedora 5 4th February 2009 08:59 PM
VirtualBox help antiskeptic Using Fedora 15 30th March 2008 06:03 AM
[SOLVED] VirtualBox (and maybe others) GUI ADW Using Fedora 7 29th August 2007 04:33 PM
httpd permissions, hda1 User permissions, Cake? Fault Using Fedora 7 1st August 2006 07:12 PM


Current GMT-time: 10:21 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Tubas Travel Photos - Dakoro - Burutu Photos on Instagram