LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Oracle VirtualBox-4.3.4 64-bit Slackware 14.1 No USB Support (https://www.linuxquestions.org/questions/slackware-14/oracle-virtualbox-4-3-4-64-bit-slackware-14-1-no-usb-support-4175486455/)

tronayne 12-01-2013 11:17 AM

Oracle VirtualBox-4.3.4 64-bit Slackware 14.1 No USB Support
 
This one's got me stumped. I upgraded from Oracle VirtualBox-4.2.18 to 4.3.4 in Slackware 14.1 and there's no USB support (it's grayed-out) in the guest OS (Win7). I installed the Extension Pack in VirtualBox and the Guest Additions in Win7 (in "safe mode") as usual. It's a "clean install" of Slackware 14.1; everything is 64-bit.

Of course things worked fine in 14.0 and I think I may have missed something about USB support in 14.1? Win7 works fine (did have to change the audio to the ALSA Audio Driver (/etc/rc.d/rc.alsa-oss is not executed on boot per the recommendation in that file) and sound works, video works, the mouse works but ain't no USB for the printer or any other USB device.

Any hints?

Jeebizz 12-01-2013 11:33 AM

check /etc/group , make sure vboxusers is still there

tronayne 12-01-2013 12:05 PM

Yup, it's there (I copied /etc/group from 14.0; all my machines are the same passwd, shadow and group files).

Good thought, though!

Thanks.

Jeebizz 12-01-2013 12:29 PM

Just realized I am running 4.3.2 , I just updated to 4.3.4 with extension pack too, checked in USB for both Win7-32 and 64-bit and USB is not greyed out. I must admit you stumped me too now :( - especially since I also updated from Slackware14.0-64 to 14.1-64. :scratch: :banghead:

Jeebizz 12-01-2013 12:34 PM

Another idea... Check the logs! Can't believe *I* overlooked that... When running virtualbox look at the logs - gotta be something there to tell us WHY USB is not available, since everything is good on Slackware side.

Latest logs in ~/.VirtualBox/VBoxSVC.log.X

tronayne 12-01-2013 12:36 PM

Uh-oh. Just went and looked at /var/lib/virtual and it doesn't look right (and I don't have anything to compare it with).

/var/lib/virtual is a mounted partition that looks like:
Code:

drwxrwxr-x  5 root  vboxusers  4096 Mar 14  2011 ./
drwxr-xr-x 36 root  root      4096 Dec  1 04:40 ../
drwxr-xr-x  2 trona users      4096 Apr 17  2011 HardDisks/
drwxr-xr-x  5 trona users      4096 Aug 18  2012 Machines/
drwx------  2 root  vboxusers 16384 Mar 13  2011 lost+found/

Seems like something's amiss with the group?

And, maybe with the HardDisks:
Code:

drwxr-xr-x 2 trona users            4096 Apr 17  2011 ./
drwxrwxr-x 5 root  vboxusers        4096 Mar 14  2011 ../
-rw------- 1 trona users    10336903680 Dec  1 13:00 XP.vdi

And, possibly the Machines:
Code:

drwxr-xr-x 5 trona users    4096 Aug 18  2012 ./
drwxrwxr-x 5 root  vboxusers 4096 Mar 14  2011 ../
drwxr-xr-x 3 trona users    4096 Sep 11  2012 Qimo/
drwxr-xr-x 3 trona users    4096 Dec  1 13:17 Win7/
drwxr-xr-x 3 trona users    4096 Dec  1 13:00 XP/

All of them are group user, owner me?

This is the first upgrade that's failed and I'm kind of at a loss here what to do about it.

Thing is, Win7 works (but no USB), XP sor-of works (it drives the core to 100% and it's time to dump XP methinks -- what the heck, haven't used for a year and there's nothing I care about in it). Qimo starts, works, no USB (and it's going to go, too -- it's a for kids thing that I was evaluating for the public library kids area.

I don't know what I did (or maybe Oracle did) but I'd sure like to know what to do the fix it.

tronayne 12-01-2013 12:50 PM

Starting VirtualBox (but no guest), the Settings show USB enabled and Enable USB 2.0 (EHCI) Controller enabled (the check-marks).

Everything says there are no USB Device Filters, which means no USB devices attached to the machine (there is a USB keyboard, USB mouse and USB printer attached the the host and all function properly). It's been a while, but I'm pretty sure those show up in that display.

When I boot Win7, the USB setting display is greyed.

Seems like something's goofy on the host side? Some simple basic thing that I forgot when setting up 14.1?

The log only shows this:
Code:

fgrep USB VBox.log
00:00:00.412488  Driver <string>  = "VUSBRootHub" (cb=12)
00:00:00.412513  Driver <string>  = "VUSBRootHub" (cb=12)
00:00:00.412604 [/PDM/USB/] (level 2)
00:00:00.412605 [/PDM/USB/VBoxUsbCardReader/] (level 3)
00:00:00.412608 [/PDM/USB/VBoxUsbWebcam/] (level 3)
00:00:00.412614 [/USB/] (level 1)
00:00:00.412616 [/USB/USBProxy/] (level 2)
00:00:00.412617 [/USB/USBProxy/GlobalConfig/] (level 3)
00:00:14.005688 OHCI: USB Reset
00:00:14.071809 OHCI: USB Operational
00:00:14.103552 EHCI: USB Operational
00:00:19.977574 OHCI: USB Suspended
00:00:19.977649 EHCI: USB Suspended
00:00:49.691563 /VUSB/0/cUrbsInPool                    0 count
00:00:49.691566 /VUSB/1/cUrbsInPool                    0 count

And I don't really know what I'm looking at there.

DrTor 12-01-2013 02:22 PM

Are you in group "vboxusers"?

tronayne 12-01-2013 03:11 PM

Quote:

Originally Posted by DrTor (Post 5073506)
Are you in group "vboxusers"?

Yes, I was... but I wasn't. It finally occurred to me to run groups, no vboxusers on the list. In /etc/group, not in the list. WTF!

I had uninstalled then reinstalled VirtualBox (and the Extension Pack) without ever logging "all the way out;" stop Xfce, log out from console, log back in.

Did that. run groups, vboxusers on the list, start Win7, all the USB devices show up, printer prints, life is good.

Why? I haven't a clue (you should be able to close a terminal, open it again and your groups should have been altered -- it did not do that, why I don't know, without shutting down Xfce, logging out and logging back in). I have terminals set as log-in shells which should and does execute all the stuff in /etc/profile, /etc/profile.d and my home .profile, .kshrc and .exrc. Don't know why the group was not picked up.

However, the thing works!

Thanks to all for the help and advice.

All is well that ends.


All times are GMT -5. The time now is 03:15 PM.