LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2011, 10:32 AM   #1
stu_c
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Slack 13.1 / VirtualBox 4.0.4 / USB devices not detected in guest OS


hi,

Has anyone tried using Slackware 13.1 (32 bit, with all the latest patches) with VirtualBox 4.0.4 and managed to get USB working on a Windows XP guest? I can't seem to get the XP guest to detect an external USB hardrive I attach whatever I do. The slackware (host) correctly detects the external USB hardrive and will mount it, but the guest OS will not detect the device (regardless of whether or not it is mounted by linux).

I have enabled USB 2.0 (EHCI) Controller in the USB settings part of VirtualBox, and have created a filter that should allow the external hardrive to be seen, but the "Devices" menu when running the virtual machine reports "State: Unavailable" for all my USB devices (I'm using USB keyboard & mouse but these map to PS2 in the VM and therefore work).

Reading the VirtualBox documentation, I'm not sure if their description of how USB is setup on linux matches with how it is setup on Slackware (since there are difference between the distros). All my /dev/ devices connected with VirtualBox are owned by root and in the vboxusers group, as is my user account also in the vboxusers group - so that should work. But the documentation also states "VirtualBox can only proxy to virtual machines USB devices which are not claimed by a Linux host USB driver." It would appear my external USB hardrive is claimed by the usb-storage driver. Could this be the problem, if so how do I get the usb-storage driver to let VirtualBox get control of the device?

Any ideas appreciated, thanks,
Stu
 
Old 04-14-2011, 10:35 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I gather you're using the non-free version of VirtualBox, but can you confirm that? The OSS version doesn't support USB.
 
Old 04-14-2011, 10:38 AM   #3
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
However, they have changed it recently.

There is no longer an OSS version and a proprietary version. There is just one version and it is OSS, but the USB2 hub controller requires an add-in that is under the PUEL licence.
 
1 members found this post helpful.
Old 04-14-2011, 10:44 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
As mentioned above, you need the extensions installed.
After downloading you have to open Virtualbox, go to File->Preferences and then click on the Extensions menu and install them.
 
Old 04-14-2011, 10:58 AM   #5
stu_c
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
I am running the "Oracle" version of VirtualBox, and I have installed the EHCI extention.

I just tried running VirtualBox as "root" and guess what, the Windows guest detects my external USB hardrive!

Me thinks there must be something wrong with the permissions of USB devices on my linux host, but what to check?


S
 
Old 04-14-2011, 11:14 AM   #6
stu_c
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
Problem FIXED!

Following one of the links in Zordrak's post I have changed the USB permissions and I can now see my external USB hardrive in the guest OS - even when I'm running VirtualBox as a normal user.

S
 
Old 04-14-2011, 11:43 AM   #7
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Hehe.. I didn't realise that was your problem, or I'd have given you the direct link. Those links aren't part of the post, they're my signature

Last edited by zordrak; 04-14-2011 at 11:43 AM. Reason: typo
 
Old 04-14-2011, 02:17 PM   #8
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Just for anyone else hitting this thread looking for help, this is the link:

Slackware-13.1 and VirtualBox USB
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using USB devices in VirtualBox as regular user damgar Slackware 11 11-22-2010 04:34 PM
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
[SOLVED] VirtualBox: is it possible to install a Windows XP guest on a USB pen? xirtyllo Linux - Virtualization and Cloud 3 11-02-2009 01:58 AM
Configure USB in Windows XP guest at virtualbox nos1833 Debian 1 03-07-2008 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:30 PM.

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