Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Virtualization
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Virtualization
For questions on VMWare, VirtualBox, Xen, QEMU and other virtualization software.

 
Thread Tools Display Modes
Old March 25th, 2007   #1
bmralex
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 9
USB problem with VirtualBox

Hi,
I'm using VirtualBox to run Windows XP as a Guest OS over Ubuntu Edfy host.
However, my virtual Windows doesn't recognize my usb flash drive, although USB mouse works fine.

When I mounted this device from VM menu, I received an error message
"Not permitted to open the USB device, check usbfs options".
I understand that it is a common problem in virtual OS and tried to use recommendations for solving the similar problems in vmware.
(http://kb.vmware.com/vmtnkb/search.d...60&stateId=0%2)

I added the line
Code:
usbfs  /proc/bus/usb  usbfs  auto  0  0
to the /etc/fstab file, however, it did not help.

What shall I do?

Thanks
Alex
bmralex is offline   Reply With Quote
Old March 25th, 2007   #2
tgalati4
Iced Blended Vanilla Crème Ubuntu
 
tgalati4's Avatar
 
Join Date: Feb 2007
Location: West Hills CA
Beans: 2,988
Ubuntu 9.04 Jaunty Jackalope
Re: USB problem with VirtualBox

Did you look at /proc/bus/usb?

I have /proc/bus/usb/001/001 as an actual device. Perhaps you need to plug the device in and see what shows up in /proc/bus/usb and use that in your fstab.

Good luck.

ps: I have

procbususb /proc/bus/usb usbfs rw 0 0

in my fstab.

Last edited by tgalati4; March 26th, 2007 at 12:01 AM..
tgalati4 is offline   Reply With Quote
Old March 25th, 2007   #3
bodhi.zazen
Ubuntu Guru
 
bodhi.zazen's Avatar
 
Join Date: Apr 2006
Location: Montana
My beans are hidden!
Xubuntu Development Release
Send a message via Yahoo to bodhi.zazen
Re: USB problem with VirtualBox

I am not sure how to activate a usb device in Edgy, but I can tell you how I did it in Feisty.

First, it had nothing to do with fstab.

This solution worked for me :

Edit (as root) /etc/udev/rules.d/40-permissions.rules (I use vim, you can use nano, gedit or whatever)

Change this line :

SUBSYSTEM=="usb_device", MODE="0664"

To :

SUBSYSTEM=="usb_device", MODE="0666"


For further advice see : http://www.virtualbox.org/download/UserManual.pdf

See section 10 "Troubleshooting" there is a section on USB devices.

FYI : I am working on a Virtual Box How-to for Ubuntu here : http://doc.gwos.org/doku.php/doc:office:virtualbox

Feel free to give feedback
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999


Last edited by bodhi.zazen; December 18th, 2007 at 01:05 PM.. Reason: spelling and added wiki reference
bodhi.zazen is offline   Reply With Quote
Old March 28th, 2007   #4
bmralex
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 9
Re: USB problem with VirtualBox

Thank you for your reply. I have the same proc/bus/usb/001/001 as an actual device. However, editing fstab directly did not help. I solved the problem using the method proposed by bodhi.zazen.

Thank you for your help,
Alex
bmralex is offline   Reply With Quote
Old March 28th, 2007   #5
bmralex
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 9
Re: USB problem with VirtualBox

Bodhi.zazen,
I will name my son after you.
Your solution worked nicely!!!! Thanks!
bmralex is offline   Reply With Quote
Old April 9th, 2007   #6
gapplewagen
A Carafe of Ubuntu
 
Join Date: Nov 2005
Location: Cincinnati, OH
Beans: 86
Ubuntu 7.04 Feisty Fawn
Re: USB problem with VirtualBox

Very good. Works great. Now able to sync my Samsung Blackjack with my XP and Vista vbox installs.
gapplewagen is offline   Reply With Quote
Old April 22nd, 2007   #7
rabideau
A Carafe of Ubuntu
 
rabideau's Avatar
 
Join Date: Dec 2006
Beans: 87
Ubuntu 8.04 Hardy Heron
Re: USB problem with VirtualBox

Thank you bodhi!!!!!!

It works splendidly on Fiesty.
__________________
Pax Vobiscum
...mark
rabideau is offline   Reply With Quote
Old April 23rd, 2007   #8
GSF1200S
Has an Ubuntu Drip
 
GSF1200S's Avatar
 
Join Date: Mar 2007
Location: Pensacola, Fl
Beans: 712
Ubuntu Karmic Koala (testing)
Send a message via AIM to GSF1200S
Re: USB problem with VirtualBox

Quote:
Originally Posted by bodhi.zazen View Post
I am not sure how to activate a usb device in Edgy, but I can tell you how I did it in Feisty.

First, it had nothing to do with fstab.

This solution worked for me :

Edit (as root) /etc/udev/rules.d/40-permissions.rules (I use vim, you can use nano, getid, or whatever)

Change this line :

SUBSYSTEM=="usb_device", MODE="0664"

To :

SUBSYSTEM=="usb_device", MODE="0666"


For further advice see : http://www.virtualbox.org/download/UserManual.pdf

See section 10 "Troubleshooting" there is a section on USB devices.
Im getting quite angry very quickly. This doesnt work.

None of the other crap works. I cant share between my virtual machine and linux at all no matter how many hours I spend trying to figure it out. I get the same message as the original post when trying to mount USB, and I cant setup a network. If I follow the virtualbox user guide, I get an error by step 2.
__________________
Stop Trusted Computing! http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html
Asus Rampage 2 Extreme/2.66GHz i7 Quad/6GB DDR3 1600MHz 8-8-8-24/2x Nvidia 9800GTX+
2x150GB 10krpm HD/2x1TB 7200RPM HD/3ware RAID/
Ubuntu 8.10/Arch Linux/Gentoo Linux
GSF1200S is offline   Reply With Quote
Old April 23rd, 2007   #9
bodhi.zazen
Ubuntu Guru
 
bodhi.zazen's Avatar
 
Join Date: Apr 2006
Location: Montana
My beans are hidden!
Xubuntu Development Release
Send a message via Yahoo to bodhi.zazen
Re: USB problem with VirtualBox

Quote:
Originally Posted by GSF1200S View Post
Im getting quite angry very quickly. This doesnt work.

None of the other crap works. I cant share between my virtual machine and linux at all no matter how many hours I spend trying to figure it out. I get the same message as the original post when trying to mount USB, and I cant setup a network. If I follow the virtualbox user guide, I get an error by step 2.
LOL

If you are getting angry, time to give it a break !

First, make the above change, be careful of typos. Then reboot and try again.

Networking should work out of the box, that is you should have internet access.

If you want to ssh or share files directly I wrote a how to here : http://doc.gwos.org/index.php/VirtualBox

The documentation on Virtual Box is shall we say lacking. I am trying to maintain an information data base for Ubuntu on that above link. If anyone is having problems or has better solutions, PLEASE POST THEM and I will try my best to maintain the wiki.
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999

bodhi.zazen is offline   Reply With Quote
Old April 23rd, 2007   #10
GSF1200S
Has an Ubuntu Drip
 
GSF1200S's Avatar
 
Join Date: Mar 2007
Location: Pensacola, Fl
Beans: 712
Ubuntu Karmic Koala (testing)
Send a message via AIM to GSF1200S
Re: USB problem with VirtualBox

Quote:
Originally Posted by bodhi.zazen View Post
LOL

If you are getting angry, time to give it a break !

First, make the above change, be careful of typos. Then reboot and try again.

Networking should work out of the box, that is you should have internet access.

If you want to ssh or share files directly I wrote a how to here : http://doc.gwos.org/index.php/VirtualBox

The documentation on Virtual Box is shall we say lacking. I am trying to maintain an information data base for Ubuntu on that above link. If anyone is having problems or has better solutions, PLEASE POST THEM and I will try my best to maintain the wiki.
Thanks for you help.. I may get angry, but that only makes me research more. I managed to fix it, using a post in the Mepis Linux forums.

http://www.mepislovers.org/forums/showthread.php?t=5152

I wish I had seen your link before.. haha
__________________
Stop Trusted Computing! http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html
Asus Rampage 2 Extreme/2.66GHz i7 Quad/6GB DDR3 1600MHz 8-8-8-24/2x Nvidia 9800GTX+
2x150GB 10krpm HD/2x1TB 7200RPM HD/3ware RAID/
Ubuntu 8.10/Arch Linux/Gentoo Linux
GSF1200S is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 12:27 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry