Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VirtualBox and USB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mqduck
n00b
n00b


Joined: 04 Apr 2006
Posts: 47

PostPosted: Thu Dec 06, 2012 9:39 am    Post subject: VirtualBox and USB Reply with quote

I followed the instructions at on wiki.gentoo.org for setting up VirtualBox and it's mostly working fine, except it's not recognizing USB devices. Some poking around on Google lead me to believe that a directory called /dev/vboxusb/ should exist. But it doesn't. I can't even figure out what piece of software is supposed to get it there, so I'm kind of at a loss. All the kernel modules are loaded (vboxnetadp, vboxnetflt and vboxdrvl; I even tried loading vboxpci for the hell of it). Any advice?
_________________
Property is theft.
Back to top
View user's profile Send private message
MacGyver031
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2004
Posts: 140
Location: Ilavalai, Sri Lanka

PostPosted: Thu Dec 06, 2012 10:08 am    Post subject: Reply with quote

Hi
if you have
Code:
emerge virtualbox
check if
Code:
emerge -pv virtualbox-extpack-oracle
is emerged too.
if you have
Code:
emerge virutalbox-bin
then you do not require extpack.

BR.
_________________
Sincerely your
Joanand K.

MacBook Pro 5.1: 2.4GHz Core2 Duo, 4096MB, 500GB, NVidia 9400/9600 M GT
Gentoo, Kernel 3.4.9, XOrg, Fluxbox.
Back to top
View user's profile Send private message
mqduck
n00b
n00b


Joined: 04 Apr 2006
Posts: 47

PostPosted: Thu Dec 06, 2012 8:47 pm    Post subject: Reply with quote

I have app-emulation/virtualbox installed, and it pulled in virtualbox-extpack-oracle. Someone on IRC on #vbox told me that /dev/vboxusb/ is created by a udev rule, /etc/udev/rules.d/10-vboxdrv.rules "if you are using a standard installation". I don't have that file either.
_________________
Property is theft.
Back to top
View user's profile Send private message
MacGyver031
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2004
Posts: 140
Location: Ilavalai, Sri Lanka

PostPosted: Fri Dec 07, 2012 10:37 am    Post subject: Reply with quote

What is your virtualbox-version?

I have two boxes which create /dev/vboxusb without udev-rules.

You have inserted vboxdrv module?? What does dmesg show?
Quote:

[14264.773912] vboxdrv: Found 2 processor cores.
[14264.774044] vboxdrv: fAsync=0 offMin=0x1f8 offMax=0x1a55
[14264.774097] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
[14264.774099] vboxdrv: Successfully loaded version 4.1.22 (interface 0x00190000).

_________________
Sincerely your
Joanand K.

MacBook Pro 5.1: 2.4GHz Core2 Duo, 4096MB, 500GB, NVidia 9400/9600 M GT
Gentoo, Kernel 3.4.9, XOrg, Fluxbox.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Dec 07, 2012 12:36 pm    Post subject: Reply with quote

mqduck wrote:
Some poking around on Google lead me to believe that a directory called /dev/vboxusb/ should exist.


I encountered a strange situation installing virtualbox-bin on my laptop. I had errors when udev started related to virtualbox and mknod.

I checked the /lib64/udev/rules.d/10-virtualbox.rules file and it was different than the one on my desktop installation.

The laptop's rule had RUN="%UDEVDIR%/VBoxCreateUSBNode.sh and the desktop's rule has RUN="/lib/udev/VBoxCreateUSBNode.sh.

So I modified all the laptop's rules to /lib/udev and, ran
Code:
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
then it worked fine :wink:

I have no explanation for the discrepancies though :(
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
mqduck
n00b
n00b


Joined: 04 Apr 2006
Posts: 47

PostPosted: Mon Dec 10, 2012 9:02 pm    Post subject: Reply with quote

Success! So it turns out 10-vboxdrv.rules lives in /lib64, not /etc. Modifying it like BillWho did to point to the absolute directory, instead of to the I guess undefined %UDEVDIR%, fixed the problem. Thanks, guys.

Any idea where %UDEVDIR% should be defined? Perhaps a bug should be filed?
_________________
Property is theft.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum