Slackware 12.2: Strange Problems with VirtualBox & USB
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware 12.2: Strange Problems with VirtualBox & USB
I have read through the VBox user documentation and the USB section of the FAQ and come to a dead-stop, I cannot get any USB peripherals working.
I am running the latest VBox (3.1.0) on Slackware dist 12.2
uname -a = Linux Pops 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686 Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz GenuineIntel GNU/Linux
My login is part of plugdev and vboxusers.
I have tried changing the rule in /etc/udev/rules.d/10-vboxdrv.rules, adding the gid for both groups (one at a time) for the usbfs mount statement in /etc/rc.d/rc.S: /sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=102,devmode=664, and have tried adding a line to fstab for mount of /proc/bus/usb with devgid,devmode set for 664
If I disable all these modifications, VBox comes up just fine, WinXP runs fine, and my USB devices (that I have set filters for) show up under Devices->USB Devices but they are grayed out.
My Palm Pilot is what I am trying to get working BTW.
Here is the strange part. I make any one (or all) of the modifications as discussed above, basically enabling RW for group. I start VBox and it comes up fine, I then start WinXP which comes up and VBox grabs the mouse (no matter where it is located in the screen), BUT the mouse pointer does not move in VBox or in Linux even though the mouse is active in WinXP. I must explain that the mouse is still working (if I am careful I can hi-light icons, right click them, etc), its the pointer icon on the screen that does not move. I can do a ctrl-alt-del and task manager comes up so the keyboard is being recognized, but right-ctrl no longer releases focus from VBox, I can't get my mouse and keyboard back to Linux. I have to manually bring up task manager with ctrl-alt-del and keyboard to shutdown, or very carefuly move the mouse around until I can select shut-down in task manager.
I disable the rule changes or mount options, reboot, and am back to normal operation with grayed out USB devices.
I am stumped, any advice would be greatly appreciated.
Have you tried running the VirtualBox USB analysis script in this LQ post?
What is the name of the group with ID 102?
Any USB mouse and-or USB keyboard must not be attached to a virtual machine; if they are, the virtual machine will take them over and they will not be available on the host.
"Any USB mouse and-or USB keyboard must not be attached to a virtual machine; if they are, the virtual machine will take them over and they will not be available on the host."
Ouch, that hurts. My keyboard and mouse are connected to my computer via a single USB port, sounds like that is the problem.
I have an Intel M/B that has no PS2 ports on it.
I'm running Slackware 13.0 64-bit with VirtualBox PUEL edition, and my computer has both a USB keyboard and mouse. USB works fine here:
1. I created a group named vboxusers with gid=215 and added my regular user accout for it
2. Installed VirtualBox
3. Added usbfs /proc/bus/usb usbfs devmode=0664,devgid=83 0 0 to my /etc/fstab, where devgid=83 is the plugdev group. My regular user accout is also a member of the plugdev group.
I had been using version 3.0.12, and upgraded to 3.1.0 with no issues.
Never had cause to modify any udev rules.
"Any USB mouse and-or USB keyboard must not be attached to a virtual machine; if they are, the virtual machine will take them over and they will not be available on the host."
Ouch, that hurts. My keyboard and mouse are connected to my computer via a single USB port, sounds like that is the problem.
I have an Intel M/B that has no PS2 ports on it.
Back to the drawing board I fear
Thanks!
USB keyboards and mice work just fine with VirtualBox; the only problems arise when they are configured as USB devices for virtual machines, as in Menu->System->"Sun VirtualBox"-><virtual machine name>->USB. If that is done they stop working on the host when the guest is running.
Here are the results of running the analysis script
VirtualBox PUEL version found. OK.
Name of user used to run VirtualBox: smw
This computer has udev rules file for VirtualBox, /etc/udev/rules.d/10-vboxdrv.rules. OK.
No fstab usbfs line found. udev rules are effective.
Group name used for VirtualBox USB access is vboxusers.
Group vboxusers found in /etc/group. OK.
Here is the group line from /etc/group:
vboxusers:x:102:smw,sdw
User smw is in group vboxusers/102. OK.
Access mode used for VirtualBox USB access is 0664.
Access mode (0664) includes 'group write'. OK.
Kernel module vboxdrv loaded. OK.
All tests passed. OK. :-)
I'll give the ideas from Cheesesteak a try later today
I was running into the same problem. Try this temporary fix:
sudo chmod -R 777 /proc/bus/usb
This fixed my 'greyed out' box issues and I was able to use any USB devices in my WinXP install through VirtualBox.
I ended up messing with the permissions on some 'usbdevX.X' device file entries I never noticed before in my /dev that have user ID and group ID of 'root' and 'vboxusers'.
Here are the results of running the analysis script
VirtualBox PUEL version found. OK.
Name of user used to run VirtualBox: smw
This computer has udev rules file for VirtualBox, /etc/udev/rules.d/10-vboxdrv.rules. OK.
No fstab usbfs line found. udev rules are effective.
Group name used for VirtualBox USB access is vboxusers.
Group vboxusers found in /etc/group. OK.
Here is the group line from /etc/group:
vboxusers:x:102:smw,sdw
User smw is in group vboxusers/102. OK.
Access mode used for VirtualBox USB access is 0664.
Access mode (0664) includes 'group write'. OK.
Kernel module vboxdrv loaded. OK.
All tests passed. OK. :-)
I'll give the ideas from Cheesesteak a try later today
Thanks for trying the script -- and sorry it did not identify the cause of your problem. When you do find what the problem is I'll modify the script to detect it.
Thought I would provide an update on this issue.
I tried all of the suggestions, no luck.
I then remembered that I had an academic license for VMware WorkStation.
Loaded Workstation 7 and it picked up my USB devices without me doing anything.
Synced my Palm without problems.
I will continue to dig in to why VBox does not work with my USB and if I find anything I will post.
Thanks to all who tried to help me out. I appreciate it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.