LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-12-2009, 09:11 PM   #1
Domine
Member
 
Registered: Nov 2005
Posts: 31

Rep: Reputation: 17
Slackware13 64, Virtualbox, USB (again)


Hello people,
first to explain why i start another thread on the topic - no USB working in VirtualBox. Devices recognized but not available. So i have read most of the threads on the topic here and even on other places on the net. But i still do not have solution to the problem. My configuration is - Slackware13_64 plus VirtualBox and Slackware13_32 in it.

What i did until now:

1.Added myself to groups:vboxusers,plugdev - Not working

2.Edit rc.S - Not working.
Adding "-o devgid=83,devmode=0644" to the mount command changes the mode of /proc/bus/usb to root,plugdev. But when i start VBox and inside LILO loads the mouse and keyboard die and i cant do anything except reboot. When i remove devgid from the mount command the mouse and keyboard are ok but then usb is not accessible again.

3.Edit fstab - Not working.
Basically the same story as with rc.S.devgid halts my input. Whatever i put in devgid is the same result.

4.No need to edit the udev rules they dont change the mode to other than 664.i saw that on some systems some of the udev rules change the mode to 646 but slackware is not of them

I do not know what else i might try.
Please help

Last edited by Domine; 11-12-2009 at 09:50 PM.
 
Old 11-12-2009, 09:32 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Since this is a new thread you should not assume that people have read the old thread, at the very least you need to supply a link to it. Your post does not even say what your problem is.
Quote:
Not working
What is not working?

Evo2.
 
Old 11-12-2009, 09:48 PM   #3
Domine
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 17
Hello again,
i am sorry. I am frustrated
The problem is that USB in VirtualBox is not working. It shows the devices but they are not available. As i understood the problem is the permissions of /proc/bus/usb. There are several solutions posted on this site (http://www.linuxquestions.org/questi...virtualbox+usb).
But they are not working for me as explained in my previous post.
 
Old 11-12-2009, 09:54 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by Domine View Post
The problem is that USB in VirtualBox is not working.
Ohh, I see. Sorry I can't help, I only use the free version of VirtualBox, which last time I checked does not provide usb access.

Evo2.
 
Old 11-12-2009, 11:01 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
The post which helped me get USB devices working in VirtualBox was this one. I was lazy and just re-booted rather than trying to remount anything (that way I could get more coffee while I was waiting). But when I started VirtualBox again after the re-boot I could access my memory sticks and my iPhone.
 
Old 11-12-2009, 11:06 PM   #6
Domine
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 17
Hello gilead,
im glad you solved the problem. But what exactly did you do? I have read the thread and tried many things but nothing seems to work. When i use the DEVGID in mount or FSTAB the mouse and keyboard die in host and in guest.
Thanks
 
Old 11-12-2009, 11:18 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
It was the /etc/fstab entries that did it for me:
Code:
$ grep usbfs /etc/fstab
none  /sys/bus/usb/drivers  usbfs  devgid=83,devmode=664  0   0
none  /proc/bus/usb         usbfs  devgid=83,devmode=664  0   0

$ grep 83 /etc/group
plugdev:!:83:root,steve
Are there any errors in /var/log/messages or /var/log/syslog about your keyboard/mouse?
 
Old 11-12-2009, 11:33 PM   #8
Domine
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 17
Hi gilead,
Ok i tried and this approach with both lines in fstab. No luck. First there was a complain that i shouldnt have mounted that way and then the same. Mouse and keyboard die. No complains in /var/log/messages or syslog
Im getting really annoyed by that thing. I think is something in the udev rule for Vbox. But i dont know much about that.
But obviously is some permission thing.
 
Old 11-13-2009, 12:16 AM   #9
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 906

Rep: Reputation: 86
Hears what worked for me using Slack64-C host / WinXP 32 client

Add to /etc/rc.d/rc.S:
" /sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=10,devmode=0664 "

Add yourself in the groups:
wheel
vboxusers

In VirtualBox Control

Set Network to
" Bridged Adaptor "

Check both boxes in the USB section.

Last edited by slackass; 11-13-2009 at 12:32 AM. Reason: oooooops!
 
Old 11-13-2009, 01:10 AM   #10
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
Have you tried running the script posted in this LQ post?
 
Old 11-13-2009, 01:25 AM   #11
Domine
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 17
To catkin,
yes i did in fact It gave me all test ok with one exception which i couldnt get. Here is the outcome:
VirtualBox PUEL version found. OK.
WARNING: VirtualBox non-PUEL version also found. ???
Name of user used to run VirtualBox: domine
This computer has udev rules file for VirtualBox, /etc/udev/rules.d/10-vboxdrv.rules. OK.
No fstab usbfs line found. udev rules are effective.
Group name used for VirtualBox USB access is vboxusers.
Group vboxusers found in /etc/group. OK.
Here is the group line from /etc/group:
vboxusers:x:102:domine
User domine is in group vboxusers/102. OK.
Access mode used for VirtualBox USB access is 0664.
Access mode (0664) includes 'group write'. OK.
Kernel module vboxdrv loaded. OK.
All tests passed. OK. :-)

The output is strange as i didnt install other versions of VB.

Im reading now about udev rules. Maybe if i make a special device node for my webcam on which im the owner it will solve the problem.
If any ideas i will be happy to try out
Thanks for the help
 
Old 11-13-2009, 01:42 AM   #12
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
If there is a non-PUEL version of VirtualBox and that is the one that is being run then it would be enough to explain why you cannot access USB devices. Suggest you investigate why the script is generating that warning.
 
Old 11-13-2009, 02:11 AM   #13
Domine
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 17
Ok. I did "slocate -u" and then search with "slocate -i virtualbox". But no additional VB to the one in /opt. Any other idea of how can i search?
Btw some idea why the mouse and keyboard die when i use the devgid?
Thanks
 
Old 11-13-2009, 03:10 AM   #14
Domine
Member
 
Registered: Nov 2005
Posts: 31

Original Poster
Rep: Reputation: 17
Hello again,
i checked the script code of this link http://www.linuxquestions.org/questi...39#post3727439. The check for RPM gives the error flag=YES. But rpm is not working on my system. I dont use rpm. But i did the check manually "rpm -qi VirtualBox" gives error that some libnss3 not found. Hence error in the logic of the script and not correct findings.
So that is not my problem. The problem is why my mouse and keyboard die when i use devgid in fstab or mount. I just cant figure that out. It doesnt matter which GID i give 102(vboxusers) or 83(plugdev). Its wired dont you think. I never saw somebody else system to have that kind of problem.

I am searching the web for days but no such info found.

Plaese any idea will be appreciated.
 
Old 11-13-2009, 09:30 AM   #15
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 258

Rep: Reputation: 43
As far as i know, installing 'Virtualbox Guest Additions' in guest OS is also required for usb to work.
 
  


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 03:07 PM
[SOLVED] Virtualbox and usb cwwilson721 Slackware 17 10-18-2009 12:21 AM
info: installation of slackware13-dvd.iso entirely from hd (no cd, no usb) vonbiber Slackware - Installation 7 09-07-2009 02:49 AM
USB Scanner help with VirtualBox linubex Mandriva 2 10-02-2007 11:49 PM
USB: Virtualbox - tried everything! adamruss Linux - Software 1 07-27-2007 09:04 PM

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

All times are GMT -5. The time now is 05:26 AM.

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