LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2010, 09:21 AM   #1
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: KaOS
Posts: 831

Rep: Reputation: 96
virtualbox usb on 13.1


I downgraded a computer a couple of weeks ago from -current to 13.1. At that point in time the USB support in my Virtualbox stopped working. Since then I have installed Virtualbox on my wife's laptop, which also runs 13.1, and the USB support doesn't work there either. So I tried it on yet another 13.1 box that I have lying around... no USB support. Then I upgraded the latter box to -current... and USB works!

Given that sequence of events, I'm pretty sure this is a Slackware 13.1 problem rather than a Virtualbox problem. Does anyone have any ideas on what might be causing this?
 
Old 12-29-2010, 09:34 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
This LQ thread describes a possible workaround by renaming a udev rule.
 
Old 12-29-2010, 04:02 PM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
Code:
export VBOX_USB=usbfs
Before starting Vbox might work too.

It's all related to usbfs. In current the block of code that mounts this (in rc.S) was altered to only mount usbfs if it is found in fstab.

The manual mounting of usbfs shouldn't be required in the majority of cases so backporting those changes from current to 13.1 should be safe enough.

As catkin mentions, re-ordering the udev rules may let vbox set the permissions to it's liking but it may still be subject to a race condition in some cases.

This (rather long) thread has more details of the issue. http://www.virtualbox.org/ticket/3394
 
1 members found this post helpful.
Old 12-29-2010, 10:51 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
@mRgOBLIN: thanks for the link. What's the race condition?
 
Old 12-29-2010, 11:26 PM   #5
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 105Reputation: 105
USB support fully works if VirtualBox is launched as root. You'll have to create a new virtual machine, but you should be able to use an existing virtual HD for it. This is the only way I've been able to make it work
 
Old 12-29-2010, 11:54 PM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
Well if I read it correctly...

Vbox tries to set up the permissions correctly with it's own udev rule but the mounting of usbfs (or some other subsequent udev rule) may override these.
 
Old 12-30-2010, 03:01 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by mRgOBLIN View Post
Well if I read it correctly...

Vbox tries to set up the permissions correctly with it's own udev rule but the mounting of usbfs (or some other subsequent udev rule) may override these.
It's something like that (it is hard to discern a consistent pattern in the symptoms) but I found that moving the VirtualBox to the end of the lexical ordering and re-initialising always fixes the problem as does having an fstab line like none /proc/bus/usb usbfs devgid=765,devmode=664 0 0 where 765 is the gid for vboxusers (I haven't explored group-by-name in fstab). AFAIK there is no race condition.
 
Old 12-31-2010, 03:56 PM   #8
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: KaOS
Posts: 831

Original Poster
Rep: Reputation: 96
Quote:
Originally Posted by catkin View Post
This LQ thread describes a possible workaround by renaming a udev rule.
Got it working using those instructions. I'm glad the problem is fixed for -current (and therefore the next release), because fixes like that always feel kind of "hacky" to me. Thanks very much for the link!
 
Old 12-31-2010, 04:05 PM   #9
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by catkin View Post
It's something like that (it is hard to discern a consistent pattern in the symptoms) but I found that moving the VirtualBox to the end of the lexical ordering and re-initialising always fixes the problem as does having an fstab line like none /proc/bus/usb usbfs devgid=765,devmode=664 0 0 where 765 is the gid for vboxusers (I haven't explored group-by-name in fstab). AFAIK there is no race condition.
Yes that does make sense.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB support for virtualbox Brian H Linux - Newbie 10 02-12-2010 02:07 PM
[SOLVED] Slackware13 64, Virtualbox, USB (again) Domine Slackware 27 11-15-2009 01:17 AM
[SOLVED] Virtualbox and usb cwwilson721 Slackware 17 10-17-2009 11:21 PM
VirtualBox; USB; Permissions. Peacepunk Slackware 3 02-03-2009 07:42 PM
USB: Virtualbox - tried everything! adamruss Linux - Software 1 07-27-2007 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration