1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial: VirtualBox USB fix for non-root users in Linux

VirtualBox USB fix for non-root users in Linux

  1. sbagmeijer
    I decided to write this small guide as I seem to have no proper USB access every time I install Linux and use VirtualBox.

    There are probably be more people that stumble on this problem and for those I will explain how to resolve the problem and make USB work in your VirtualBox.

    In order to get USB to work in VirtualBox as a normal user you will have to do a few step outlined below.

    Step 1: Open a Terminal as "root"

    Step 2: Check if VirtualBox correctly created the group "vboxusers"
    Code:
    $ tail /etc/groups
    [​IMG]

    If you do not see a "vboxusers" group this means you did not install VirtualBox correctly and you will have to re-install VirtualBox. (not part of this guide)

    Step 3: Add your user to the "vboxusers" group
    Code:
    $ useradd -G vboxusers Etherus
    [​IMG]

    Step 4: Check the group id of "vboxusers"
    Code:
    $ tail /etc/groups
    [​IMG]

    As you can see the group id for me is "1001" we need this number for step 5

    Step 5: Add the following line to you fstab file and change the “1001″ accordingly to the number you see in Step 4
    Code:
    $ echo "none /proc/bus/usb usbfs devgid=1001,devmode=664 0 0" >> /etc/fstab
    [​IMG]

    As I already wrote above make sure that your "devgid=1001" contains the id that your "vboxusers" group has.
    Also it is VERY important that you use >> and not > if you use > it will overwrite your whole fstab file.

    Step 6: Double check if Step 5 was successful
    Code:
    $ tail /etc/fstab
    [​IMG]

    You should see the line of Step 5 now in your fstab file, if you do not see this you have done Step 5 wrong.

    Step 7: Reboot your machine
    Code:
    $ reboot
    [​IMG]

    This is all that you have to do to make USB work in VirtualBox under your normal user.

    [​IMG]