LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-12-2009, 08:32 AM   #1
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Rep: Reputation: 0
USB problems with Vbox / XP under Ubuntu 9.10


HISTORY
I was running Vbox on Ubuntu host, XP guest very happily using two Canon printers. Then upgraded to Ubuntu 9.10, re-installed Guest Additions, enabled both printers and two other USB devices

PROBLEM
Both printers are shown greyed out and unavailable on XP, but are enabled in Vbox. The other devices are fine. I remember having this sort of trouble at first when I started on Vbox, but can't remember what sort of incantation/dance/spell was necessary to get the thing working!
 
Old 11-12-2009, 09:48 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,854

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
What version of Vbox? I had a similar issue with an older version. Version 3.0.10 is current.
 
Old 11-12-2009, 10:02 AM   #3
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Original Poster
Rep: Reputation: 0
It's 3.0.10.
Originally I was using 3.0.8, where I had the same problems until it (magically) started working.

H E L P!
 
Old 11-12-2009, 01:16 PM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,854

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Have you gone to Devices --> USB Devices ? and is there an 'x' for each device you want windoze using?

Close your virtual machine. Now on the Virtual Box, click settings, and USB, Enable the controller, and select click USB 2.0 if your system is USB 2.0. If it is older, I think 1.2, do not select this option. This is hardware dependent. Create a filter for each device you may want to use on the guest system.

BTW, this is the version I'm running on Mandriva linux host.

Last edited by camorri; 11-12-2009 at 01:24 PM.
 
Old 11-12-2009, 02:17 PM   #5
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Original Poster
Rep: Reputation: 0
Hi Cliff,

Thanks but I've tried all of that. I've tried selecting USB 2, and not selecting it, but it makes no difference.

Both printers, an external hard drive and Spyder3 are enabled. The external hard drive and Spyder work perfectly without being re-installed; the printers just sit there greyed out with 'unavailable' showing on mouse-over in XP. One of the printers is wide format and can't be used outside XP - there's no alternative driver. The other printer is A3, but I need the wide one at present, and time isn't on my side here.

As far as I can see I'm doing exactly the same as before, but either Ubuntu or Vbox is having a tantrum.

Cheers
Girts
 
Old 11-12-2009, 04:26 PM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,854

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
If you run a command of 'lsusb' in linux, can you see the devices that don't show up in windoze?

Last thought, have a look in the Vbox log file to see if there is anything there that may point us in the right direction...
 
Old 11-16-2009, 12:13 PM   #7
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Original Poster
Rep: Reputation: 0
Hi Cliff,

Sorry about the delay - but I had to work around the problem to get an urgent job printed out and delivered to the client.

Meanwhile, back at the box...

It's not that they don't show up in XP... they show up but they're greyed out and instead of the tick-box being clear it's grey and inactive. So I can see that XP can see there's a printer there, but it's not talking to it. Very standoffish, these XPs!

So I wondered if the XP firewall could be playing silly wotsits. The sneaky thing had enabled itself, dammit! But disabling it made no difference. I've rebooted VB and still no joy.

I've looked at the log ... Errm, yes, well, there's a lot of lines there... mean nothing at all to me - total gibberish.

So, still confused.

Girts
 
Old 11-16-2009, 01:50 PM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,854

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Since you seem to have filters to allow or deny the USB devices to XP, I'm wondering if the drivers for the USB hardware on XP got loaded and there are no IRQ conflicts in XP.

Have a look in Control Panel, and then System, and open the Device Manager. Click on USB, have a look at each part for any problems. I looked at mine, there is a check box in there to allow XP to power off unused devices to "save power". Have a look to see if you can turn anything up that looks strange.
 
Old 11-21-2009, 06:08 AM   #9
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Original Poster
Rep: Reputation: 0
I've tried all that, but no joy. Been very busy the last few days, but notice there's a new version of VBox available. 3.0.12. I'll try upgrading to that and see if it makes any difference.

Regards
Girts
 
Old 12-01-2009, 12:26 PM   #10
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Rep: Reputation: 15
Are you using the open source edition of Vbox? If so, USB is a feature that is not available, unless you get the commercial version of Vbox. See here:

http://www.virtualbox.org/wiki/Editions
 
Old 12-01-2009, 01:53 PM   #11
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,854

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I did some reading on this topic. It seems this is a common problem. There is as a solution to the common problem.

What is wrong is the user does not get access to the usbfs. Here are the things to check.

There should be an entry in /etc/fstab like this one:

Quote:
none /proc/bus/usb usbfs devgid=43,devmode=664 0 0
Notice the devgid=43. This is a group called 'usb' on my system. Any user needing access to the usbfs needs to be added to this group. If they do not belong, then they will not be able to use usb devices, and the icon is greyed out.

I don't think the group id number is significant. It could be some other number. Just add the user to that group.

Hope this helps.
 
Old 12-01-2009, 03:08 PM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by Girts View Post
It's not that they don't show up in XP... they show up but they're greyed out and instead of the tick-box being clear it's grey and inactive.
Suggests it's a Windows problem, not a VirtualBox problem -- in which case you might be better off asking in a Windows forum.
 
1 members found this post helpful.
Old 12-02-2009, 04:16 AM   #13
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Original Poster
Rep: Reputation: 0
DISKOE: When I upgraded Ubuntu to 9.10, it automatically installed OSE VBox and that's when the problem began. I noticed that and replaced it with PUEL, but as I say, there are a couple of USB devices which work fine - the Spyder monitor calibration unit and an external hard drive. No problems with either.

CAMORRI: I think that because there are a couple of devices working fine on USB there can't be a problem with the files you quoted - but a good thought anyway.

CATKIN: You may have a point there, about it being a Windows problem. I read somewhere that Windows can be very funny about how you get it to recognise USBs, and you need to remove an item, put it into a different port when it's running or not running or there's a full moon, or something. But can I find the thread now I need it? See you in the Windows forum...
 
Old 01-08-2010, 10:13 AM   #14
Girts
Member
 
Registered: Aug 2009
Location: Exeter, UK
Distribution: Ubuntu 11.04
Posts: 32

Original Poster
Rep: Reputation: 0
RESOLVED

Someone suggested I check that my name was in the lpr group. I looked in user groups and checked the box next to my user name in lpr group, re-booted VBox and Ubuntu, and both printers are now available and working!

Thanks to everyone for their help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sun Vbox on Mint: Guest OS's unable to see USB devices Albert Gerber Linux - Virtualization and Cloud 7 10-18-2009 11:58 PM
How to install Linux distro from USB to Vbox HD? linus72 Linux - Newbie 0 04-02-2009 10:23 AM
Hack for seamless vbox integration of Vista Premium in Ubuntu???? jmite Linux - Newbie 3 03-21-2009 04:04 PM
VBox (closed source) USB Functionality help addux Linux - Newbie 0 03-11-2009 01:37 AM
Upgrading VBox 2.0.2 on Fedora 9 to VBox 2.0.6 fcquayso Linux - Newbie 2 12-10-2008 05:44 PM


All times are GMT -5. The time now is 01:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration