Bug 16881 - Add the current user to vboxusers group when installing Virtualbox to make USB-devices recognizable
Summary: Add the current user to vboxusers group when installing Virtualbox to make US...
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-03 13:10 CEST by Kristoffer Grundström
Modified: 2015-10-03 20:39 CEST (History)
2 users (show)

See Also:
Source RPM: virtualbox
CVE:
Status comment:


Attachments

Description Kristoffer Grundström 2015-10-03 13:10:33 CEST
Description of problem: I noticed that if I decide to install dkms-virtualbox virtualbox and virtualbox-guest-additions I cannot get Virtualbox to see any connected USB device/s in Windows 7 (x64) if I check the Devices menu.

I went to Google to search for the cause of this problem and this is fixed by doing the following:

1. Install the "Oracle VM VirtualBox Extension Pack" to match your VirtualBox version. https://www.virtualbox.org/wiki/Downloads
2. Ensure that your user account is in the "vboxusers" group. You may need to logout/login again to pickup the group change. In the worst case you may need to reboot.
3. Connect your USB device.
4. Confirm that you can see your USB device via the lsusb command.
5. Confirm that you can also see your USB device via the VBoxManage list usbhost command. You cannot add a working Filter in VirtualBox until this is working.
6. In VirtualBox, go to the Settings of your guest, USB section, and add a Filter for your USB device.
Start your guest and confirm that it can see your device.

Point 2 is the most important thing to make this work and it tells you to add your user to the vboxusers group which can be done from starting Mageia Control Center and then going to System and then open "Manage users in the system" and then rightclicking on the username and clicking the Groups tab and scroll down to vboxusers and tick the box for it.

Now reboot the computer completly and start the VM again and once it's fully started connect the device and check the device screen for any confirmation message.

Version-Release number of selected component (if applicable): 5.0.4

How reproducible: Everytime.

Steps to Reproduce:
1. Install Mageia 5 for x86_64.
2. Use all medias except Testing and Backports.
3. Update completly.
4. Open Mageia Control Center and search for dkms-virtualbox  virtualbox virtualbox-guest-additions and tick the boxes for them to be installed.
5. Download Windows 7 for x64 and install it and update it to the fullest.
6. Voila! Open the Device manager and see that the iPad isn't recognized.

Reproducible: 

Steps to Reproduce:
Kristoffer Grundström 2015-10-03 13:10:45 CEST

CC: (none) => kristoffer.grundstrom1983

Comment 1 Florian Hubold 2015-10-03 20:39:55 CEST
For one, you don't need dkms-virtualbox and virtualbox-guest-additions on the host. dkms-virtualbox is only required if you don't use the default virtualbox-kernel packages. And virtualbox-guest-additions is only useful/required in the guest, it's totally irrelevant to the host.
Also FWIW the VirtualBox Extension Pack is only required for USB 2.0 access, for normal USB functionality it's not required.

And the system doesn't really know about "the current user" as package installation is done in root user context. And not everybody would want _all_ normal non-root users to be added to vboxusers group by default.

What proposal comes next: automatic suggestion that affected users should logout and login again so group change becomes effective?

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


Note You need to log in before you can comment on or make changes to this bug.