View previous topic :: View next topic |
Author |
Message |
mqduck n00b
Joined: 04 Apr 2006 Posts: 63
|
Posted: Thu Dec 06, 2012 9:39 am Post subject: VirtualBox and USB |
|
|
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 |
|
|
MacGyver031 Tux's lil' helper
Joined: 11 Jul 2004 Posts: 141 Location: Ilavalai, Sri Lanka
|
Posted: Thu Dec 06, 2012 10:08 am Post subject: |
|
|
Hi
if you have 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 |
|
|
mqduck n00b
Joined: 04 Apr 2006 Posts: 63
|
Posted: Thu Dec 06, 2012 8:47 pm Post subject: |
|
|
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 |
|
|
MacGyver031 Tux's lil' helper
Joined: 11 Jul 2004 Posts: 141 Location: Ilavalai, Sri Lanka
|
Posted: Fri Dec 07, 2012 10:37 am Post subject: |
|
|
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 |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Fri Dec 07, 2012 12:36 pm Post subject: |
|
|
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
I have no explanation for the discrepancies though _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
mqduck n00b
Joined: 04 Apr 2006 Posts: 63
|
Posted: Mon Dec 10, 2012 9:02 pm Post subject: |
|
|
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 |
|
|
|