LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-21-2011, 11:29 AM   #1
PaulSF
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Unhappy Cannot detect USB devices on EHCI host controller(2) on VirtualBox 4.0.4 on Fedora 13


Hi

I cannot detect any USB devices such as flash disks on EHCI controller(2) with VirtualBox 4.0.4 on a laptop running Fedora 13 with a Windows XP virtual machine. I can detect my Kensington Pocket mouse and built in camera which are attached to EHCI controller(1). Fedora 13 detects that all of these devices are attached. I am using the PUEL version of virtualbox and am a member of the vboxusers group. I have edited my /etc/fstab file to include the following statement:
none /dev/bus/usb usbfs devgid=525,devmode=664 0 0.

I would greatly appreciate any suggestions. Thanks

PaulSF
 
Old 03-21-2011, 03:03 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
If the host can detect the usb then the VM ought to be able to use the translation to use them. Just for grins run vm in root.
 
1 members found this post helpful.
Old 03-22-2011, 09:51 AM   #3
PaulSF
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Cannot detect USB devices on EHCI host Controller(2)

Hi Jefro,

I appreciate your suggestion and quick reply. I logged in as root and created a Windows XP VM. I plugged in the USB drive and it was recognized. A local linux expert suggested looking at permissions in /etc/udev/rules.d/10-vboxdrv.rules. Here is the content of that file:

KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", ACTION=="add", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major
$minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCr
eateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --r
emove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBo
xCreateUSBNode.sh --remove $major $minor"

It appears that the owner and group are root instead of vboxusers although it seems to also be running a shell to create a USBNode. What should I try next?

PaulSF
 
Old 03-22-2011, 02:43 PM   #4
PaulSF
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy More Info on failure to detect USB devices

Hi,

I have some further information. USB devices are detected in VirtualBox if you log in as root or as a regular user but only if the computer is shutdown and the devices are inserted before the computer is rebooted. If USB flash drives are inserted when the Fedora 13 OS is running, Fedora will recognize them. However VirtualBox does not see them and it does not matter if you are root or a regular user.

PaulSF
 
Old 03-30-2011, 10:57 AM   #5
PaulSF
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb Problem solved!!

I have solved my problem by carefully reading the Virtual Box 4.0 install notes and realizing that in previous version of virtual box it was necessary to add a line to /etc/fstab which read

none /dev/bus/usb usbfs devgid=525,devmode=664 0 0.

However version 4.0 no longer uses usbfs. When I commented the above line out in /etc/fstab the problem was solved and I can now have virtual box recognize and mount usb drives.

PaulSF
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot use any USB devices in VirtualBox davidguygc Linux - Hardware 7 06-14-2010 08:36 AM
[SOLVED] Virtualbox 2.2.4 + Slackware 12.2 = no usb devices Slackovado Slackware 6 03-14-2010 03:38 PM
LXer: VirtualBox 2: How To Pass Through USB Devices To Guests On An Ubuntu 8.10 Host LXer Syndicated Linux News 0 04-05-2009 07:41 AM
USB 2.0 drive hangs when put on the same controller with USB 1.1 devices lpwevers Linux - Hardware 0 01-25-2009 01:41 PM
enabled usb devices for virtualbox in opensuse 10.3 dissident_goodchild Linux - Software 4 12-05-2007 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:52 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
Open Source Consulting | Domain Registration