Bug 20555

Summary: Vbox USB extension function not working
Product: Mageia Reporter: William Kenney <wilcal.int>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, marja11, olegbosis, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: virtualbox CVE:
Status comment:

Description William Kenney 2017-03-22 19:34:10 CET
Description of problem:

For some reason I have either forgotten how to use the USB
function on a Vbox client or there is really something wrong
with it. Please instruct.

Way to set this up. M6, X86_64, Plasma host platform.
4.9.16-desktop-2.mga6 kernel
[root@localhost wilcal]# urpmi virtualbox
Package virtualbox-5.1.18-1.mga6.x86_64 is already installed
Active Oracle VboxDTrace Extension Pack: 5.1.18r114002

Create a FAT32 USB stick on which copy two files.
One file an mv4 video file
One file an mp3 music file.

Insert USB stick in host, USB stick is recognized,
files can be played with VLC. USBview app sees the USB stick
Unmount and remove USB stick.

Reinsert USB test stick
Create M6 x86_64 Plasma LiveDVD Vbox client
In settings select USB set up.
  Enable USB Controller ( Checked )
  USB 1.1 (OHCI) Controller ( ticked )

Click on (+) USB icon
<no devices available>

Where am I going wrong here?
Comment 1 Marja Van Waes 2017-03-22 20:45:46 CET
(In reply to William Kenney from comment #0)
> Description of problem:
> 
> For some reason I have either forgotten how to use the USB
> function on a Vbox client or there is really something wrong
> with it. Please instruct.
> 

I have little experience with Vbox, CC'ing tmb and Dave Hodgins

CC: (none) => davidwhodgins, marja11, tmb
Source RPM: (none) => virtualbox

Comment 2 Dave Hodgins 2017-03-22 23:35:29 CET
Formatted a usb stick with vfat, copied a .mp4 file to it, confirmed I could
play the video from the file manager on the host.

Remove and re-insert the stick, to make sure usb stick is available in the device
manager on the host, but is not mounted (mounted devices are not visible to the
guest).

In the vb settings for the guest, I have usb 2.0 selected. Booted sta2 m6 x86_64
plasma live.

Once at the desktop in the guest, select Devices from the vb menu, then
usb, then select the usb stick. Once selected the guests device manager showed
the stick available, selected open in file manager.

Double clicking on the file in the guests file manager started playing of the
movie in dragon player.

I don't remember what the difference is between the levels within usb, just
remember that I normally select usb 2.0.
Comment 3 William Kenney 2017-03-22 23:50:32 CET
Thanks everyone

If I change the Client USB setting to USB 2.0 (EHCI) Controller
when I launch the client the following error message is displayed:

Implementation of the USB 2.0 controller not found!
Because the USB 2.0 controller state is part of the saved VM state,
the VM cannot be started. To fix this problem, either install the
'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in
the VM settings.
Note! This error could also mean that an incompatible version of the
'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND).


Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
ConsoleWrap
Interface: 
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Comment 4 William Kenney 2017-03-22 23:54:56 CET
USBviewer is clearly telling me this is a USB stick DataTraveler 2.0
Comment 5 William Kenney 2017-03-23 00:05:18 CET
I'll roll all this up on another computer tomorrow.
Comment 6 Marja Van Waes 2017-03-23 08:53:52 CET
@ Dave

Is your host Mageia 6, too?
Comment 7 William Kenney 2017-03-23 12:55:27 CET
(In reply to Marja van Waes from comment #6)

> Is your host Mageia 6, too?

Yes
Comment 8 Marja Van Waes 2017-03-23 13:25:59 CET
(In reply to William Kenney from comment #7)
> (In reply to Marja van Waes from comment #6)
> 
> > Is your host Mageia 6, too?
> 
> Yes

I had seen that, but I failed to see what Dave's host is, so it was him whom I asked ;-) :

(In reply to Marja van Waes from comment #6)
> @ Dave
> 
> Is your host Mageia 6, too?
Comment 9 Dave Hodgins 2017-03-23 17:54:18 CET
Sorry, misread the description. The guest is Mageia 6, but the host is Mageia 5.
Both x86_64.

I'll reboot the host to Mageia 6 later today, and retest.
Comment 10 William Kenney 2017-03-23 18:07:08 CET
These are the two platforms I am using:

Test platforms:

Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express Gigabit Ethernet
DRAM 16GB (4 x 4GB)
Graphic Card: GF108 [GeForce GT 440]
Kernel driver in use: nouveau
4.9.16-desktop-2.mga6 kernel

Intel Core i5-4460 Haswell 3.2GHz
GIGABYTE GA-B85M-D3H LGA1150 MoBo
Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
âRTL8111/8168/8411 PCI Express Gigabit Ethernet
DRAM 8GB (2 x 4GB)
USB Host Controller: xHCI
Graphic Card: Intel 810
Kernel driver in use: i915
4.9.16-desktop-2.mga6 kernel

Both are responding the same way and the Vbox Client USB set up flat
out does not see a properly inserted USB memory stick with files on it.
Comment 11 William Kenney 2017-03-23 18:09:54 CET
USB Host Controller for the i7 platform:
6 Series/C200 Series Chipset Family USB Enhanced Host Controller
Comment 12 Oleg Bosis 2017-03-23 20:29:14 CET
You forgot to provide some *very important* info: is your user is a member of vboxusers group? VBox won't see any of your usb devices without this...

CC: (none) => olegbosis

Comment 13 Dave Hodgins 2017-03-23 22:15:50 CET
Thanks Oleg! I'd completely forgotten about the group. Confirming adding the
user to the group, logout/in to load the group change, fixes the problem.

Closing the bug report.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 14 William Kenney 2017-03-23 22:17:55 CET
Ok. So let me carefully document this.
First I assigned user "wilcal" to the vboxusers group.
I then rebooted the system, likely I only need to log out and back in.
I then plugged in my USB test stick
I then created a new Vbox Client using:
Mageia-6-sta2-LiveDVD-Plasma-x86_64-DVD.iso
In the Vbox client set up, USB, I can see the USB test stick
Select that
Start the client
Client M6 x86_64 Plasma LiveDVD sees the USB test stick
I can play both files with the Client VLC