LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Virtualbox and usb (https://www.linuxquestions.org/questions/slackware-14/virtualbox-and-usb-762190/)

cwwilson721 10-15-2009 03:49 PM

Virtualbox and usb
 
Does the Virtualbox slackbuild from Slackbuilds.org have usb support?

brianL 10-15-2009 03:55 PM

No, you'll need to get the PUEL version for that.
http://www.virtualbox.org/wiki/Downloads

cwwilson721 10-15-2009 04:31 PM

OK..What does THAT entail?

What else will I need besides just the source for that?

(Like in the SlackBuild, I needed 4-5 d/l's for it to work)

brianL 10-15-2009 04:35 PM

It's a script you download and run. It installs VirtualBox, makes and installs the modules, creates the vboxusers group (you have to add yourself), no trouble at all.

cwizardone 10-15-2009 04:36 PM

Quote:

Originally Posted by cwwilson721 (Post 3720819)
OK..What does THAT entail?

What else will I need besides just the source for that?

(Like in the SlackBuild, I needed 4-5 d/l's for it to work)

I'm not sure the source for the PUEL version is available. You can download the package directly from Sun. It is very easy to setup and install.

http://www.virtualbox.org/wiki/Linux_Downloads

You would want the last one in the first list:

"All distributions i386 | AMD64"

Right click on which one you want, 32 bit or 64 bit, and select,
"Save Linked Content As", and save it to your hard drive. Once done,
type, sh nameoffile.run
and you are off to the races.

cwwilson721 10-15-2009 05:45 PM

Yes..Done that..But it sees NO usb devices yet...sigh...

cwwilson721 10-15-2009 05:58 PM

OK..got the filters supposedly setup, but the guest (XP32) doesn't see ANY usb devices...

What am I doing wrong?

cwizardone 10-15-2009 06:06 PM

Quote:

Originally Posted by cwwilson721 (Post 3720900)
OK..got the filters supposedly setup, but the guest (XP32) doesn't see ANY usb devices...

What am I doing wrong?

In /opt/VirtualBox/
you will find a User's manual in the form of a .pdf file.
The section on setting up USB access starts around page 23, but you might want to skip ahead to the troubling shooting section on page 152.
Good Luck.
:)

brianL 10-15-2009 06:16 PM

Have you installed the Guest Additions, it's an option in the Machine menu? That might help, I haven't got round to trying USB with my virtual XP Pro yet.

cwwilson721 10-15-2009 06:24 PM

Got it figured out..Had to start w/sudo

MQMan 10-15-2009 06:55 PM

Try adding this:
Code:

none            /sys/bus/usb/drivers usbfs devgid=102,devmode=664 0 0
to your /etc/fstab. The devgid is the group ID for the vboxusers group. Then you won't have to run as root.

You might also have to add this:
Code:

usbfs          /proc/bus/usb      usbfs      auto            0  0
As well, so that /etc/rc.d/rc.S mounts it correctly. The previous line, "breaks" the mount of /proc/bus/usb in /etc/rc.d/rc.S, or at least it did in Slack 12.2.

Cheers.

cwwilson721 10-15-2009 08:09 PM

Was not that. Was in right groups, etc..

Was resolved by either:
  • Run as root. While the MS preferred way, it ain't mine.
  • sudo VirtualBox.
So guess which one I chose? And as soon as I did, it started installing the usb devices straight out.

cwizardone 10-15-2009 08:22 PM

Quote:

Originally Posted by cwwilson721 (Post 3721011)
Was not that. Was in right groups, etc..

Was resolved by either:
  • Run as root. While the MS preferred way, it ain't mine.
  • sudo VirtualBox.
So guess which one I chose? And as soon as I did, it started installing the usb devices straight out.

Something is wrong. You shouldn't have to do that. Sorry, the reason doesn't come to mind at the moment.

jedi_sith_fears 10-15-2009 08:27 PM

Virtualbox OSE dosen't have rdp or usb support at this moment.

catkin 10-16-2009 01:02 AM

Quote:

Originally Posted by MQMan (Post 3720943)
Try adding this:
Code:

none            /sys/bus/usb/drivers usbfs devgid=102,devmode=664 0 0
to your /etc/fstab. The devgid is the group ID for the vboxusers group.

That is the standard advice but I think it may break other USB usage. Please correct me if I'm wrong; I reason as follows. Slackware has the plugdev group for USB devices; users in the vboxusers group are not the only users of USB file systems. If that's right a safer configuration is to leave the fstab line with devgid=<plugdev GID> and make sure the VitualBox user is in group plugdev.

EDIT:

Anyone choosing to use the vboxusers group for devgid should check the number of that group in /etc/group rather than use 102. AFAIK the VirtualBox installation procedure chooses the first free GID above 100. If 102 is already in use, vboxusers will be created with a different GID.


All times are GMT -5. The time now is 02:32 AM.