Strange USB Device Behaviour - Only 1 Device Available

Discussions about using Windows guests in VirtualBox.
Post Reply
kasperbs
Posts: 8
Joined: 31. May 2007, 00:15

Strange USB Device Behaviour - Only 1 Device Available

Post by kasperbs »

Hi,
I have VBox installed on Linux MInt 64 bit RC running Windows XP 32 bit. I'm having troubles accessing my USB drives. I have the following settings in Virtual Box on that should match any device and the others selected for the specific devices.

Image

If you can't see the screenshot, the direct link is here: http://img162.imageshack.us/img162/8411 ... hotbe3.png

Problem is that when I boot into my Guest OS no matter whether the USB's are mounted on host or not, only one is available and that is my Hewlett Packard Printer. It's also available even when I haven't enabled a filter for ANY device.

If you want to use BBCode tags like img, don't disable it when posting ;).
kasperbs
Posts: 8
Joined: 31. May 2007, 00:15

Post by kasperbs »

having searched the web for the past couple of days it has amazed me how many actually have this problem and has gotten no answers to their questions.

I have just figured out how to do this and it was so simple that my only conclusion is that the gurus trying to help must have missed it.

If you have this problem you have to make sure you have added yourself to the 'vboxusers' group in your OS.

You can check if you are a member by executing this command in the terminal:

Code: Select all

$ grep vbox /etc/group
If your username does not appear in the output, you are not a member and have to add your self. Do it and all your USB devices will be available to you.
lapezza
Posts: 6
Joined: 3. Feb 2009, 17:32

Post by lapezza »

how?

i'm not able to add myself into the workgroup...

could u explain me how to do please?
i'm just a noob (beginner) :lol: :lol: :lol: :lol:
metodk
Posts: 12
Joined: 28. Jan 2009, 09:48

Post by metodk »

lapezza wrote:how?

Code: Select all

sudo /usr/sbin/adduser $( whoami ) vboxusers
lapezza
Posts: 6
Joined: 3. Feb 2009, 17:32

Post by lapezza »

tnx,

i did it, but the answer from the terminal is: only one or two names are allowed

i don't understand, WTF does it mean? :D
sorry for my short knowledge, but i need to solve this problem.
yk
Posts: 14
Joined: 15. Nov 2007, 06:03

USB still not working

Post by yk »

The reply below is NOT the answer:

I just found the solution and posted it here:
http://forums.virtualbox.org/viewtopic. ... 8355#58355
Again sorry that no one has gotten back to you with this simple answer

-- As I stated in my query: I have read both How To: Install VirtualBox on Fedora 10 [Tutorial] and Mounting USB on VirtualBox (Linux host). Neither solves the problem.

The answer posted is: sudo /usr/sbin/adduser $( whoami ) vboxusers

Before my query, I already had checked that my account (the result of whoami) was in group vboxusers. On RHEL5 current this method DOES NOT WORK in so far as I can tell. However, whatever VMware Workstation does for this issue DOES WORK. The problem evidently is the following. When a new USB device physically is attached, modern Linux automatically checks what kind of device it is, and, for a file system device (e.g., a USB flash drive), automatically creates a mount point in /media/whatever, mounts it, and allows access for an ordinary end user on the Linux side. VMware Workstation intercepts this action, and allows the user instead to attach the device raw to the VMware virtual machine (the same concept as the VirtualBox virtual machine) in such a way that the guest OS (e.g., MS Win XP) "sees" the device as native hardware and does the appropriate action in the guest OS. In VirtualBox, the USB device must not be "greyed out" for one to manually attach the device to the virtual machine. As root in the host OS, there is no problem. As an ordinary user in the host OS, I cannot get the device to go non-grey under RHEL 5. If VirtualBox would do the same thing under the host OS that VMware does, the problem evidently would be solved -- USB devices are available "raw" to the guest OS under VMware on RHEL5.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

You can add you user to the VBoxUsers group from the GUI too. If you use Gnome, open System > Administration > Users and Groups. Hit Unlock, then click on Manage Groups. Now look for the VBoxUsers group and tick the checkbox next to your username.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
lapezza
Posts: 6
Joined: 3. Feb 2009, 17:32

Post by lapezza »

i tried...

it doesn't work...

heeeeeeeeeelp!!!!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

lapezza wrote:i tried...

it doesn't work...

heeeeeeeeeelp!!!!
Did you also log out and back in after the change?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
lapezza
Posts: 6
Joined: 3. Feb 2009, 17:32

Post by lapezza »

of course... but it's still not working!!!!

how can i do...???
tinman10000000
Posts: 1
Joined: 11. Feb 2009, 01:19

Using USB device inside Windows guest

Post by tinman10000000 »

I had the following problem with USB inside a windows guest The USB device was added to the system in the virtualbox setup screen. When the virtual machine was started up, the usb icon at the bottom of the main screen did not show the usb enabled. Right clicking on this usb icon showed the usb devices currently plugged in, but these were grayed out ( disabled ) and could not be enabled. Try this -- find the device node inside the procfs mount - it will be something like /proc/bus/usb/005/003 ( on mine it is /proc/bus/usb/001/00x - the x changes as device is plugged/unplugged). This is the node specifically for the one usb device and was created when the usb device was plugged in - you have to find this file. Change the GROUP to the group you need to be in to use usb on your system --(usbdevices, usb, on mine it is plugdev - whatever) - and you need to be root to do this . Change the permissions to 0664 ( see chmod for this - you need the group to have read/write access). Do all of this before you start up virtualbox - then when virtualbox starts up, right click on the usb icon and select your usb device.

If you plug in the usb device after virtualbox starts up, do all of the previous, and then plug in a second usb device - I guess this causes the usb system or virtualbox to refresh itself.
lapezza
Posts: 6
Joined: 3. Feb 2009, 17:32

[Solved]

Post by lapezza »

solved...

now is working, i wasn't in the group...
now i just have to understand how to share folders between Ubuntu and Windows (Guest)

thanks...

lapezza!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Using USB device inside Windows guest

Post by Sasquatch »

tinman10000000 wrote:I had the following problem with USB inside a windows guest The USB device was added to the system in the virtualbox setup screen. When the virtual machine was started up, the usb icon at the bottom of the main screen did not show the usb enabled. Right clicking on this usb icon showed the usb devices currently plugged in, but these were grayed out ( disabled ) and could not be enabled. Try this -- find the device node inside the procfs mount - it will be something like /proc/bus/usb/005/003 ( on mine it is /proc/bus/usb/001/00x - the x changes as device is plugged/unplugged). This is the node specifically for the one usb device and was created when the usb device was plugged in - you have to find this file. Change the GROUP to the group you need to be in to use usb on your system --(usbdevices, usb, on mine it is plugdev - whatever) - and you need to be root to do this . Change the permissions to 0664 ( see chmod for this - you need the group to have read/write access). Do all of this before you start up virtualbox - then when virtualbox starts up, right click on the usb icon and select your usb device.

If you plug in the usb device after virtualbox starts up, do all of the previous, and then plug in a second usb device - I guess this causes the usb system or virtualbox to refresh itself.
That's a rather long and unneeded path to get it working. The VirtualBox FAQ already lists how to get USB working properly.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply