Enable USB support for VirtualBox in Ubuntu

Source: Internet
Author: User
1. open/etc/group and add your username to the end of the vboxusers group. Run sudogpasswd-a 'whoam' vboxusers, similar to vboxusers: x: 124: felix021. // note: the character 'is the button on the left of 1, not a single quotation mark. You can also go to "system-& gt; System Management-& gt; user and group-& gt; Management Group" on the main menu ", open the vboxusers group and set your ID.

1. Open/etc/group and add your username to the end of the vboxusers group line, similar
Vboxusers: x: 124: felix021

You can also run sudo gpasswd-a 'whoam' vboxusers // Note: The character 'is the key on the left of 1, not a single quotation mark

You can also choose system> System Management> users and groups> Management Groups on the main menu, find the vboxusers group, and check your ID.

Note that the number displayed at "124" is the gid of the vboxusers group on your machine.

2. Open/etc/init. d/mountdevsubfs. sh and find the following lines:
#
# Magic to make/proc/bus/usb work
#
# Mkdir-p/dev/bus/usb/. usbfs
# Domount usbfs ""/dev/bus/usb/. usbfs-obusmode = 0700, devmode = 0600, listmode = 0644
# Ln-s. usbfs/devices/dev/bus/usb/devices
# Mount-rbind/dev/bus/usb/proc/bus/usb
Delete the # In front of the last 4 rows.

3. Open/etc/udev/rules. d/40-basic-permissions.rules
(Note that another file is very similar to it, called 40-permissions.rules. Do not make a mistake)

Find the following lines:
# USB devices (usb fs replacement)
SUBSYSTEM = "usb", ENV {DEVTYPE} = "usb_device", MODE = "0664"
SUBSYSTEM = "usb_device", MODE = "0664"

Add a GROUP = "vboxusers" option after the last two rows, that is, modify it:
# USB devices (usb fs replacement)
SUBSYSTEM = "usb", ENV {DEVTYPE} = "usb_device", MODE = "0664", GROUP = "vboxusers"
SUBSYSTEM = "usb_device", MODE = "0664", GROUP = "vboxusers"

4. Open/etc/fstab and add a line at the end
None/proc/bus/usb usbfs devgid = 124, devmode = 644 0 0

Replace 124 with the group number of the vboxusers group on your machine. If you do not know the number, perform the first step again.

5. Restart and OK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.