3

I'm using Ubuntu 16.04 and I'm new to both Ubuntu and VirtualBox. I've already enabled USB controller for Windows 10 virtual machine, But no devices are available when I click to "add USB filter button". So what should I do now?

Aditya
  • 63
  • Is it possible that the USB device is already connected to another VM running in parallel? – Yaron Feb 23 '17 at 13:08
  • here I just mean that I've just enabled Usb controller and when I click to add new USB filter no device is found. – Aditya Feb 23 '17 at 13:12
  • 2
    Did you follw this: http://askubuntu.com/questions/25596/how-to-set-up-usb-for-virtualbox? Any errors you get? – Takkat Feb 23 '17 at 13:59
  • After downloading the extension pack from here ( https://www.virtualbox.org/wiki/Downloads ), and rebooting, (then selecting "settings">USB>USB3.0), the problem has finally solved. – Aditya Feb 23 '17 at 15:13

2 Answers2

7

You must add your user the vboxusers group by doing:

sudo usermod -G vboxusers -a <username>

Or by edditing the /etc/group file with nano, or vim, and adding your user name in front of vboxusers:

Remember, you must do this in the host, not in the guest. Then logout and login again, or reboot your computer.

Aditya suggest: The extension pack could be required,

see the comments for details.

GTRONICK
  • 4,314
  • After entering it they are providing a tons of options I'm confused for what to select, as I'm a newbie – Aditya Feb 23 '17 at 13:22
  • 1
    Remember to replace with your username, for example: sudo usermod -G vboxusers -a Aditya – GTRONICK Feb 23 '17 at 13:28
  • Yes after replacing with my username It shows lots of options to select. few of those are: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new home directory for the user account -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE -f, --inactive INACTIVE set password inactive after expiration to INACTIVE -g, --gid GROUP force use GROUP as new primary group – Aditya Feb 23 '17 at 13:37
  • @Aditya It seems you're still not using (your) correct username. –  Feb 23 '17 at 13:42
  • Sorry for that, I actually had entered my name instead of user name. but even after correcting it I'm still unable to see any usb drive. – Aditya Feb 23 '17 at 14:01
  • 2
    After downloading the extension pack from here ( https://www.virtualbox.org/wiki/Downloads ), and rebooting, (then selecting "settings">USB>USB3.0), the problem has finally solved. – Aditya Feb 23 '17 at 15:13
0
  1. sudo apt install virtualbox virtualbox-guest-additions-iso (hit enter button)
  2. Type your password in the blank space
  3. sudo usermod -a -G vboxusers $ USER
  4. sudo apt install virtualbox-ext-pack
  5. sudo usermod -G vboxusers -a (your host computer name as nick, Peter etc whatever without brackets) Finally reboot your PC and check it finds USB drivers.