USB problems

Discussions related to using VirtualBox on Linux hosts.

USB problems

Postby vagos_v » 19. May 2010, 22:44

Hi all,

I've been trying to get VirtualBox to see my USB key but to no avail so far.

I am running Windows XP SP2 on VirtualBox 3.2.0 on Ubuntu 10.04. Here are my USB devices (the one I'm trying to get the guest to see is the "USBest Technology" one):

Code: Select all   Expand viewCollapse view
$ VBoxManage list usbhost
Oracle VM VirtualBox Command Line Management Interface Version 3.2.0
(C) 2005-2010 Oracle Corporation
All rights reserved.

Host USB Devices:

UUID:               dc7a76e5-1211-4113-85c0-3c5cf5def65b
VendorId:           0x044e (044E)
ProductId:          0x300d (300D)
Revision:           25.21 (2521)
Manufacturer:       ALPS
Product:            UGX
SerialNumber:       015c705a
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6.2//device:/dev/bus/usb/001/007
Current State:      Unavailable

UUID:               2ffaac99-9171-4cff-a635-c9ab65a0bc7b
VendorId:           0x054c (054C)
ProductId:          0x02d5 (02D5)
Revision:           0.6 (0006)
Product:            Sony VAIO USB Internal Optical Drive
SerialNumber:       0013A9FF4F61
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5//device:/dev/bus/usb/001/002
Current State:      Unavailable

UUID:               e38b7a4d-886b-4f2f-8699-188e8470e7f8
VendorId:           0x1307 (1307)
ProductId:          0x0165 (0165)
Revision:           1.0 (0100)
Manufacturer:       USBest Technology
Product:            USB Mass Storage Device
SerialNumber:       08060455c7c141
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-2//device:/dev/bus/usb/001/014
Current State:      Unavailable

UUID:               eb71dd65-1435-46b5-b19b-ffc1296087c1
VendorId:           0x147e (147E)
ProductId:          0x2016 (2016)
Revision:           0.1 (0001)
Manufacturer:       TouchStrip       
Product:            Fingerprint Sensor   
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1//device:/dev/bus/usb/005/002
Current State:      Unavailable


And the filters (and VM info):

Code: Select all   Expand viewCollapse view
$ VBoxManage showvminfo xp-vm
Oracle VM VirtualBox Command Line Management Interface Version 3.2.0
(C) 2005-2010 Oracle Corporation
All rights reserved.

Name:            xp-vm
Guest OS:        Windows XP
UUID:            d8ab77df-4c70-4663-ad88-39e401fcf7fe
Config file:     /home/evangelos/.VirtualBox/Machines/xp-vm/xp-vm.xml
Hardware UUID:   d8ab77df-4c70-4663-ad88-39e401fcf7fe
Memory size:     512MB
Page Fusion:     off
VRAM size:       16MB
HPET:            off
Number of CPUs:  1
Synthetic Cpu:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
PAE:             off
Time offset:     0 ms
RTC:             local time
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
State:           running (since 2010-05-19T20:28:42.039000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0):            IDE Controller
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Name (1):            Floppy Controller
Storage Controller Type (1):            I82078
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  1
Storage Controller Port Count (1):      1
IDE Controller (0, 0): /home/evangelos/.VirtualBox/HardDisks/NewHardDisk1.vdi (UUID: ad14b021-be00-4da7-951f-fe934973b1e8)
IDE Controller (1, 0): /usr/share/virtualbox/VBoxGuestAdditions.iso (UUID: 88b2a3f9-2dfa-4045-a7e1-8050f12f9f44)
Floppy Controller (0, 0): Empty
NIC 1:           MAC: 08002733C7EC, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0
NIC 1 Settings:  MTU: 0, Socket( send: 64, receive: 64), TCP Window( send:64, receive: 64)
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
Audio:           enabled (Driver: PulseAudio, Controller: AC97)
Clipboard Mode:  Bidirectional
Video mode:      640x480x32
VRDP:            disabled
USB:             enabled

USB Device Filters:

Index:            0
Active:           yes
Name:             USBest Technology USB Mass Storage Device [0100]
VendorId:         1307
ProductId:        0165
Revision:         0100
Manufacturer:     USBest Technology
Product:          USB Mass Storage Device
Remote:           no
Serial Number:    08060455c7c141

Index:            1
Active:           yes
Name:             Transced
VendorId:         1307
ProductId:        0165
Revision:         
Manufacturer:     Transcend Information, Inc.
Product:          2GB/4GB Flash Drive
Remote:           
Serial Number:   

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Shared folders: 

Name: 'xp-vm', Host path: '/home/evangelos/xp-vm' (machine mapping), writable

VRDP Connection:    not active
Clients so far:     0

Guest:

Configured memory balloon size:      0 MB


Any help would be greatly appreciated!

Thanks,

Evan
vagos_v
 
Posts: 1
Joined: 19. May 2010, 22:35
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP

Re: USB problems

Postby lonewohlf42 » 20. May 2010, 01:02

I had the same problem. It took me a long time to figure it out but the solution is simple.
You need to create a group called usb for your user and give it the group ID of 85. Then make yourself a member of that group. You also need to activate the usb devices in the guest setting.
In the guest setting, enable the usb controller then add your devices to your guest.

Feel free to ask for4 more assistance if you need more help.
lonewohlf42
 
Posts: 12
Joined: 20. May 2010, 00:49
Location: Ottawa, Ontario, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP

Re: USB problems

Postby michael » 20. May 2010, 13:44

Actually, adding yourself to the group "vboxusers" and logging out and back in again should do the trick.
michael
Oracle Corporation
 
Posts: 336
Joined: 10. May 2007, 09:46

Re: USB problems

Postby enthalpie » 21. May 2010, 13:51

Hi

I run XP guest on Opensue host with Vb 3.2

since updated to 3.18 and now 3.2 I have lossed udb device

of corse i am in vboxusers

looks like usb devices are'nt available since vb version 3.18 ?
soyez raisonnables, demandez l'impossible
enthalpie
 
Posts: 51
Joined: 4. Sep 2008, 17:09
Location: France, Yerres
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: windows XP

Re: USB problems

Postby lonewohlf42 » 21. May 2010, 16:27

I had the same problem. It took me a long time to figure it out but the solution is simple.
You need to create a group called usb for your user and give it the group ID of 85. Then make yourself a member of that group. You also need to activate the usb devices in the guest setting.
In the guest setting, enable the usb controller then add your devices to your guest.

I just discussed this with another guy and doing the above fixed his problem. This was just yesterday.
Same problem worked with 3.1.8 not 3.2.0.
I was also given the ("you only have to do this or gee that's funny works on mine ") routine, There actually is mention of this in the manual but it is vague and not easy to find.

Try it out.
But Thanks for playing.
lonewohlf42
 
Posts: 12
Joined: 20. May 2010, 00:49
Location: Ottawa, Ontario, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP

Re: USB problems

Postby enthalpie » 21. May 2010, 16:36

Hi

on opensuse ID for group should be above 1000.

I created a group usb but nothing change

I am not sur we have to do something, VB was running fine with usb devices before Version 3.18 !!

regards
soyez raisonnables, demandez l'impossible
enthalpie
 
Posts: 51
Joined: 4. Sep 2008, 17:09
Location: France, Yerres
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: windows XP

Re: USB problems

Postby hank_se » 21. May 2010, 18:28

enthalpie wrote:Hi

on opensuse ID for group should be above 1000.

I created a group usb but nothing change

I am not sur we have to do something, VB was running fine with usb devices before Version 3.18 !!

regards


You're right there's no need to create any extra groups in OpenSUSE, just add your user to the group vboxusers, you can't even start VirtualBox without doing that.
About the usb problem, 3.18 hasn't changed anything as far as I can see, probably you, or someone else, had edited the file /etc/udev/rules.d/10-vboxdrv.rules and now the update overwrote that change. I recently made a summary about this problem over at the OpenSUSE forum, it's the second last post in this thread I think you'll find a solution there:
http://forums.opensuse.org/information-new-users/unreviewed-how-faq/412602-virtual-box-usb-tips-3.html#post2154128
hank_se
 
Posts: 101
Joined: 16. Apr 2009, 11:36
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: windows xp

Re: USB problems

Postby enthalpie » 21. May 2010, 22:07

Hi

Thank's for this very intersting link but ....

my file /etc/udev/rules.d/10-vbox....... is fine :
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"


i don't have a 60-vbox .... file ? is that wrong

nothing is mounted under /proc/bus/usb :

linux-hp:/etc/udev/rules.d # ls -al /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 mai 21 22:07 .
dr-xr-xr-x 6 root root 0 mai 21 22:07 .
.

so ???
soyez raisonnables, demandez l'impossible
enthalpie
 
Posts: 51
Joined: 4. Sep 2008, 17:09
Location: France, Yerres
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: windows XP

Re: USB problems

Postby hank_se » 21. May 2010, 23:09

enthalpie wrote:Hi

Thank's for this very intersting link but ....

my file /etc/udev/rules.d/10-vbox....... is fine :
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"


i don't have a 60-vbox .... file ? is that wrong

nothing is mounted under /proc/bus/usb :

linux-hp:/etc/udev/rules.d # ls -al /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 mai 21 22:07 .
dr-xr-xr-x 6 root root 0 mai 21 22:07 .
.

so ???


You didn't read carefully enough, you missed this part:
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE:="0664"
Notice the ":" in 'MODE:="664"'!
To make the change resistent to VirtualBox upgrades make a copy /etc/udev/rules.d/11-vboxdrv.rules, that's it.
hank_se
 
Posts: 101
Joined: 16. Apr 2009, 11:36
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: windows xp

Re: USB problems

Postby lonewohlf42 » 21. May 2010, 23:21

Did you at least try it.
Go to system>>administration>>users and groups and add the usb group and give it id 85.
The ID for users must be over 1000 but hardware and such, no. Check the ID of other groups and you'll see.
Thanks for playing anyways.
But Thanks for playing.
lonewohlf42
 
Posts: 12
Joined: 20. May 2010, 00:49
Location: Ottawa, Ontario, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP

Re: USB problems

Postby lonewohlf42 » 21. May 2010, 23:25

If your checking the kernel for usb support, yes, you will find every thing OK. But that's because everything is working fine in the Linux host OS. USB on your system is working fine, it's just not being linked with VirtualBox, so it's not available. Even if you are part of the VirtualBox group.

Thanks for playing.
But Thanks for playing.
lonewohlf42
 
Posts: 12
Joined: 20. May 2010, 00:49
Location: Ottawa, Ontario, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP

Re: USB problems

Postby lonewohlf42 » 21. May 2010, 23:39

Just a heads up here for everybody. If you check the change log and manual. Starting with VirtualBox 3.2.0 you don't need guest additions anymore because of the new features Oracle has added to VirtualBox.

Thanks for playing.
But Thanks for playing.
lonewohlf42
 
Posts: 12
Joined: 20. May 2010, 00:49
Location: Ottawa, Ontario, Canada
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP

Re: USB problems

Postby enthalpie » 22. May 2010, 08:27

hank_se wrote:
enthalpie wrote:Hi

Thank's for this very intersting link but ....

my file /etc/udev/rules.d/10-vbox....... is fine :
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"


i don't have a 60-vbox .... file ? is that wrong

so ???


You didn't read carefully enough, you missed this part:
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE:="0664"
Notice the ":" in 'MODE:="664"'!
To make the change resistent to VirtualBox upgrades make a copy /etc/udev/rules.d/11-vboxdrv.rules, that's it.



ALLELUIA !!! you are god ! and i am a DONKEY

now my 10-vboxdrv.rules
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE:="0664"

and usb works !!!

Thanks
soyez raisonnables, demandez l'impossible
enthalpie
 
Posts: 51
Joined: 4. Sep 2008, 17:09
Location: France, Yerres
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: windows XP

Re: USB problems

Postby Gumbozzie » 23. May 2010, 05:16

I migrated to Linux Mint 9 (Isadora) the other day. I am running the 32bit version of Mint.

My USB devices dropped off the map. This is what I did to fix it:

1) You will need to use Virtualbox build 3.1.8, as it contains the build for Lucid, which is what Linux Mint Isadora is based off. You could possibly use 3.2.0 as well, but I haven't tested that build yet.
2) Check to see what GroupID VBOXUSERS has allocated. Either go to: System > Administration > Users And Groups, or run a grep command from Terminal:

Code: Select all   Expand viewCollapse view
$ grep vbox /etc/group

It will return: vboxusers:x:<gid>:username

<gid> = Group ID
username = your name

If the gid returns a number of say '124', enter it in this file:

Code: Select all   Expand viewCollapse view
$ sudo gedit /etc/init.d/mountkernfs.sh

As this line of code:

Code: Select all   Expand viewCollapse view
domount usbfs "" /proc/bus/usb usbdevfs -onoexec,nosuid,nodev,devgid=<124>,devmode=664

Ensure the <gid> is referenced.
Change it to whatever your gid is.
Save the file, reboot the system.
Fire up Virtualbox, go to settings and check your USB devices are visible.
Fire up your Guest OS, check on the USB devices in there, select them, they should now be accessible within your Guest.

Good luck!
Gumbozzie
 
Posts: 4
Joined: 23. May 2010, 05:03
Location: Western Australia
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: WINXP, WIN7

Re: USB problems

Postby dutch1918 » 23. May 2010, 16:03

lonewohlf42 wrote:Did you at least try it.
Go to system>>administration>>users and groups and add the usb group and give it id 85.
The ID for users must be over 1000 but hardware and such, no. Check the ID of other groups and you'll see.
Thanks for playing anyways.


THANKS... it worked for me
dutch1918
 
Posts: 7
Joined: 24. Jul 2008, 14:52

Next

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 10 guests